/* --- css/style.css --- */

/* =================================== */
/*        IMPORTS & VARIABLES         */
/* =================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0D243E; /* Darker, sophisticated Blue */
    --secondary-color: #F44E3B; /* Punchy Coral/Red */
    --accent-color: #00C9A7; /* Vibrant Teal/Mint */
    --gradient-start: rgba(13, 36, 62, 0.85); /* Start of overlay */
    --gradient-end: rgba(30, 55, 85, 0.95);  /* End of overlay (simpler) */
    --light-color: #fdfdfd; /* Slightly off-white */
    --dark-color: #1a1a1a;
    --text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --font-family: 'Poppins', sans-serif;
    --card-bg: #ffffff;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --radius: 12px; /* Softer radius */
    --transition-speed: 0.3s; /* Slightly faster common transition */

    /* Specific Comparison Table Colors */
    --comparison-positive: #198754; /* Consistent Green */
    --comparison-negative: #dc3545; /* Consistent Red */
    --comparison-key-info: #6f42c1; /* Consistent Purple */
    --comparison-variable: #fd7e14; /* Consistent Orange */
}

/* =================================== */
/*     RESET & GLOBAL STYLES          */
/* =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}
/* Add Focus State for Links */
a:hover,
a:focus {
    color: var(--accent-color);
    outline: none; /* Optional: Remove default if adding custom below */
    /* text-decoration: underline; Example: Add underline on focus/hover */
}
/* Add visible focus state for keyboard navigation */
a:focus-visible {
     outline: 2px dashed var(--accent-color); /* Example focus indicator */
     outline-offset: 2px;
}


ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 15px;
}

/* =================================== */
/*         UTILITY CLASSES            */
/* =================================== */
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}
.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    color: #6c757d;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* =================================== */
/*         BUTTON STYLES              */
/* =================================== */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1); border: none; text-align: center; }

