/* eCampus Custom Styles */
/* Cache Buster: 2025-01-18-v7 - NEW Adobe Express Style Screenshot Section */

/* ==================== EMERGENCY VISIBILITY FIX ====================
 * Force content to be visible but preserve Tailwind responsive utilities
 * EXCLUDE carousel AND screenshots section from transform override
 */
section:not(.screenshot-carousel-wrapper):not(#screenshots),
.hero-section,
#hero,
[data-aos]:not(.screenshot-carousel-wrapper):not(.screenshot-carousel-wrapper *):not(#screenshots *) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Carousel no longer uses transforms - simple fade transitions only */

/* Do NOT override .hidden, div, or * - breaks Tailwind responsive utilities */
/* ==================== END EMERGENCY FIX ==================== */

/* CSS Variables - Green Theme for eCampus Page */
:root {
    --primary: #059669;
    --secondary: #10b981;
    --accent: #34d399;
    --primary-hover-bg: rgba(5, 150, 105, 0.08);
    --transition: all 0.3s ease;
    --text-dark: #1f2937;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* ==================== TOP NAVBAR ====================
 * Navbar styles are now defined in global/global.css
 * This ensures consistency across all pages.
 * See global/README.md for navbar HTML template and documentation.
 */

/* eCampus Navbar Theme Override - Emerald Green */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(5, 150, 105, 0.12);
}

.navbar:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1),
                0 3px 12px rgba(5, 150, 105, 0.15);
}

.navbar.scrolling {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06),
                0 1px 6px rgba(5, 150, 105, 0.08);
}

.navbar.scrolling:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08),
                0 2px 10px rgba(5, 150, 105, 0.12);
}

