/* Immunology Page Styles - Optimized for Mobile */

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Color palette */
    --primary-color: #3a86ff;
    --secondary-color: #4361ee;
    --accent-color: #f5c542;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #06d6a0;
    --white: #ffffff;
    
    /* Common effects */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Immunology specific colors */
    --immunology-primary: #3a86ff;
    --immunology-secondary: #4cc9f0;
    --immunology-accent: #f72585;
    --immunology-light: #f1faee;
}

html {
    scroll-behavior: smooth;
}

/* ==================== HEADER SECTION ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; 
    padding: 0;
    z-index: 1000;
    background-color: transparent !important; /* Force transparent by default */
    transition: var(--transition);
}

.header.sticky {
    background-color: var(--white) !important;
    box-shadow: var(--box-shadow);
    height: 150px;
}

.header .container {
    height: 100%;
    padding: 0 30px;
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-text-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    height: 200px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.dba-text {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 400;
    margin-top: -2px;
}

.header.sticky .logo-image {
    height: 150px;
}

/* Navigation Styles */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 14px;
}

.nav-list a {
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-size: 16px;
}

.nav-list a.two-words {
    letter-spacing: -0.5px;
}

.header.sticky .nav-list a {
    color: var(--dark-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color) !important;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: var(--transition);
}

.header.sticky .menu-toggle span {
    background-color: var(--dark-color);
}

/* Mobile menu active state */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Body adjustments for fixed header */
body {
    padding-top: 200px;
}

/* Hero Section adjustment */
.hero {
    margin-top: -200px;
    padding-top: 200px;
}

/* ==================== HERO SECTION ==================== */
#immunology-hero {
    height: 80vh;
    min-height: 600px;
    background-image: url("landing-background.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== ABOUT SECTION ==================== */
.immunology-about {
    background-color: var(--light-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.immunology-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--immunology-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image Area */
.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-container:hover {
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

.image-container:hover img {
    transform: scale(1.03); 
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--immunology-secondary) 100%);
    opacity: 0.1;
    z-index: -1;
}

/* Text Area */
.about-text {
    position: relative;
}

.about-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.description-text {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight-text {
    background-color: rgba(58, 134, 255, 0.08);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    color: var(--dark-color);
    border-radius: 0 5px 5px 0;
}

.highlight-text p {
    font-style: italic;
    margin: 0;
}

/* ==================== CORE VALUES SECTION ==================== */
.immunology-values {
    background-color: white;
    padding: 100px 0;
    position: relative;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.value-item:hover .value-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--immunology-secondary) 100%);
}

.value-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.value-item:hover .value-icon i {
    color: white;
}

.value-content {
    flex-grow: 1;
}

.value-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.value-content p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
}

/* ==================== SERVICES SECTION ==================== */
.immunology-services {
    background-color: #f5f8ff;
}

.services-tabs {
    margin-top: 40px;
}

.tab-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 15px;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    border: none;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.tab-btn i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tab-btn span {
    font-weight: 500;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
}

.tab-btn.active i, .tab-btn:hover i,
.tab-btn.active span, .tab-btn:hover span {
    color: var(--white);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.tab-image {
    border-radius: 8px;
    overflow: hidden;
}

.tab-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.tab-image:hover img {
    transform: scale(1.05);
}

.tab-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.service-list i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

/* ==================== CLIENTS SECTION ==================== */
.immunology-clients {
    background-color: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.client-card {
    background-color: var(--light-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
    color: var(--white);
}

.client-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: rgba(58, 134, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.client-card:hover .client-icon {
    background-color: var(--white);
}

.client-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.client-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.client-card p {
    color: var(--gray-color);
    transition: var(--transition);
}

.client-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.immunology-why-us {
    background-color: #f5f8ff;
}

.why-us-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reason-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-10px);
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.reason-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.reason-number {
    font-size: 48px;
    font-weight: 700;
    color: rgba(58, 134, 255, 0.15);
    margin-bottom: 10px;
}

.reason-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.reason-card p {
    color: var(--gray-color);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact .section-header h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-color);
    line-height: 1.7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info, .google-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--dark-color);
    line-height: 1.7;
    margin: 0;
}

.google-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.google-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.google-form p {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header {
        height: 160px;
    }
    
    .header.sticky {
        height: 120px;
    }
    
    .logo-image {
        height: 160px;
    }
    
    .header.sticky .logo-image {
        height: 120px;
    }
    
    body {
        padding-top: 160px;
    }
    
    .hero {
        margin-top: -160px;
        padding-top: 160px;
    }
    
    .nav-list a {
        font-size: 14px;
    }
    
    .nav-list li {
        margin-left: 12px;
    }
    
    .immunology-about,
    .immunology-values {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .tab-inner {
        grid-template-columns: 1fr;
    }
    
    .why-us-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        height: 120px;
    }
    
    .header.sticky {
        height: 90px;
    }
    
    .logo-image {
        height: 100px;
    }
    
    .header.sticky .logo-image {
        height: 80px;
    }
    
    body {
        padding-top: 120px;
    }
    
    .hero {
        margin-top: -120px;
        padding-top: 120px;
    }
    
    .lead-text {
        font-size: 17px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    /* Mobile navigation - IMPORTANT FIXES */
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        padding: 100px 30px 30px;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-list.active {
        display: flex !important; /* Force display when active */
    }
    
    .nav-list li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        color: var(--dark-color);
        font-size: 18px;
        padding: 12px 0;
        display: block;
    }
    
    /* Dropdown menu for mobile - IMPORTANT FIXES */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: hidden;
        transform: none;
        transition: max-height 0.3s ease;
        background-color: rgba(0,0,0,0.05);
        margin-top: 5px;
        border-radius: 5px;
    }
    
    .dropdown.active .dropdown-menu {
        visibility: visible;
        max-height: 300px;
        padding: 10px 0;
    }
    
    .dropdown-menu li {
        padding: 0;
        margin: 0;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .header {
        height: 100px;
    }
    
    .header.sticky {
        height: 80px;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .header.sticky .logo-image {
        height: 60px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .dba-text {
        font-size: 12px;
    }
    
    body {
        padding-top: 100px;
    }
    
    .hero {
        margin-top: -100px;
        padding-top: 100px;
    }
    
    .nav-list {
        top: 0;
        padding-top: 100px;
    }
    
    .immunology-about,
    .immunology-values {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .lead-text {
        font-size: 16px;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-cards {
        grid-template-columns: 1fr;
    }
}