.btn-primary { background: linear-gradient(90deg, var(--secondary-color), #f56a5a); color: #fff; box-shadow: 0 8px 15px rgba(244, 78, 59, 0.25); }
.btn-primary:hover,
.btn-primary:focus { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(244, 78, 59, 0.4); color: #fff; } /* Keep color on focus */

.btn-secondary { background: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover,
.btn-secondary:focus { background: var(--secondary-color); color: #fff; transform: scale(1.03); }

/* Add focus styles for buttons */
.btn:focus { outline: none; /* Remove default if adding custom */ }
.btn:focus-visible {
     /* Use box-shadow or outline for visibility */
    box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb, 244, 78, 59), 0.5); /* Create --secondary-color-rgb if needed */
    /* OR outline: 2px solid var(--secondary-color); outline-offset: 2px; */
}

/* =================================== */
/*         NAVIGATION BAR             */
/* =================================== */
#navbar { background: rgba(13, 36, 62, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1rem 0; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; transition: background var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
#navbar.scrolled { background: rgba(13, 36, 62, 0.95); padding: 0.6rem 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
#navbar .container { display: flex; justify-content: space-between; align-items: center; }

/* Logo Area */
#navbar .logo { display: flex; align-items: center; gap: 10px; color: #fff; transition: color var(--transition-speed) ease; }
#navbar .logo img { height: 45px; width: auto; }
#navbar .logo .logo-text { font-size: 1.5rem; font-weight: 700; line-height: 1; }
#navbar .logo .logo-text .highlight { color: var(--accent-color); }
#navbar .logo:hover,
#navbar .logo:focus { color: #eee; } /* Apply hover effect to focus too */

/* Navigation Links */
#navbar .nav-links { display: flex; align-items: center; }
#navbar .nav-links li a { color: rgba(255, 255, 255, 0.85); padding: 0.8rem 1.2rem; margin: 0 0.2rem; font-weight: 600; position: relative; font-size: 0.95rem; letter-spacing: 0.3px; }
#navbar .nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 5px; left: 50%; transform: translateX(-50%); background: var(--accent-color); transition: width var(--transition-speed) ease; opacity: 0; }
#navbar .nav-links li a:hover { color: #fff; } /* Hover text color */
#navbar .nav-links li a:hover::after { width: 30%; opacity: 1; }
/* Focus styles for Nav links (matches hover) */
#navbar .nav-links li a:focus { color: #fff; }
#navbar .nav-links li a:focus::after { width: 30%; opacity: 1; }
#navbar .nav-links li a:focus-visible {
     outline: 1px dotted var(--accent-color); /* Subtle outline for keyboard nav */
     outline-offset: 4px;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu { display: none; cursor: pointer; border: none; background: none; padding: 5px;} /* Make it tappable */
.hamburger-menu span { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: #fff; border-radius: 3px; transition: all 0.3s ease-in-out; }

/* =================================== */
/*          HERO SECTION               */
/* =================================== */
#hero { height: 100vh; min-height: 650px; display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; position: relative; overflow: hidden; }
.hero-background-image { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/hero-background.jpg') no-repeat center center/cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); opacity: 0.9; z-index: 2; }
#hero .container { position: relative; z-index: 3; }
#hero .hero-content { max-width: 800px; margin: auto; }
.hero-title { font-size: 4.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.hero-title span { display: inline-block; opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.hero-title span:nth-child(1) { animation-delay: 0.3s; }
.hero-title span:nth-child(2) { animation-delay: 0.5s; }
.hero-title span:nth-child(3) { animation-delay: 0.7s; }
.hero-title .highlight { color: var(--accent-color); animation-delay: 0.5s !important; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 3rem; font-weight: 300; color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 8px rgba(0,0,0,0.3); opacity: 0; animation: fadeInUp 0.8s ease-out 0.9s forwards; }
.hero-cta { padding: 15px 40px; font-size: 1rem; opacity: 0; animation: fadeInUp 0.8s ease-out 1.2s forwards; }

/* Scroll Down Indicator - Enhanced Visibility */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 4; opacity: 0; animation: fadeIn 1s ease-out 1.8s forwards; cursor: pointer; }
.scroll-indicator a { display: block; padding: 10px; position: relative; border-radius: 50px; /* Make clickable area bigger */}
.scroll-indicator a::before { content: ''; display: block; width: 30px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.8); border-radius: 25px; position: relative; margin: auto; transition: border-color var(--transition-speed) ease;}
.scroll-indicator a::after { content: ''; position: absolute; width: 4px; height: 10px; background: rgba(255, 255, 255, 0.9); border-radius: 2px; top: 25px; left: 50%; transform: translateX(-50%); animation: scrollWheelAnimation 1.8s infinite ease-in-out; }
.scroll-indicator a:hover::before, /* Enhance hover */
.scroll-indicator a:focus::before { border-color: rgba(255, 255, 255, 1); }
.scroll-indicator a:focus-visible { outline: none; /* Outline is on the ::before element now */ }
.scroll-indicator a:focus-visible::before { outline: 2px dashed var(--accent-color); outline-offset: 4px;}
@keyframes scrollWheelAnimation { 0% { transform: translate(-50%, -5px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, 8px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Optional Text Label for Scroll Indicator */
.scroll-indicator::after { content: 'Scroll Down'; display: block; color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; font-weight: 600; margin-top: 10px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.4);}

/* =================================== */
/*        FEATURES SECTION             */
/* =================================== */
#features { background-color: var(--light-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.feature-card { background: var(--card-bg); padding: 2.5rem 2rem; border-radius: var(--radius); box-shadow: var(--card-shadow); text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border-color); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease; }
.feature-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1); border-color: var(--accent-color); }
.feature-card .card-content { position: relative; z-index: 1; }
.feature-card .icon { height: 80px; width: 80px; margin: 0 auto 2rem auto; border-radius: 50%; background: linear-gradient(145deg, #eef3f7, #ffffff); display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05); position: relative; transition: all var(--transition-speed) ease; }
/* Define Specific Icons using appropriate methods (inline SVG preferred) */
.feature-card .icon-bacteria { /* Placeholder - use inline SVG */ background-color: lightblue; }
.feature-card .icon-methods { /* Placeholder - use inline SVG */ background-color: lightgreen; }
.feature-card .icon-media { /* Placeholder - use inline SVG */ background-color: lightcoral; }

.feature-card:hover .icon { background: linear-gradient(145deg, var(--accent-color), #00e0bd); box-shadow: 0 8px 18px rgba(0, 201, 167, 0.3); transform: scale(1.05); }
/* Styling if using Inline SVG */
/* .feature-card .icon svg { width: 45px; height: 45px; fill: var(--primary-color); transition: fill var(--transition-speed) ease, transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275); } */
/* .feature-card:hover .icon svg { transform: scale(1.15); fill: #fff; } */
.feature-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary-color); }
.feature-card p { font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.8; color: #555; }
.feature-card .btn-secondary { font-size: 0.85rem; padding: 10px 25px; }

/* =================================== */
/*   INTERNAL PAGE HEADER (for Consistency) */
/* =================================== */
.page-header {
    padding-top: 120px; /* Start below fixed navbar */
    padding-bottom: 60px;
    background-color: #f5f7fa; /* Use alt-bg or another subtle color */
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    /* Keep section-title default animation if class applied */
}
.page-header .section-subtitle {
    margin-bottom: 0; /* Remove extra space if used here */
    font-size: 1.2rem;
}
/* Prevent double padding on first section after header */
main > section.section-padding:first-of-type {
    padding-top: 60px; /* Standard padding instead of larger value */
}

/* =================================== */
/*   BACTERIA PAGE - CATEGORIES        */
/* =================================== */
.bacteria-category {
    margin-bottom: 4rem;
    padding-top: 1rem; /* Avoid overlap if using internal anchors */
}
.bacteria-category .category-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.bacteria-category .category-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Definition List for Single Bacteria */
.definition-list { background-color: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); padding: 1.5rem 2rem; margin-top: 1rem; }
.definition-list dt { font-weight: 600; color: var(--primary-color); margin-top: 1rem; font-size: 1rem; }
.definition-list dt:first-child { margin-top: 0; }
.definition-list dd { margin-left: 0; margin-bottom: 0.5rem; font-size: 0.95rem; line-height: 1.6; }
/* Definition list highlighting using classes (add these classes to your HTML dd tags) */
.definition-list dd.positive { color: var(--comparison-positive); font-weight: 600; }
.definition-list dd.negative { color: var(--comparison-negative); font-weight: 600; }
.definition-list dd.key-info { font-style: italic; font-weight: 600; color: var(--comparison-key-info); }
.definition-list dd.variable { color: var(--comparison-variable); font-weight: 500; }

/* =================================== */
/*     COMPARISON TABLE STYLES        */
/* =================================== */
.table-responsive { width: 100%; overflow-x: auto; margin-top: 2rem; border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); scrollbar-width: thin; scrollbar-color: var(--comparison-negative) var(--comparison-negative);} /* Removed direct definition */
.table-responsive::-webkit-scrollbar { width: 10px; height: 10px; }
.table-responsive::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 5px; }
.table-responsive::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 5px; border: 2px solid #f1f1f1; }
.table-responsive::-webkit-scrollbar-thumb:hover { background-color: #aaa; }

.comparison-table { width: 100%; border-collapse: collapse; min-width: 800px; background-color: #fff; }
.comparison-table thead { background-color: var(--primary-color); color: #fff; }
.comparison-table th,
.comparison-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: top; font-size: 0.95rem; }
.comparison-table th { font-weight: 600; }
.comparison-table thead th { position: sticky; top: 0; z-index: 3; border-bottom: 2px solid var(--border-color); }
.comparison-table tbody th[scope="row"] { font-weight: 600; color: var(--primary-color); background-color: #f8f9fa; border-right: 1px solid var(--border-color); width: 20%; }

/* Table Category Header Styling */
.comparison-table th[class*="-category"] { /* Uses partial attribute selector */
     background-color: #e9ecef; color: var(--dark-color); font-size: 1.1rem; font-weight: 700;
     text-align: center; letter-spacing: 0.5px;
     border-bottom: 2px solid var(--primary-color); border-top: 2px solid var(--primary-color);
     position: sticky; top: 56px; /* Ensure below main headers */
     z-index: 2;
}

/* First Column Styling (Features) */
.comparison-table tbody td:first-child, /* Content cells in first col */
.comparison-table tbody th[scope="row"] { /* Header cells in first col if used */
    font-weight: 500; background-color: var(--category-col-bg, #f8f9fa); /* Default if var not defined */
    position: sticky; left: 0; z-index: 1; border-right: 2px solid var(--border-color);
}
/* First Header Cell */
.comparison-table thead th:first-child {
     position: sticky; left: 0; z-index: 4; background-color: inherit; /* Inherit thead bg */
     border-right: 2px solid var(--border-color);
}

.comparison-table td { line-height: 1.6; color: var(--text-color); }
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th { border-bottom: none; }
.comparison-table caption { caption-side: bottom; text-align: center; padding: 0.8rem; font-size: 0.9rem; color: #6c757d; font-style: italic; }

/* Highlight Styles using Classes (REMOVED :contains styles) */
.comparison-table td.positive { color: var(--comparison-positive); font-weight: 600; }
.comparison-table td.negative { color: var(--comparison-negative); font-weight: 600; }
.comparison-table td.key-info { font-style: italic; font-weight: 600; color: var(--comparison-key-info); }
.comparison-table td.variable { font-style: italic; color: var(--comparison-variable); }


/* --- Footer --- */
#footer { background: var(--dark-color); color: rgba(255, 255, 255, 0.6); text-align: center; padding: 3rem 0; margin-top: 5rem; }
#footer p { margin: 0; font-size: 0.9rem; }

/* --- Scroll Animations --- */
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll[data-animation="fade-in"] { opacity: 0; }
.animate-on-scroll[data-animation="fade-in-up"] { opacity: 0; transform: translateY(40px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0, 0); }


/* =================================== */
/*   FACTOID & DETAILS STYLES (Add This) */
/* =================================== */

/* Define necessary variables if they don't exist or adapt to existing ones */
:root {
    /* Add these if they don't exist or map them to your existing theme */
    --factoid-bg: #e7f5ff;         /* Light blue background */
    --factoid-hover-bg: #ccebff;   /* Slightly darker blue on hover */
    --factoid-text: #0a58ca;       /* Blue text */
    --details-bg: #ffffff;         /* White background for details */
    --details-border: #e9ecef;     /* Light grey border for details */
    --details-text: #495057;       /* Dark grey text for details */
    --comparison-text: #0d6efd;    /* Blue for comparison text inside details */
    --factoid-border-color: #cfe2ff; /* Border color for factoid */
    --factoid-hover-border-color: #a3cdf0; /* Border color on hover */
    /* --text-color already exists */
    /* --link-color could be used for comparison-text if desired */
}


.factoid {
    display: block; /* Makes it take full width of cell padding */
    background-color: var(--factoid-bg);
    color: var(--factoid-text);
    padding: 8px 30px 8px 10px; /* Space for text and arrow */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
    font-weight: 500;
    margin-bottom: 6px; /* Space between factoid and details */
    border: 1px solid var(--factoid-border-color);
    position: relative; /* Needed for the ::after arrow */
    -webkit-user-select: none; /* Prevent text selection on click */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.factoid:hover {
    background-color: var(--factoid-hover-bg);
    transform: translateY(-1px); /* Subtle lift effect */
    border-color: var(--factoid-hover-border-color);
}

/* Arrow Indicator */
.factoid::after {
    content: ' ▼'; /* Down arrow */
    font-size: 0.8em;
    color: #6c757d; /* Grey arrow color */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Arrow doesn't intercept clicks */
    transition: transform 0.2s ease;
}

.factoid.expanded::after {
    content: ' ▲'; /* Up arrow when expanded */
    /* Optional: rotate down arrow instead */
    /* transform: translateY(-50%) rotate(180deg); */
}

.details {
    display: none; /* Hidden by default */
    overflow: hidden; /* Needed for smooth transition */
    max-height: 0; /* Collapsed height */
    padding: 0 12px; /* Collapsed padding */
    margin-top: 0; /* Collapsed margin */
    background-color: var(--details-bg);
    border: 1px dashed var(--details-border); /* Dashed border when visible */
    border-radius: 4px;
    font-size: 0.9em; /* Slightly smaller text */
    color: var(--details-text);
    transition: max-height 0.35s ease-out, padding 0.35s ease-out, margin-top 0.35s ease-out, border-color 0.35s ease;
    border-color: transparent; /* Hide border when collapsed */
}

.details.details-visible {
    display: block; /* Make it visible */
    max-height: 1500px; /* Set a large max-height to allow content expansion */
    padding: 10px 12px; /* Padding when visible */
    margin-top: 6px; /* Space above details when visible */
    border-color: var(--details-border); /* Show border when visible */
}

/* Styling for the comparison text within details */
.details .comparison {
    display: block;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dotted #ccc;
    font-style: italic;
    color: var(--comparison-text);
    font-size: 0.95em;
}

/* Optional: Strong tag styling within details */
.details strong {
    color: var(--text-color); /* Use main text color or primary color */
    font-weight: 600;
}
/* =================================== */
/*         RESPONSIVE DESIGN          */
/* =================================== */
@media (max-width: 992px) {
    .container { max-width: 960px; }
    #navbar .logo img { height: 40px; }
    #navbar .logo .logo-text { font-size: 1.3rem; }
    #hero .hero-title { font-size: 3.5rem; }
    #hero .hero-subtitle { font-size: 1.2rem; }
    .features-grid { gap: 2rem; }

     /* Comparison Table Responsive Adjustments */
    .comparison-table { min-width: 700px; }
     .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 0.9rem; }
     .comparison-table tbody td:first-child, /* Adjust feature column width */
     .comparison-table tbody th[scope="row"] { width: 25%; }
     .comparison-table thead th:first-child { width: 25%; } /* Ensure header matches */
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-padding { padding: 80px 0; }
    #navbar .container { padding: 0 15px; }
    /* Mobile Nav Styling */
    #navbar .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13, 36, 62, 0.98); flex-direction: column; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 10px rgba(0,0,0,0.1); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
    #navbar .nav-links.active { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
    #navbar .nav-links li { width: 100%; text-align: center; }
    #navbar .nav-links li a { padding: 1rem; display: block; width: 100%; }
    #navbar .nav-links li a::after { display: none; }
    .hamburger-menu { display: block; padding: 5px; border: none; background: none;} /* Make hamburger tappable */
    .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    #hero { min-height: 80vh; padding-top: 80px; }
    #hero .hero-title { font-size: 2.5rem; }
    #hero .hero-subtitle { font-size: 1.1rem; max-width: 90%; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 2rem 1.5rem; }
    .section-title, .page-header h1 { font-size: 2rem; } /* Consistent title size */
    .section-subtitle, .page-header .section-subtitle { font-size: 1rem; margin-bottom: 3rem; }
    .page-header .section-subtitle { margin-bottom: 0; }
    .btn-primary, .hero-cta { padding: 12px 30px; font-size: 0.9rem; }

     /* Comparison Table Responsive Adjustments */
     .comparison-table { min-width: 600px; }
      .comparison-table th, .comparison-table td { padding: 8px 10px; }
      .comparison-table th[class*="-category"] { font-size: 1rem; }
      .comparison-table tbody td:first-child, /* Adjust feature column width */
      .comparison-table tbody th[scope="row"] { width: 30%; font-size: 0.85rem;}
      .comparison-table thead th:first-child { width: 30%; } /* Ensure header matches */
}

@media (max-width: 576px) {
    #hero .hero-title { font-size: 2rem; }
    #hero .hero-subtitle { font-size: 1rem; }
    .section-title, .page-header h1 { font-size: 1.8rem; }
    #navbar .logo img { height: 35px; }
    #navbar .logo .logo-text { font-size: 1.1rem; }

     /* Comparison Table Responsive Adjustments */
     .comparison-table tbody td:first-child,
     .comparison-table tbody th[scope="row"] { width: 100px; /* Fixed width for small */ }
     .comparison-table thead th:first-child { width: 100px; } /* Ensure header matches */

}

/* =================================== */
/* INTERNAL PAGE BACKGROUND & LAYOUT  */
/* =================================== */

body.page-internal { /* Applied via <body class="page-internal"> */
    background-image:
        /* Subtle white overlay to ensure text readability over image */
        linear-gradient(rgba(253, 253, 253, 0.92), rgba(253, 253, 253, 0.92)),
        /* Your Background Image */
        url('../img/internal-bg.jpg'); /* Make sure filename matches what you saved */

    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Style the page header if you added it */
.page-header {
    padding-top: 60px; /* Add padding if not part of main's top padding */
    padding-bottom: 40px; /* Adjust spacing */
    /* Background can be transparent to show body background, or add a subtle one */
    /* background-color: rgba(245, 247, 250, 0.8); */ /* Example very light opaque bg */
    /* border-bottom: 1px solid var(--border-color); */
    margin-bottom: 30px; /* Space before the nav-menu/tables */
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
 .page-header .section-subtitle {
     margin-bottom: 0;
     font-size: 1.2rem;
     color: var(--subtitle-color);
     max-width: 800px; /* Adjust width */
 }


/* Ensure nav-menu and tables have white background */
#nav-menu,
.table-container {
     background-color: var(--table-bg); /* Use the variable for white */
}