/* Nav Link Emerald Theme */
.nav-link::after {
    background: linear-gradient(90deg, #059669, #34d399);
}

.nav-link:hover,
.nav-link.active {
    color: #059669;
}

/* Mobile Menu Emerald Theme Overrides */
.mobile-menu-link:hover,
.mobile-menu-link:active,
.mobile-menu-link.active {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.mobile-dropdown-btn:hover,
.mobile-dropdown-btn:active {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:active {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-left-color: #059669;
}

.mobile-drawer-login {
    color: #059669;
}

.mobile-drawer-login:hover {
    background: rgba(5, 150, 105, 0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Pattern Grid Background (Static - animation removed) */
.pattern-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    /* animation: gridMove 20s linear infinite; - Removed for cleaner experience */
}

/* Blob Animation for Hero Section (Removed for cleaner experience) */

/* Slot Animation for Schedule Items */
@keyframes slot {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slot {
    animation: slot 0.5s ease-out forwards;
}

/* Float Animation for Floating Cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero Float Animation for Floating UI Elements */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-float {
    animation: heroFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Course Card Hover Effects */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* Schedule Table Styles */
.schedule-table {
    min-width: 800px;
}

.schedule-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Progress Bar Animation */
@keyframes progressBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

/* Stat Card Pulse Effect */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Button Hover Effects */
button, a {
    transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #1E3A8A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Card Shadow on Hover */
.hover-card {
    transition: box-shadow 0.3s ease;
}

.hover-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    border-radius: 9999px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Mobile Responsive Adjustments */
@media (max-width: 968px) {
    /* Hero Section Adjustments */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Show Important Floating Elements, Reposition for Mobile */
    .hero-float {
        display: block !important;
        position: relative !important;
        margin: 0.5rem auto;
        max-width: 90%;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

    /* Adjust Hero Grid Illustration */
    .relative.w-80.h-80 {
        width: 16rem;
        height: 16rem;
    }
}

@media (max-width: 768px) {
    .schedule-table {
        font-size: 12px;
    }

    .schedule-item {
        padding: 8px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Smaller Logo on Mobile */
    .logo-image {
        height: 40px;
    }

    /* Tighter Container Padding */
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Illustration Responsiveness */
    section {
        overflow-x: hidden;
    }

    /* Reduce Grid Size on Mobile */
    .relative.w-80.h-80 {
        width: 14rem;
        height: 14rem;
    }

    /* Stack floating cards vertically */
    .hero-float {
        position: static !important;
        margin: 1rem auto !important;
        max-width: 280px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        height: 35px;
    }

    /* Stack Buttons Vertically on Very Small Screens */
    .flex-col.sm\:flex-row {
        flex-direction: column !important;
    }

    /* Prevent any horizontal overflow */
    * {
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
    }

    /* Further reduce grid on small phones */
    .relative.w-80.h-80 {
        width: 12rem;
        height: 12rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(to right, #1E3A8A, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Flip Effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s linear infinite;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #1E3A8A;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    footer {
        display: none;
    }

    body {
        background: white;
    }

    .no-print {
        display: none;
    }
}

/* Custom Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: #059669;
    animation: pulse 2s infinite;
}

.status-inactive {
    background-color: #6B7280;
}

.status-warning {
    background-color: #F59E0B;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== SIDE PROGRESS NAVIGATION ==================== */

.side-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Progress Line Background - positioned at right to align with dots */
.side-nav-progress {
    position: absolute;
    right: 5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(5, 150, 105, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

/* Each Navigation Item - min-width ensures label positioning works correctly */
.side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

/* Navigation Dot */
.side-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(5, 150, 105, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Label (appears on hover) - positioned to left of dot */
.side-nav-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: white;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.1);
    pointer-events: none;
}

/* Show label on hover */
.side-nav-item:hover .side-nav-label {
    opacity: 1;
    visibility: visible;
}

/* Active State */
.side-nav-item.active .side-nav-dot {
    background: linear-gradient(135deg, #059669, #34d399);
    border-color: #059669;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Active Label (always visible) */
.side-nav-item.active .side-nav-label {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(135deg, #059669, #34d399);
    color: white;
    border-color: #059669;
}

/* Hover Effects */
.side-nav-item:hover .side-nav-dot {
    transform: scale(1.2);
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Animation for active indicator movement */
@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(5, 150, 105, 0.6);
    }
}

.side-nav-item.active .side-nav-dot {
    animation: activePulse 2s ease-in-out infinite;
}

/* Hide on mobile and tablet */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }
}

/* For very small desktops, adjust position */
@media (max-width: 1280px) {
    .side-nav {
        right: 20px;
    }
}

/* Accessibility: Focus States */
.side-nav-item:focus {
    outline: none;
}

.side-nav-item:focus .side-nav-label {
    opacity: 1;
    visibility: visible;
}

/* ==================== MOBILE HERO FEATURED CARD ==================== */

/* Note: .desktop-only and .mobile-only are now handled by global/global.css */

/* Mobile Hero Container */
.mobile-hero-container {
    padding: 1rem 1rem 2rem;
    text-align: center;
    margin-top: 0;
}

/* Extra Small Screens: Adjust Sizes */
@media (max-width: 480px) {
    .mobile-hero-container {
        margin-top: 0;
        padding: 0.5rem 0.75rem 1.5rem;
    }
}

/* ==================== FEATURE SHOWCASE SECTION (ZIG-ZAG LAYOUT) ==================== */

/* Feature Item Container - Automatic Zig-Zag with nth-child */
.feature-item {
    display: flex;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

/* Automatic Reversal for Even Items (creates zig-zag) */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Last item - remove excess margin */
.feature-item:last-child {
    margin-bottom: 0;
}

/* Image Container - 45% width for better balance */
.feature-img {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
}

/* Image Styling */
.feature-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-img img:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2),
                0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Zoom Overlay - Hidden by Default */
.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.feature-img:hover .zoom-overlay {
    opacity: 1;
}

/* Zoom Button */
.zoom-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.feature-img:hover .zoom-button {
    transform: scale(1);
}

/* Zoom Icon */
.zoom-icon {
    color: #10B981;
    stroke-width: 2.5;
}

/* Zoom Text */
.zoom-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

/* Text Content Container */
.feature-text {
    flex: 1;
    min-width: 0;
}

/* Feature Badge */
.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
}

/* Feature Heading */
.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Feature Description */
.feature-text p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.75;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Mobile: Vertical Stacking (below 768px) */
@media (max-width: 767px) {
    .feature-item {
        flex-direction: column !important;
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    .feature-img {
        flex: 1;
        max-width: 100%;
    }

    .feature-text h3 {
        font-size: 2rem;
    }

    .feature-text p {
        font-size: 1rem;
    }
}

/* Extra Small Mobile (below 480px) */
@media (max-width: 480px) {
    .feature-item {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-text h3 {
        font-size: 1.75rem;
    }

    .feature-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
    }
}

/* ==================== FAQ SECTION STYLES ==================== */

/* Category Header */
.faq-category-header {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #059669;
}

.faq-category-header:first-child {
    margin-top: 0;
}

.faq-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item (Accordion) */
.faq-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.faq-item[open] {
    border-color: #059669;
    background: #fffaf7;
}

/* FAQ Question */
.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.03);
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid #fee2e2;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

/* FAQ Icon */
.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Chevron */
.faq-chevron {
    margin-left: auto;
    width: 24px;
    height: 24px;
    stroke: #6b7280;
    transition: transform 0.3s ease, stroke 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    stroke: #059669;
}

/* FAQ Answer */
.faq-answer {
    padding: 0 1.5rem 1.25rem 4.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: #1f2937;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-tabs {
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }

    .faq-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .faq-item[open] .faq-question {
        padding-bottom: 0.875rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 3.5rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        font-size: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-chevron {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   NAVIGATION DROPDOWN STYLES
   ======================================== */

/* Desktop Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

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

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Hide desktop dropdowns on mobile */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-menu {
        display: none !important;
    }
}

.scroll-progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(229, 231, 235, 0.3);
    z-index: 999;
    pointer-events: none;
    display: none; /* Hidden on desktop by default */
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #059669 0%, #34d399 100%);
    transition: width 0.1s ease;
}

/* Combined: Left Side Card Navigation - Compact Version */
.side-card-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 180px;
    flex-shrink: 0;
}

.side-card-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.side-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.side-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: #6b7280;
    transition: all 0.3s ease;
}

.side-card-content {
    flex: 1;
    min-width: 0;
}

.side-card-content h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.side-card-content p {
    display: none; /* Hide descriptions to make it more compact */
}

.side-card-btn:hover {
    transform: translateX(4px);
    border-color: #FF8C61;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.side-card-btn:hover .side-card-icon {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.side-card-btn:hover .side-card-icon svg {
    stroke: white;
}

.side-card-btn:hover .side-card-content h4 {
    color: #059669;
}

.side-card-btn.active {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    border-color: #059669;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
    transform: translateX(8px);
}

.side-card-btn.active .side-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.side-card-btn.active .side-card-icon svg {
    stroke: white;
}

.side-card-btn.active .side-card-content h4,
.side-card-btn.active .side-card-content p {
    color: white;
}

/* Accessibility focus state */
.side-card-btn:focus-visible {
    outline: 3px solid #059669;
    outline-offset: 2px;
}

/* Fullscreen Modal */
.screenshot-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.screenshot-modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #1f2937;
}

.close-modal:hover {
    background: #10B981;
    color: white;
    transform: rotate(90deg);
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #1f2937;
    font-weight: bold;
}

.modal-prev:hover,
.modal-next:hover {
    background: #059669;
    color: white;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================================
   RESPONSIVE DESIGN - SCREENSHOT CAROUSEL
   ================================================ */

/* Tablet and below */
@media (max-width: 968px) {
    .carousel-inner {
        max-width: 600px;
        height: 360px;
    }

    .screenshot-card {
        max-width: 600px;
    }

    .screenshot-card.next {
        transform: translate(-50%, -50%) translateY(-35px) scale(0.95);
    }

    .screenshot-card.next-2 {
        transform: translate(-50%, -50%) translateY(-60px) scale(0.90);
    }

    .screenshot-card.next-3 {
        transform: translate(-50%, -50%) translateY(-80px) scale(0.85);
    }

    .screenshot-caption h3 {
        font-size: 1.25rem;
    }

    .screenshot-caption p {
        font-size: 0.95rem;
    }

    .thumbnail {
        width: 100px;
        height: 56px;
    }

    .modal-nav {
        padding: 0 1rem;
    }

    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Progress bar - show on mobile only */
    .scroll-progress-bar {
        display: block; /* Show on mobile */
        top: 70px;
    }

    .screenshot-carousel-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .screenshot-carousel {
        min-height: 400px;
        padding: 3rem 0;
    }

    .carousel-inner {
        max-width: 95%;
        height: 350px;
        order: 1;
    }

    .screenshot-card {
        max-width: 95%;
    }

    .screenshot-card.next {
        transform: translate(-50%, -50%) translateY(-30px) scale(0.93);
        opacity: 0.6;
    }

    .screenshot-card.next-2 {
        transform: translate(-50%, -50%) translateY(-50px) scale(0.88);
        opacity: 0.3;
    }

    .screenshot-card.next-3,
    .screenshot-card.prev-2,
    .screenshot-card.prev-3 {
        opacity: 0;
        pointer-events: none;
    }

    .carousel-controls {
        gap: 1rem;
    }

    /* Circle navigation responsive - horizontal on mobile */
    .circle-nav {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        gap: 12px;
        order: 2;
        width: 100%;
    }

    .circle-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .circle-btn svg {
        width: 22px;
        height: 22px;
    }

    .circle-tooltip {
        display: none; /* Hide tooltips on mobile */
    }

    /* Carousel wrapper stacks vertically on mobile */
    .screenshot-carousel-wrapper {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem;
    }

    /* Side card navigation responsive */
    .side-card-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        order: 2; /* Move navigation below carousel */
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .side-card-nav::-webkit-scrollbar {
        display: none;
    }

    .side-card-btn {
        flex-shrink: 0;
        min-width: 200px;
        padding: 0.625rem 0.875rem;
    }

    .side-card-icon {
        width: 36px;
        height: 36px;
    }

    .side-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .side-card-content h4 {
        font-size: 0.8125rem;
    }

    .side-card-content p {
        font-size: 0.6875rem;
    }

    .side-card-btn:hover,
    .side-card-btn.active {
        transform: translateX(0);
    }

    .screenshot-carousel {
        order: 1;
    }

    .thumbnail-nav {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .thumbnail {
        width: 80px;
        height: 45px;
    }

    .screenshot-caption {
        margin-top: 1.5rem;
        min-height: 80px;
    }

    .screenshot-caption h3 {
        font-size: 1.1rem;
    }

    .screenshot-caption p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .zoom-icon {
        width: 40px;
        height: 40px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .zoom-icon svg {
        width: 20px;
        height: 20px;
    }

    .modal-content {
        max-width: 95%;
    }

    .close-modal {
        top: -45px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .thumbnail-nav {
        display: none; /* Hide thumbnails on very small screens */
    }

    .carousel-controls {
        margin-top: 1.5rem;
    }

    .screenshot-caption h3 {
        font-size: 1rem;
    }

    .screenshot-caption p {
        font-size: 0.85rem;
    }
}

/* ==================== FAQ SECTION STYLES ==================== */

/* Category Header */
.faq-category-header {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #059669;
}

.faq-category-header:first-child {
    margin-top: 0;
}

.faq-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item (Accordion) */
.faq-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.faq-item[open] {
    border-color: #059669;
    background: #fffaf7;
}

/* FAQ Question */
.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.03);
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid #fee2e2;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

/* FAQ Icon */
.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Chevron */
.faq-chevron {
    margin-left: auto;
    width: 24px;
    height: 24px;
    stroke: #6b7280;
    transition: transform 0.3s ease, stroke 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    stroke: #059669;
}

/* FAQ Answer */
.faq-answer {
    padding: 0 1.5rem 1.25rem 4.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: #1f2937;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-tabs {
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }

    .faq-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .faq-item[open] .faq-question {
        padding-bottom: 0.875rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 3.5rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        font-size: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-chevron {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   NAVIGATION DROPDOWN STYLES
   ======================================== */

/* Desktop Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

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

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:first-child {
    padding-top: 16px;
}

.dropdown-item:last-child {
    padding-bottom: 16px;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-dropdown-btn:hover {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.mobile-dropdown-btn.active {
    color: #059669;
    background: rgba(5, 150, 105, 0.15);
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-dropdown.open .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(5, 150, 105, 0.05);
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 200px;
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 24px 12px 48px;
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-dropdown-item:hover {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-left-color: #059669;
}

/* Hide desktop dropdowns on mobile */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-menu {
        display: none !important;
    }
}

/* Cache buster */
