:root { 
    --max: 1200px; 
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #1f2937;
    --secondary-light: #374151;
    --accent: #059669;
    --accent-light: #ecfdf5;
    --background: #f8fafc;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Universal text sharpening for all text elements */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 450;
}

a {
    color: var(--primary);
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a:hover {
    text-decoration: underline;
}

/* Banner Advertisement */
.banner-ad {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.banner-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    width: 728px;
    height: 90px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.banner-image:hover {
    opacity: 0.95;
}

/* Responsive banner for mobile */
@media (max-width: 768px) {
    .banner-image {
        width: 100%;
        max-width: 728px;
        height: auto;
        min-height: 60px;
    }
}

/* Practice Photo Styles */
.practice-photo-thumbnail {
    width: 100%;
    height: 160px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
}

.practice-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* Specific sizing for Stone Oak Gastroenterology wide image */
.practice-thumbnail-image[src*="stone-oak-gastroenterology"] {
    object-fit: cover;
    object-position: center;
    width: 110%;
    height: 110%;
    margin: -5%;
}

.practice-photo-thumbnail:hover .practice-thumbnail-image {
    transform: scale(1.05);
}

.practice-hero-photo {
    width: 100%;
    height: 300px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.practice-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific sizing for Stone Oak Gastroenterology wide image */
.practice-hero-image[src*="stone-oak-gastroenterology"] {
    object-fit: cover;
    object-position: center;
    width: 110%;
    height: 110%;
    margin: -5%;
}

/* Featured practice styling adjustments */
.featured-practice .practice-photo-thumbnail {
    border: 2px solid #d4af37;
}

/* Practice Card Link Styling */
.practice-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.practice-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.practice-card-link .card {
    cursor: pointer;
}

/* Doctor Crosslink Styling */
.doctor-crosslink {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.crosslink-btn {
    display: inline-block;
    background: #4299e1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.crosslink-btn:hover {
    background: #3182ce;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

@media (max-width: 768px) {
    .practice-hero-photo {
        height: 200px;
        margin-bottom: 12px;
    }
    
    .practice-photo-thumbnail {
        height: 120px;
        margin-bottom: 12px;
    }
}

.header {
    background: var(--white);
    color: var(--text-primary);
    padding: 8px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo img {
    height: 150px;
    width: auto;
    transition: opacity 0.2s ease;
}

.header .logo img:hover {
    opacity: 0.9;
}

/* Navigation styles */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 32px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

/* Dropdown navigation */
.nav-dropdown {
    position: relative;
    margin-left: 32px;
}

.dropdown-toggle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    margin: 0;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Specialty page styles */
.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: 12px;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.search-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.specialty-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.specialty-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.specialty-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.specialty-item {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.specialty-item:hover {
    background: var(--primary-light);
    border-left-color: var(--primary);
    text-decoration: none;
    transform: translateX(4px);
}

.search-cta {
    background: var(--background);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.search-box h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.search-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quick-search {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .specialty-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .specialty-list {
        padding: 24px;
    }
    
    .quick-search {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input, .search-btn {
        width: 100%;
    }
    
    .search-header h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-content {
    padding: 16px 0;
    min-height: calc(100vh - 200px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 16px;
}

.card.featured-practice {
    border: 3px solid #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.featured-banner {
    position: absolute;
    bottom: 16px;
    right: -10px;
    background: linear-gradient(135deg, #d4af37, #f4e38e);
    color: white;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(15deg);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    z-index: 10;
    border-radius: 3px;
}

.home-doctor-card {
    text-align: left;
    padding: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 560px;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

.home-doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1 0%, #48bb78 50%, #ed8936 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.home-doctor-card:hover::before {
    opacity: 1;
}

.doctor-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.doctor-photo {
    flex-shrink: 0;
}

/* Updated doctor photos to 160px to allow more space for names */
.home-doctor-card .doctor-photo .doctor-image,
.home-doctor-card .doctor-image,
.doctor-image {
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.home-doctor-card:hover .doctor-image {
    border-color: #4299e1;
    transform: scale(1.05);
}

.home-doctor-card .doctor-photo .doctor-placeholder,
.home-doctor-card .doctor-placeholder,
.doctor-placeholder {
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #cbd5e0;
    transition: all 0.3s ease;
}

.home-doctor-card:hover .doctor-placeholder {
    border-color: #4299e1;
    transform: scale(1.05);
}

.doctor-name-section {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-align: left;
    line-height: 1.3;
    position: relative;
}

.doctor-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    flex: 1;
}



.doctor-details {
    flex: 1;
    text-align: left;
}

.doctor-bio {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    height: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-align: left;
}

.doctor-location-text {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
    text-align: left;
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.home-view-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.home-view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.home-view-button:hover::before {
    left: 100%;
}

.home-view-button:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.4);
}

/* News Page Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.news-card-link:hover .news-card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.news-card-link:hover .news-title {
    color: #4299e1;
}

.news-card.featured-news {
    border: 2px solid #4299e1;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.news-category {
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news .news-category {
    background: #d4af37;
}

.news-date {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.news-title {
    padding: 0 20px;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.4;
}

.news-excerpt {
    padding: 0 20px;
    margin: 0 0 16px 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
}

.news-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.news-source {
    color: #718096;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-about {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.news-about h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.news-about > p {
    margin: 0 0 24px 0;
    color: #4a5568;
    line-height: 1.6;
}

.healthcare-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.stat-item strong {
    color: #2d3748;
    font-weight: 700;
    font-size: 16px;
}

.stat-item span {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

/* Listing Form Styles */
.listing-options {
    max-width: 800px;
    margin: 0 auto;
}

.option-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.tab-btn:hover {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.basic-listing-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.basic-listing-section h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.basic-listing-section > p {
    margin: 0 0 32px 0;
    color: #4a5568;
    line-height: 1.6;
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    background: #4299e1;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.submit-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .basic-listing-section {
        padding: 24px;
    }
    
    .option-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.success-message h3 {
    margin: 0 0 12px 0;
    color: #155724;
    font-size: 20px;
}

.success-message p {
    margin: 0;
    color: #155724;
    line-height: 1.5;
}

/* Footer Credentials */
.footer-credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.credential-logos {
    display: flex;
    gap: 16px;
    align-items: center;
}

.logo-container {
    width: 112px;
    height: 112px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    color: inherit;
}

.credential-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-management {
    display: flex;
    align-items: center;
    gap: 8px;
}

.management-text {
    font-size: 12px;
    color: #718096;
}

.pixelworks-logo {
    height: 32px;
    object-fit: contain;
}

.site-management a {
    text-decoration: none;
}

.site-management a:hover .pixelworks-logo {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hero with Image */
.hero-with-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 48px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-content strong {
    color: #4299e1;
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero-with-image {
        height: 300px;
        margin-bottom: 32px;
    }
    
    .hero-content {
        padding: 24px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
}

/* Compact Feature Boxes */
.feature-boxes-compact {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 48px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.feature-box-compact {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    flex: 1;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-box-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1 0%, #48bb78 50%, #ed8936 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.feature-box-compact:hover::before {
    opacity: 1;
}

.feature-icon-compact {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.feature-box-compact:nth-child(1) .feature-icon-compact {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.feature-box-compact:nth-child(2) .feature-icon-compact {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
}

.feature-box-compact:nth-child(3) .feature-icon-compact {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 16px rgba(237, 137, 54, 0.3);
}

.feature-box-compact:hover .feature-icon-compact {
    transform: scale(1.1);
}

.feature-box-compact h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-box-compact p {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 32px 0;
    line-height: 1.4;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.feature-btn-compact {
    display: flex;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
    line-height: 1.3;
    text-align: center;
    min-height: 40px;
    align-items: center;
    justify-content: center;
}

.feature-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.feature-btn-compact:hover::before {
    left: 100%;
}

.feature-btn-compact:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.4);
}

@media (max-width: 768px) {
    .feature-boxes-compact {
        flex-direction: column;
        gap: 24px;
        margin: 32px auto;
        padding: 0 16px;
    }
    
    .feature-box-compact {
        max-width: none;
        padding: 28px 24px;
    }
    
    .feature-box-compact h3 {
        font-size: 18px;
        min-height: auto;
    }
    
    .feature-box-compact p {
        font-size: 15px;
        min-height: auto;
    }
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    margin: 2px 8px 2px 0;
    background: var(--border-light);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.badge:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.tag-paid {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.tag-paid::before {
    content: '⭐ ';
}

.footer {
    margin-top: 80px;
    padding: 48px 0;
    background: var(--secondary);
    color: white;
    border-top: 4px solid var(--primary);
}

.footer p {
    margin: 0;
    opacity: 0.8;
    text-align: center;
}

.small {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.5;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="medical" width="200" height="200" patternUnits="userSpaceOnUse"><rect width="200" height="200" fill="%23f4f4f4"/><rect x="80" y="80" width="40" height="40" fill="%23e0e0e0"/><circle cx="100" cy="50" r="8" fill="%23d0d0d0"/></pattern></defs><rect width="1200" height="400" fill="url(%23medical)"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 32px;
    margin: -32px -32px 48px -32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    margin: 0 0 24px 0;
    color: white;
    font-size: 48px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.feature-box {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1 0%, #48bb78 50%, #ed8936 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.feature-box:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.3);
}

.feature-box:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.3);
}

.feature-box:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 8px 24px rgba(237, 137, 54, 0.3);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-box h3 {
    color: #2d3748;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.feature-box p {
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.feature-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.feature-btn:hover::before {
    left: 100%;
}

.feature-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
    text-decoration: none;
    color: white;
}

@media (max-width: 768px) {
    .feature-boxes {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 40px auto;
    }
    
    .feature-box {
        padding: 32px 24px;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
}

.new-members {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.new-members h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    position: relative;
}

.new-members > h3::before {
    content: '👋 ';
    font-size: 28px;
    margin-right: 8px;
}

.new-members .subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 48px;
    font-weight: 400;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 380px);
    gap: 32px;
    margin-top: 48px;
    justify-content: center;
    padding: 0 20px;
}

@media (max-width: 1280px) {
    .members-grid {
        grid-template-columns: repeat(3, 350px);
        gap: 24px;
        padding: 0 16px;
    }
}

@media (max-width: 1120px) {
    .members-grid {
        grid-template-columns: repeat(2, 380px);
        gap: 32px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
        max-width: 420px;
    }
    
    .new-members {
        margin: 60px auto;
        padding: 0 16px;
    }
    
    .new-members h3 {
        font-size: 28px;
    }
}

/* Doctor Detail Page Styles */
.doctor-profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-profile-photo .thumb {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-grid > div:nth-child(odd) {
    font-weight: 600;
    color: #4a5568;
}

.contact-info-grid > div:nth-child(even) {
    color: #4a5568;
}

.sidebar-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

@media (max-width: 768px) {
    .doctor-profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .doctor-profile-photo .thumb {
        width: 150px;
        height: 150px;
    }
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.form-input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.doctor-card, .practice-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    position: relative;
}

.thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: none;
    flex-shrink: 0;
    background: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb::before {
    content: '👨‍⚕️';
    font-size: 36px;
    opacity: 0.7;
}

.featured-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37;
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.featured-badge-below {
    margin-top: 8px;
    text-align: center;
    background: #d4af37;
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.featured-photo {
    border: 1px solid #d4af37 !important;
    box-shadow: 0 0 0 1px #d4af37;
}

.doctor-detail .thumb {
    width: 160px;
    height: 160px;
    border-radius: 8px;
}

.doctor-detail .thumb::before {
    font-size: 48px;
}

.doctor-info, .practice-info {
    flex: 1;
    min-width: 0;
}

.doctor-info, .practice-info {
    flex: 1;
    min-width: 0;
    position: relative;
}

.doctor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.doctor-name-specialty {
    flex: 1;
}

.doctor-info h3, .practice-info h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #4a5568;
}

.doctor-info h3 a, .practice-info h3 a {
    color: #4a5568;
    font-weight: 700;
    transition: color 0.2s ease;
}

.doctor-info h3 a:hover, .practice-info h3 a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Practice Specialties 2-line display */
.practice-specialties {
    height: 2.8em;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Doctor Card Hover Effects */
.doctor-card-link:hover div {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border-color: #b8941f;
}

.practice-card-link:hover div {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border-color: #b8941f;
}

.doctor-specialty {
    font-size: 16px;
    color: #718096;
    font-weight: 500;
    margin-bottom: 12px;
}

.doctor-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 8px;
}

.doctor-location {
    font-size: 14px;
    color: #e53e3e;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.doctor-location a {
    color: #e53e3e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.doctor-location a:hover {
    text-decoration: underline;
}

.like-button {
    background: none;
    border: none;
    color: #718096;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.like-button:hover {
    color: var(--primary);
}

.doctor-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    min-width: 160px;
}

.btn-action {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin: 6px 0;
    font-size: 14px;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-view {
    background: #4CAF50;
    color: white;
}

.btn-view:hover {
    background: #45a049;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-message {
    background: #2196F3;
    color: white;
}

.btn-message:hover {
    background: #1976D2;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-phone {
    background: #6c757d;
    color: white;
}

.btn-phone:hover {
    background: #5a6268;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.specialties {
    margin: 16px 0;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.related-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.price-period {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: normal;
}

.features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.features li {
    padding: 8px 0;
    color: var(--text-gray);
}

.features li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

.admin-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--secondary);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #f0f9ff;
    color: #0ea5e9;
    border: 1px solid #7dd3fc;
}

.alert-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        margin-top: 12px;
    }
    
    .header .wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .doctor-card, .practice-card {
        flex-direction: column;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 12px;
    }
    
    .hero {
        padding: 20px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .card {
        padding: 16px;
    }
}
