/* Light Mode (Default) - Professional light theme with dark blue as primary */
:root {
    --navy-darkest: #f9fafb;
    --navy-dark: #f3f4f6;
    --navy-mid: #e5e7eb;
    --navy-light: #d1d5db;
    --navy-accent: #9ca3af;
    --navy-bright: #1e3a8a;
    --text-white: #1f2937;
    --text-light: #374151;
    --text-muted: #6b7280;
    --text-dark: #1f2937;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    --accent-yellow: #f4c419;
    --accent-yellow-soft: #fef3c7;
    --accent-blue-vivid: #3b82f6;
    --accent-blue: #1e3a8a;
    --accent-blue-soft: #dbeafe;
    --accent-cyan: #06b6d4;
    --accent-cyan-soft: #cffafe;
    --accent-orange: #f97316;
    --accent-orange-soft: #ffedd5;
    --surface-a: #f8fbff;
    --surface-b: #fffdf5;
    color-scheme: light;
}

/* Dark Mode */
body.dark-mode {
    --navy-darkest: #0a0f1f;
    --navy-dark: #0f1729;
    --navy-mid: #1a2a4a;
    --navy-light: #2d4a7a;
    --navy-accent: #3d5a8f;
    --navy-bright: #4a6aaa;
    --text-white: #ffffff;
    --text-light: #e0e4f0;
    --text-muted: #a0a8c0;
    --text-dark: #e0e4f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --accent-yellow: #facc15;
    --accent-yellow-soft: rgba(250, 204, 21, 0.14);
    --accent-blue-vivid: #60a5fa;
    --accent-blue: #60a5fa;
    --accent-blue-soft: rgba(96, 165, 250, 0.16);
    --accent-cyan: #22d3ee;
    --accent-cyan-soft: rgba(34, 211, 238, 0.16);
    --accent-orange: #fb923c;
    --accent-orange-soft: rgba(251, 146, 60, 0.16);
    --surface-a: rgba(29, 42, 74, 0.66);
    --surface-b: rgba(28, 36, 62, 0.72);
    color-scheme: dark;
}

/* Footer - Always consistent grey in both modes */
.footer {
    --footer-bg: #1f2937;
    --footer-text: #f3f4f6;
    --footer-text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--navy-darkest);
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Theme Transition Animations */
@keyframes themeTransitionIn {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 1;
    }
}

@keyframes themeTogglePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glowEffect {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(30, 58, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes glowEffectDark {
    0%, 100% {
        box-shadow: 0 4px 25px rgba(74, 106, 170, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 4px 35px rgba(74, 106, 170, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

body {
    animation: themeTransitionIn 0.6s ease-out forwards;
}

.theme-toggle {
    animation: themeTogglePulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* NAVBAR */
.navbar {
    background: var(--navy-darkest);
    border-bottom: 1px solid var(--navy-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 41, 0.9);
    border-bottom: 1px solid rgba(45, 74, 122, 0.3);
}

.navbar-content {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.logo {
    flex-shrink: 0;
    margin-right: 0;
}

/* THEME TOGGLE - Always visible and high contrast */
.theme-toggle {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c419 0%, #facc15 55%, #eab308 100%);
    border: 3px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 45;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 28px;
    height: 28px;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

.theme-toggle:hover .sun-icon {
    transform: rotate(20deg) scale(1.1);
}

.theme-toggle:hover .moon-icon {
    transform: rotate(-160deg) scale(0.6);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle {
    background: linear-gradient(135deg, #4a6aaa 0%, var(--accent-blue-vivid) 72%, #7c9cff 100%);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 4px 25px rgba(74, 106, 170, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode .theme-toggle:hover {
    box-shadow: 0 12px 40px rgba(74, 106, 170, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.dark-mode .theme-toggle:hover .sun-icon {
    transform: rotate(200deg) scale(0.6);
}

body.dark-mode .theme-toggle:hover .moon-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Logos - Use white versions in dark mode, also in about section */
.logo img {
    height: 70px;
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sobre page - images and SVGs */
#sobre-page img[src*="NOVA FUSÃO"] {
    filter: none;
}

body.dark-mode #sobre-page img[src*="NOVA FUSÃO"] {
    filter: brightness(0) invert(1);
}

#sobre-page svg {
    stroke: #1f2937;
    fill: #1f2937;
}

body.dark-mode #sobre-page svg {
    stroke: #ffffff;
    fill: #ffffff;
}


.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: 14px;
    color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
}

body.dark-mode .nav-links a {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #facc15, #eab308);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .nav-links a::after {
    background: var(--navy-bright);
}

.nav-links a:hover {
    color: var(--accent-blue-vivid);
}

body.dark-mode .nav-links a:hover {
    color: var(--navy-bright);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* PAGE TRANSITIONS */
.page {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-image {
    animation: float 3.5s ease-in-out infinite;
}

.about-image {
    animation: float 3.5s ease-in-out infinite;
}

/* HERO CAROUSEL */
.hero-carousel-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: var(--text-white);
    padding: 0;
    overflow: hidden;
    min-height: 680px;
    position: relative;
}

body.dark-mode .hero-carousel-section {
    background: linear-gradient(135deg, #0f1729 0%, #1a2a4a 100%);
}

.hero-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 90, 143, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    height: 680px;
    position: relative;
    z-index: 2;
}

.hero-carousel-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel-content {
    display: flex;
    height: 100%;
    position: relative;
}

.hero-slide {
    display: none !important;
    min-width: 100%;
    height: 100%;
    padding: 80px 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    animation: fadeSlideHero 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide.active {
    display: flex !important;
    position: relative;
}

@keyframes fadeSlideHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-text {
    max-width: 550px;
    flex: 0 0 auto;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-slide-text h1 {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-slide-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-slide-text .btn-primary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    padding: 14px 36px !important;
}

.hero-slide-text .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .hero-slide-text .btn-primary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .hero-slide-text .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

.hero-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 480px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.indicator-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

body.dark-mode .indicator-dot.active {
    background: var(--navy-bright);
    border-color: var(--navy-bright);
    box-shadow: 0 0 20px rgba(74, 106, 170, 0.5);
}

.hero-carousel-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    width: auto;
    height: auto;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin: 0 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    backdrop-filter: blur(10px);
}

.hero-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-carousel-btn svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, var(--accent-blue-vivid) 72%, #2563eb 100%);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.25);
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #24428a 0%, var(--accent-blue-vivid) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.32);
}

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

.btn-lg {
    padding: 16px 44px;
    font-size: 16px;
}

/* ABOUT SECTION */
.about-section {
    background: var(--navy-dark);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 90, 143, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: 42px;
    color: var(--navy-bright);
    margin-bottom: 24px;
    font-weight: 700;
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.stat {
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    padding: 40px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--accent-blue-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.dark-mode .stat {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.6) 0%, rgba(22, 33, 58, 0.76) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #eab308);
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    border-color: var(--accent-yellow);
}

body.dark-mode .stat:hover {
    background: rgba(29, 42, 74, 0.7);
}

.stat-num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--navy-bright);
    margin-bottom: 12px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat:nth-child(3n + 1) {
    background: linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
}

.stat:nth-child(3n + 2) {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%);
}

.stat:nth-child(3n) {
    background: linear-gradient(145deg, #ffffff 0%, #f2fcfb 100%);
}

body.dark-mode .stat:nth-child(3n + 1),
body.dark-mode .stat:nth-child(3n + 2),
body.dark-mode .stat:nth-child(3n) {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.6) 0%, rgba(22, 33, 58, 0.76) 100%);
}

.stat-slogan {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15);
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 220px;
}

body.dark-mode .stat-slogan {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: 220px;
}

.stat-slogan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.dark-mode .stat-slogan::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.slogan-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(17%) sepia(60%) saturate(1294%) hue-rotate(217deg) brightness(103%) contrast(104%);
    position: relative;
    z-index: 1;
}

body.dark-mode .slogan-logo {
    filter: brightness(0) invert(1);
}

.slogan-text {
    font-size: 20px;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

body.dark-mode .slogan-text {
    color: #ffffff;
}

/* CTA STRIP */
.cta-strip {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .cta-strip {
    background: linear-gradient(135deg, #0f1729 0%, #1a2a4a 100%);
    color: #ffffff;
}

.cta-strip::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-strip h2 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.cta-strip p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 1;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.cta-strip .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-strip .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* PAGES COMMON */
#servicos-page,
#contato-page {
    padding: 80px 24px;
    background: linear-gradient(165deg, var(--navy-darkest) 0%, var(--surface-a) 60%, var(--navy-darkest) 100%);
}

#sobre-page,
#cursos-page,
#depoimentos-page,
#admin-page,
#produto-page {
    padding: 80px 24px;
    background: linear-gradient(165deg, var(--navy-dark) 0%, var(--surface-b) 100%);
}

/* Cursos page specific styling for dark mode */
body.dark-mode #cursos-page h1,
body.dark-mode #cursos-page h2,
body.dark-mode #cursos-page h3 {
    color: #93c5fd;
}

#cursos-page h1,
#cursos-page h2,
#cursos-page h3 {
    color: var(--navy-bright);
}

body.dark-mode #cursos-page .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
}

body.dark-mode #cursos-page p,
body.dark-mode #cursos-page li,
body.dark-mode #cursos-page strong {
    color: var(--text-light);
}

body.dark-mode #cursos-page div[style*="background"] {
    background: rgba(30, 58, 138, 0.15) !important;
    border: 1px solid rgba(74, 106, 170, 0.3) !important;
    color: var(--text-light);
}

#servicos-page h1,
#sobre-page h1,
#depoimentos-page h1,
#contato-page h1,
#admin-page h1 {
    text-align: center;
    color: var(--navy-bright);
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
}

#servicos-page h1::after,
#sobre-page h1::after,
#depoimentos-page h1::after,
#contato-page h1::after,
#admin-page h1::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #facc15 0%, #eab308 100%);
}

/* SERVICES CATALOG */
.services-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 60px;
}

@media (max-width: 1200px) {
    .services-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-catalog {
        grid-template-columns: 1fr;
    }
}

.service-catalog-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--accent-blue-soft);
    position: relative;
    min-height: 320px;
}

body.dark-mode .service-catalog-card {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(22, 34, 62, 0.76) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.service-catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #eab308);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.service-catalog-card:hover {
    transform: translateY(-8px) rotate(-0.3deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
    background: #ffffff;
}

body.dark-mode .service-catalog-card:hover {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.76) 0%, rgba(22, 34, 62, 0.84) 100%);
}

.service-catalog-card:hover::before {
    transform: scaleX(1);
}

.service-catalog-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #eff5ff 0%, #eaf3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-catalog-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.service-catalog-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.service-catalog-name {
    padding: 28px 24px;
    text-align: center;
    color: var(--navy-bright);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
}

.service-catalog-card:nth-child(3n + 2)::before {
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
}

.service-catalog-card:nth-child(4n)::before {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue-vivid));
}

@media (max-width: 1200px) {
    .service-catalog-card {
        min-height: 300px;
    }
}

@keyframes scrollTickerSmooth {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollTickerDynamic {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--ticker-distance, 50%)));
    }
}

/* REVIEWS TICKER */
.reviews-ticker-section {
    padding: 80px 0;
    margin: 60px 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(140deg, #f4f8ff 0%, #f8fbff 55%, #fffdf6 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.dark-mode .reviews-ticker-section {
    background: linear-gradient(140deg, rgba(16, 26, 48, 0.95) 0%, rgba(24, 35, 66, 0.92) 100%);
}

.reviews-ticker-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    background: linear-gradient(90deg, #f4f8ff 0%, rgba(244, 248, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.reviews-ticker-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    background: linear-gradient(90deg, rgba(244, 248, 255, 0) 0%, #fffdf6 100%);
    z-index: 10;
    pointer-events: none;
}

body.dark-mode .reviews-ticker-section::before {
    background: linear-gradient(90deg, var(--navy-dark) 0%, rgba(15, 23, 41, 0) 100%);
}

body.dark-mode .reviews-ticker-section::after {
    background: linear-gradient(90deg, rgba(15, 23, 41, 0) 0%, var(--navy-dark) 100%);
}

.reviews-track {
    display: flex;
    gap: 32px;
    padding: 20px 24px 20px 0;
    animation: none;
    will-change: transform;
    width: max-content;
    margin-left: 0;
    justify-content: flex-start;
    transform: translate3d(0, 0, 0);
}

.testimonials-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.testimonials-section h2,
.testimonials-section .google-source-badge {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

@media (hover: hover) and (pointer: fine) {
    .reviews-track:hover {
        animation-play-state: paused !important;
    }
}

.reviews-track .review-card {
    flex-shrink: 0;
    width: 360px;
    height: 332px;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--accent-blue-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

body.dark-mode .reviews-track .review-card {
    background: rgba(29, 42, 74, 0.5);
    border: 1px solid rgba(61, 90, 143, 0.3);
}

.reviews-track .review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    border-color: var(--accent-yellow);
}

body.dark-mode .reviews-track .review-card:hover {
    background: rgba(29, 42, 74, 0.78);
}

.reviews-track .review-card .stars {
    font-size: 18px;
    color: #fbbc04;
    margin-bottom: 16px;
    letter-spacing: 4px;
    position: relative;
    padding-top: 0;
}

.google-review-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.google-review-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0;
}

.reviews-track .review-card .feedback-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.7;
    flex-grow: 1;
}

.reviews-track .review-card .author {
    color: var(--navy-bright);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 15px;
}

.reviews-track .review-card .company {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.reviews-track .review-card:nth-child(4n + 1) {
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
}

.reviews-track .review-card:nth-child(4n + 2) {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%);
}

.reviews-track .review-card:nth-child(4n + 3) {
    background: linear-gradient(145deg, #ffffff 0%, #f4fcff 100%);
}

body.dark-mode .reviews-track .review-card:nth-child(4n + 1),
body.dark-mode .reviews-track .review-card:nth-child(4n + 2),
body.dark-mode .reviews-track .review-card:nth-child(4n + 3) {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.66) 0%, rgba(22, 34, 62, 0.8) 100%);
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(140deg, rgba(219, 234, 254, 0.38) 0%, rgba(254, 243, 199, 0.22) 100%);
}

body.dark-mode .testimonials-section {
    background: linear-gradient(140deg, rgba(30, 58, 138, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.google-source-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 28px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
}

.reviews-disclaimer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.48;
    margin: -10px 0 14px 0;
    letter-spacing: 0;
}

body.dark-mode .reviews-disclaimer {
    opacity: 0.42;
}

body.dark-mode .google-source-badge {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.68) 0%, rgba(22, 33, 58, 0.8) 100%);
    border-color: rgba(96, 165, 250, 0.32);
}

.google-g {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    background: conic-gradient(#4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.google-logo-mark {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.verified-pill {
    background: var(--accent-yellow-soft);
    color: #8a6400;
    border: 1px solid rgba(244, 196, 25, 0.5);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

body.dark-mode .verified-pill {
    color: #fef3c7;
}

@media (max-width: 768px) {
    .google-source-badge {
        font-size: 12px;
        gap: 8px;
        padding: 8px 10px;
    }

    .verified-pill {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* CONTACT SECTION */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 36px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-blue-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .info-card {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(22, 34, 60, 0.76) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.info-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
    transition: all 0.3s;
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-8px) rotate(-0.25deg);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    border-color: var(--accent-yellow);
}

body.dark-mode .info-card:hover {
    background: rgba(29, 42, 74, 0.7);
    border-color: rgba(74, 106, 170, 0.5);
}

.info-card h3 {
    color: #1f2937;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.dark-mode .info-card h3 {
    color: var(--text-white);
}

.info-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue-vivid);
    filter: brightness(0) saturate(100%) invert(40%) sepia(78%) saturate(1886%) hue-rotate(206deg) brightness(99%) contrast(96%);
}

body.dark-mode .info-card h3 svg {
    filter: brightness(0) saturate(100%) invert(73%) sepia(30%) saturate(1059%) hue-rotate(180deg) brightness(102%) contrast(93%);
    color: var(--accent-blue-vivid);
}

.info-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.info-card a {
    color: var(--navy-bright);
    font-weight: 600;
    transition: color 0.3s;
}

.info-card a:hover {
    color: var(--accent-cyan);
}

.info-card:nth-child(3n + 1) {
    background: linear-gradient(145deg, #ffffff 0%, #f3f9ff 100%);
}

.info-card:nth-child(3n + 2) {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%);
}

.info-card:nth-child(3n) {
    background: linear-gradient(145deg, #ffffff 0%, #f2fcfb 100%);
}

body.dark-mode .info-card:nth-child(3n + 1),
body.dark-mode .info-card:nth-child(3n + 2),
body.dark-mode .info-card:nth-child(3n) {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(22, 34, 60, 0.76) 100%);
}

/* FORMS */
.contact-form,
.feedback-form {
    background: linear-gradient(145deg, #ffffff 0%, #f9fcff 100%);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-blue-soft);
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .contact-form,
body.dark-mode .feedback-form {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(22, 33, 58, 0.78) 100%);
    border: 1px solid rgba(96, 165, 250, 0.32);
}

.contact-form h3,
.feedback-form h3 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 32px;
    font-weight: 700;
}

body.dark-mode .contact-form h3,
body.dark-mode .feedback-form h3 {
    color: var(--text-white);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 2px solid #d9e7fb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form select,
body.dark-mode .feedback-form input,
body.dark-mode .feedback-form textarea,
body.dark-mode .feedback-form select {
    border: 1px solid rgba(61, 90, 143, 0.3);
    color: var(--text-white);
    background: rgba(15, 23, 41, 0.8);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent-blue-vivid);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12), 0 0 0 6px rgba(244, 196, 25, 0.12);
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus,
body.dark-mode .contact-form select:focus,
body.dark-mode .feedback-form input:focus,
body.dark-mode .feedback-form textarea:focus,
body.dark-mode .feedback-form select:focus {
    outline: none;
    background: rgba(15, 23, 41, 0.95);
    border-color: var(--navy-bright);
    box-shadow: 0 0 0 3px rgba(74, 106, 170, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* FOOTER - Consistent grey in both light and dark modes */
.footer {
    background: #1f2937;
    color: #f3f4f6;
    padding: 60px 24px 24px;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

#admin-page ~ .footer {
    display: none;
}

#admin-page.active ~ .footer {
    display: none;
}

/* Admin Panel Styling */
.admin-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--navy-light);
}

body.dark-mode .admin-tabs {
    border-bottom: 2px solid rgba(61, 90, 143, 0.3);
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--navy-bright);
}

.admin-tab.active {
    color: var(--navy-bright);
    border-bottom-color: var(--navy-bright);
}

body.dark-mode .admin-tab {
    color: var(--text-muted);
}

body.dark-mode .admin-tab:hover {
    color: var(--navy-bright);
}

body.dark-mode .admin-tab.active {
    color: var(--navy-bright);
    border-bottom-color: var(--navy-bright);
}

.admin-content {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-content h3 {
    color: var(--navy-bright);
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 700;
}

body.dark-mode .admin-content h3 {
    color: var(--navy-bright);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 40px;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #f3f4f6;
}

.footer-col p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-col a {
    color: #93c5fd;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #dbeafe;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9ca3af;
}

.footer-col ul li a:hover {
    color: #93c5fd;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 197, 253, 0.2);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(147, 197, 253, 0.4);
}

.social-icons a:hover {
    background: #60a5fa;
    border-color: #60a5fa;
    transform: translateY(-4px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(93, 93, 109, 0.2);
    padding-top: 24px;
    padding-bottom: 6px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.35;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 24px;
        left: 24px;
        width: 50px;
        height: 50px;
    }

    .theme-icon {
        width: 24px;
        height: 24px;
    }

    .navbar-content {
        padding: 12px 16px;
        position: relative;
    }

    .navbar {
        position: relative;
    }

    .logo img {
        height: 48px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--navy-darkest);
        padding: 0;
        gap: 0;
        border-bottom: 1px solid var(--navy-light);
        z-index: 99;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-width: 100vw;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.dark-mode .nav-links {
        background: rgba(15, 23, 41, 0.95);
        border-bottom: 1px solid rgba(45, 74, 122, 0.3);
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        padding: 16px 16px;
        border-bottom: 1px solid var(--navy-light);
        position: static;
        transform: none !important;
        color: var(--text-white);
        text-align: left;
    }

    body.dark-mode .nav-links a {
        border-bottom: 1px solid rgba(45, 74, 122, 0.3);
        color: var(--text-light);
    }

    .nav-links a:hover {
        background: rgba(30, 58, 138, 0.1);
        color: var(--navy-bright);
    }

    body.dark-mode .nav-links a:hover {
        background: rgba(74, 106, 170, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        color: var(--text-white);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle:hover {
        transform: scale(1.05);
    }

    .menu-toggle.active {
        transform: rotate(90deg) scale(1.05);
    }

    .menu-toggle.active:hover {
        transform: rotate(90deg) scale(1.1);
    }

    body.dark-mode .menu-toggle {
        color: var(--text-light);
    }

    .hero-carousel-section {
        min-height: 500px;
        overflow: hidden;
    }

    .hero-carousel-wrapper {
        height: 500px;
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
    }

    .hero-slide {
        flex-direction: column;
        padding: 30px 16px !important;
        justify-content: center;
        gap: 30px !important;
    }

    .hero-slide-text {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .hero-slide-text h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-slide-text p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-slide-text .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-slide-image {
        height: 250px;
        width: 100%;
    }

    .hero-carousel-btn {
        margin: 0 8px;
        padding: 8px;
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .hero-carousel-btn.prev {
        left: 8px;
    }

    .hero-carousel-btn.next {
        right: 8px;
    }

    .hero-carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .hero-carousel-indicators {
        bottom: 20px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
    }

    .indicator-dot.active {
        width: 24px;
    }

    .services-catalog {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 24px;
    }

    #servicos-page h1,
    #sobre-page h1,
    #depoimentos-page h1,
    #contato-page h1,
    #admin-page h1 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    #sobre-page > .container > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        margin: 30px 0 !important;
    }

    #sobre-page > .container > div > div:first-child {
        order: 2;
        width: 100%;
    }

    #sobre-page > .container > div > div:last-child {
        order: 1;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 300px;
    }

    #sobre-page .about-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    #cursos-page {
        padding: 40px 15px;
    }

    #cursos-page > .container > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .course-detail {
        order: 2;
        width: 100%;
    }

    .course-detail h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .course-detail h3 {
        font-size: 18px;
        margin-top: 15px;
    }

    .course-detail section {
        margin: 20px 0 !important;
    }

    #cursos-page > .container > div > div:last-child {
        order: 1;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 300px;
    }

    .course-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    #produto-page > .container > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
        grid-template-columns: 1fr !important;
    }

    #produto-page > .container > div > div:first-child {
        order: -1;
        width: 100%;
    }

    #produto-img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    #produto-page > .container > div > div:last-child {
        width: 100%;
    }

    #produto-page h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    #produto-page h3 {
        font-size: 18px;
        margin-top: 15px;
    }

    #produto-page a[data-page="servicos"] {
        margin-bottom: 15px;
    }

    .review-card {
        width: 280px;
    }

    .contact-form {
        max-width: 100%;
        padding: 25px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ADMIN PANEL STYLES */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--navy-mid);
    margin-bottom: 30px;
    overflow-x: auto;
}

.admin-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--navy-bright);
}

.admin-tab.active {
    color: var(--navy-bright);
    border-bottom-color: var(--navy-bright);
}

.admin-content {
    animation: fadeIn 0.2s ease;
}

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

.admin-item {
    background: var(--navy-dark);
    border-left: 4px solid var(--navy-bright);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-item h4 {
    margin: 0 0 8px 0;
    color: var(--navy-bright);
    font-size: 16px;
}

.admin-item p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-light);
}

.admin-item strong {
    color: var(--text-white);
}

/* Admin Panel Buttons */
.btn-admin {
    padding: 10px 20px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--navy-bright);
    color: white;
}

.btn-admin:hover:not(:disabled) {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-admin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-admin.primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    background: var(--navy-bright);
}

.btn-admin.primary:hover:not(:disabled) {
    background: #1e3a8a;
}

.btn-admin.success {
    background: #4caf50;
}

.btn-admin.success:hover:not(:disabled) {
    background: #45a049;
}

.btn-admin.danger {
    background: #f44336;
}

.btn-admin.danger:hover:not(:disabled) {
    background: #da190b;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

.status-badge.approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-badge.automatic {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-badge.manual {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-stat-card {
    background: var(--navy-dark);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--navy-bright);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card h4 {
    margin: 0 0 12px 0;
    color: var(--navy-bright);
    font-size: 14px;
}

.admin-stat-card p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--text-light);
}

/* Admin History List */
.admin-history {
    max-height: 400px;
    overflow-y: auto;
    background: var(--navy-dark);
    border-radius: 8px;
    padding: 12px;
}

.admin-history-item {
    padding: 12px;
    border-bottom: 1px solid var(--navy-mid);
    font-size: 13px;
    color: var(--text-light);
}

.admin-history-item:last-child {
    border-bottom: none;
}

.admin-history-item strong {
    color: var(--text-white);
}

/* Rating Stars */
.rating-stars {
    font-size: 14px;
    color: #ffc107;
    letter-spacing: 2px;
}

body.dark-mode .admin-item {
    background: rgba(15, 23, 41, 0.8);
    border-left-color: var(--navy-bright);
}

/* Dark mode fixes for admin panel tabs with hardcoded styles */

/* Course cards - override hardcoded white backgrounds */
body.dark-mode #adminCursos div[style*="background: #ffffff"] {
    background: rgba(15, 23, 41, 0.8) !important;
    border: 1px solid rgba(61, 90, 143, 0.3) !important;
}

body.dark-mode #adminCursos h3 {
    color: #93c5fd !important;
}

body.dark-mode #adminCursos p {
    color: var(--text-light) !important;
}

body.dark-mode #adminCursos label {
    color: var(--text-muted) !important;
}

/* Configuration section - override hardcoded white backgrounds */
body.dark-mode #adminSettings div[style*="background: #ffffff"] {
    background: rgba(15, 23, 41, 0.8) !important;
    border: 1px solid rgba(61, 90, 143, 0.3) !important;
}

body.dark-mode #adminSettings input[style*="background: rgba"],
body.dark-mode #adminSettings input[type="password"],
body.dark-mode #adminSettings input[type="text"] {
    background: rgba(29, 42, 74, 0.7) !important;
    border-color: rgba(61, 90, 143, 0.3) !important;
    color: var(--text-white) !important;
}

body.dark-mode #adminSettings input::placeholder {
    color: var(--text-muted) !important;
}

body.dark-mode #adminSettings label {
    color: var(--text-white) !important;
}

body.dark-mode #adminSettings h3 {
    color: #93c5fd !important;
}

/* Course/Edit modals - override hardcoded white backgrounds */
body.dark-mode [style*="background: white"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#fff"] {
    background: rgba(15, 23, 41, 0.95) !important;
    border: 1px solid rgba(61, 90, 143, 0.3) !important;
}

/* Modal title styling */
body.dark-mode div[id*="modal"] h2 {
    color: #93c5fd !important;
}

/* Modal and admin panel label styling */
body.dark-mode #course-modal label,
body.dark-mode #adminSettings label {
    color: var(--text-white) !important;
}

/* Modal and admin panel input/textarea styling */
body.dark-mode #course-modal input,
body.dark-mode #course-modal textarea,
body.dark-mode #adminSettings input,
body.dark-mode #adminSettings textarea {
    background: rgba(29, 42, 74, 0.7) !important;
    border-color: rgba(61, 90, 143, 0.3) !important;
    color: var(--text-white) !important;
}

body.dark-mode #course-modal input::placeholder,
body.dark-mode #course-modal textarea::placeholder,
body.dark-mode #adminSettings input::placeholder {
    color: var(--text-muted) !important;
}

/* Image preview areas */
body.dark-mode #imagePreview {
    background: rgba(29, 42, 74, 0.5) !important;
    border-color: rgba(61, 90, 143, 0.3) !important;
}

body.dark-mode #imagePreview p {
    color: var(--text-muted) !important;
}

/* Cancel buttons in modals */
body.dark-mode #course-modal button[type="button"] {
    background: rgba(61, 90, 143, 0.3) !important;
    color: var(--text-white) !important;
}

/* Override buttons with specific colors */
body.dark-mode button[style*="background: #4caf50"],
body.dark-mode button[style*="background: #45a049"] {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%) !important;
}

body.dark-mode button[style*="background: #ff6b6b"] {
    background: #e53935 !important;
}

body.dark-mode button[style*="background: #f0f0f0"] {
    background: rgba(61, 90, 143, 0.3) !important;
    color: var(--text-white) !important;
}

/* Feedback section - ensure items look good in dark mode */
body.dark-mode .admin-item {
    background: rgba(15, 23, 41, 0.8) !important;
    border: 1px solid rgba(61, 90, 143, 0.3) !important;
}

body.dark-mode .admin-item h4 {
    color: #93c5fd !important;
}

body.dark-mode .admin-item p {
    color: var(--text-light) !important;
}

body.dark-mode .admin-item > div > div span[class*="badge"] {
    background: rgba(76, 175, 80, 0.15) !important;
}

body.dark-mode .admin-item .status-badge.approved {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #66bb6a !important;
}

body.dark-mode .admin-item .status-badge.pending {
    background: rgba(255, 152, 0, 0.2) !important;
    color: #ffb74d !important;
}

body.dark-mode .admin-item .btn-admin {
    background: var(--navy-bright) !important;
    color: white !important;
}

body.dark-mode .admin-item .btn-admin.success {
    background: #4caf50 !important;
}

body.dark-mode .admin-item .btn-admin.danger {
    background: #f44336 !important;
}

/* Ensure all content in admin tabs has proper text colors */
body.dark-mode #admin-feedbacks,
body.dark-mode #adminImagens,
body.dark-mode #adminCursos,
body.dark-mode #adminSettings {
    color: var(--text-white) !important;
}

/* Make sure spinners are visible in dark mode */
body.dark-mode [style*="border: 2px solid #fff"] {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode [style*="border-top: 2px solid transparent"] {
    border-top-color: rgba(255, 255, 255, 0.8) !important;
}

/* COURSES */
#cursos-page {
    overflow-x: hidden;
}

.courses-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0 20px 0;
}

.courses-header h1 {
    font-size: 42px;
    margin: 0 0 16px 0;
    color: var(--navy-bright);
    font-weight: 700;
}

.courses-header p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
}

.course-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    align-items: center;
    border: 1px solid var(--accent-blue-soft);
}

.course-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--accent-yellow);
}

body.dark-mode .course-item {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(22, 34, 62, 0.78) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

body.dark-mode .course-item:hover {
    border-color: rgba(250, 204, 21, 0.65);
}

.course-image-wrapper {
    width: 300px;
    height: 280px;
    background: linear-gradient(145deg, var(--accent-blue-soft) 0%, #e9f5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark-mode .course-image-wrapper {
    background: linear-gradient(145deg, rgba(41, 69, 120, 0.58) 0%, rgba(30, 48, 88, 0.72) 100%);
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-wrapper .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--navy-bright);
}

.course-info-wrapper {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.course-info-wrapper h3 {
    font-size: 22px;
    margin: 0 0 16px 0;
    color: var(--navy-bright);
    line-height: 1.3;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.course-info-wrapper p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px 0;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.course-meta-info {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.course-meta-info .meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-details {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--accent-blue-vivid) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.btn-details:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--accent-cyan) 100%);
    transform: translateY(-2px);
}

.course-item:nth-child(3n + 2) .course-image-wrapper {
    background: linear-gradient(145deg, #f6fbff 0%, var(--accent-orange-soft) 100%);
}

.course-item:nth-child(3n) .course-image-wrapper {
    background: linear-gradient(145deg, #effdfa 0%, var(--accent-cyan-soft) 100%);
}

/* Course Detail */
.back-btn {
    background: transparent;
    border: 2px solid var(--accent-blue-vivid);
    color: var(--accent-blue-vivid);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.back-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue-vivid) 0%, var(--accent-cyan) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-detail,
.course-detail-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.detail-image,
.detail-image-full {
    width: 100%;
}

.detail-image img,
.detail-image-full img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.detail-image .no-image-large,
.detail-image-full .no-image-large {
    width: 100%;
    height: 400px;
    background: var(--navy-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--navy-bright);
    box-shadow: var(--shadow-lg);
}

.detail-content h1,
.detail-full-content h1 {
    font-size: 32px;
    color: var(--navy-bright);
    margin: 0 0 32px 0;
    line-height: 1.3;
    font-weight: 700;
}

.detail-meta,
.detail-meta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background: linear-gradient(145deg, #edf4ff 0%, #f8fbff 72%, #fffdf5 100%);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--accent-blue-soft);
}

.detail-meta .meta-box,
.detail-meta-cards .meta-card {
    text-align: center;
}

.detail-meta .meta-label,
.detail-meta-cards .meta-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-meta .meta-value,
.detail-meta-cards .meta-value {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.5;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 20px;
    color: var(--navy-bright);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.detail-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    font-size: 14px;
    color: var(--text-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--navy-mid);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list svg {
    color: var(--navy-bright);
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .course-item {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .course-image-wrapper {
        width: 250px;
        height: 240px;
    }

    .course-detail {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .courses-header {
        padding: 30px 0 20px 0;
    }

    .courses-header h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .courses-header p {
        font-size: 14px;
    }

    .courses-list {
        gap: 24px;
        margin-bottom: 40px;
    }

    .course-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .course-image-wrapper {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .course-info-wrapper {
        padding: 20px;
        min-width: 0;
    }

    .course-info-wrapper h3 {
        font-size: 18px;
        margin-bottom: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .course-info-wrapper p {
        font-size: 13px;
        margin-bottom: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .course-meta-info {
        gap: 16px;
        margin-bottom: 16px;
    }

    .course-meta-info .meta {
        font-size: 12px;
    }

    .btn-details {
        padding: 10px 16px;
        font-size: 12px;
    }

    #courseDetailContainer {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        order: 1 !important;
    }

    .back-btn {
        display: block !important;
        margin: 0 0 40px 0 !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        width: auto !important;
        order: -1 !important;
    }

    .course-detail,
    .course-detail-full {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .detail-image,
    .detail-image-full {
        width: 100% !important;
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .detail-image img,
    .detail-image-full img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 !important;
    }

    .detail-content,
    .detail-full-content {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .detail-full-content h1,
    .detail-content h1 {
        font-size: 24px !important;
        margin: 0 0 30px 0 !important;
        text-align: left !important;
        color: var(--navy-bright) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    .detail-meta-cards,
    .detail-meta {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 0 40px 0 !important;
        background: transparent !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .detail-meta-cards .meta-card,
    .detail-meta .meta-box {
        background: var(--navy-dark) !important;
        padding: 16px !important;
        border-radius: 8px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .detail-meta-cards .meta-label,
    .detail-meta .meta-label {
        font-size: 10px !important;
        text-transform: uppercase !important;
        color: var(--text-muted) !important;
        margin-bottom: 8px !important;
    }

    .detail-meta-cards .meta-value,
    .detail-meta .meta-value {
        font-size: 13px !important;
        color: var(--text-white) !important;
        font-weight: 600 !important;
    }

    .detail-section {
        width: 100% !important;
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .detail-section h2 {
        font-size: 18px !important;
        margin: 0 0 16px 0 !important;
        color: var(--navy-bright) !important;
        font-weight: 600 !important;
        text-align: left !important;
    }

    .detail-section p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: var(--text-light) !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .content-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .content-list li {
        font-size: 13px !important;
        color: var(--text-light) !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--navy-mid) !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
        line-height: 1.5 !important;
    }

    .content-list li:last-child {
        border-bottom: none !important;
    }

    .btn-primary.btn-lg {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 40px 0 0 0 !important;
        padding: 14px 24px !important;
    }
}

/* COURSE DETAIL */
.course-detail-view {
    padding: 40px 0;
}

.course-back-btn {
    background: transparent;
    color: var(--accent-blue-vivid);
    border: 2px solid var(--accent-blue-vivid);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.course-back-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue-vivid) 0%, var(--accent-cyan) 100%);
    color: white;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.course-image-section {
    width: 100%;
}

.course-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: block;
}

.no-image-large {
    width: 100%;
    height: 400px;
    background: var(--navy-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--navy-bright);
    box-shadow: var(--shadow-md);
}

.course-info-section h1 {
    font-size: 32px;
    color: var(--navy-bright);
    margin: 0 0 32px 0;
    line-height: 1.3;
}

.course-meta {
    background: linear-gradient(145deg, #edf4ff 0%, #f8fbff 72%, #fffdf5 100%);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--accent-blue-soft);
}

.meta-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    color: var(--navy-bright);
    flex-shrink: 0;
    display: flex;
    font-size: 20px;
    margin-top: 2px;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.meta-value {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

body.dark-mode .course-meta,
body.dark-mode .detail-meta,
body.dark-mode .detail-meta-cards {
    background: linear-gradient(145deg, rgba(30, 50, 92, 0.58) 0%, rgba(24, 36, 66, 0.82) 100%);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

body.dark-mode .meta-value,
body.dark-mode .detail-meta .meta-value,
body.dark-mode .detail-meta-cards .meta-value {
    color: var(--text-white);
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h2 {
    font-size: 20px;
    color: var(--navy-bright);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.detail-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.content-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-checklist li {
    font-size: 14px;
    color: var(--text-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--navy-mid);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.content-checklist li:last-child {
    border-bottom: none;
}

.content-checklist svg {
    color: var(--navy-bright);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* GOOGLE REVIEWS SECTION */
.google-reviews-section {
    background: var(--navy-dark);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.google-reviews-section .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.reviews-header {
    position: sticky;
    top: 150px;
}

.reviews-header h2 {
    font-size: 42px;
    color: var(--navy-bright);
    margin-bottom: 48px;
    font-weight: 700;
    line-height: 1.3;
}

.reviews-rating {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

body.dark-mode .reviews-rating {
    background: rgba(29, 42, 74, 0.5);
    border: 1px solid rgba(61, 90, 143, 0.3);
}

.stars {
    font-size: 48px;
    color: #FFC107;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.rating-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-bright);
    margin-bottom: 8px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.google-logo {
    display: flex;
    justify-content: center;
}

.google-logo svg {
    height: 32px;
    width: auto;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .review-card {
    background: rgba(29, 42, 74, 0.5);
    border: 1px solid rgba(61, 90, 143, 0.3);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.reviewer-details {
    margin: 0;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 4px 0;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.review-stars {
    color: #FFC107;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .google-reviews-section .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .reviews-header {
        position: static;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .google-reviews-section {
        padding: 60px 24px;
    }

    .reviews-header h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 20px;
    }

    .review-stars {
        font-size: 12px;
    }

    .review-text {
        font-size: 13px;
    }
}

.google-reviews-section .feedback-form {
    margin-top: 80px;
}

/* ADMIN PANEL STYLES */
.admin-container {
    display: none;
    min-height: calc(100vh - 80px);
}

.admin-container.authenticated {
    display: flex;
    gap: 0;
}

.admin-sidebar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 32px 0;
    position: sticky;
    top: 80px;
    width: 280px;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

body.dark-mode .admin-sidebar {
    background: linear-gradient(135deg, #0f1729 0%, #1a2a4a 100%);
}

.admin-logo {
    padding: 0 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.admin-logo h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.admin-nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #60a5fa;
}

.admin-nav-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.admin-logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto 0 0 0;
    width: 100%;
    justify-content: flex-start;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-content {
    padding: 48px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-tab {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tab-header {
    margin-bottom: 48px;
}

.tab-header h2 {
    font-size: 32px;
    color: var(--navy-bright);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.tab-header p {
    color: var(--text-muted);
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .stat-card {
    background: rgba(29, 42, 74, 0.5);
    border: 1px solid rgba(61, 90, 143, 0.3);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.stat-text {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-bright);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
        top: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 24px;
    }

    .admin-logo {
        padding: 0 0 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-logo h2 {
        font-size: 18px;
    }

    .admin-nav {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }

    .admin-nav-item {
        flex: 1;
        min-width: 100px;
        padding: 12px 16px;
        font-size: 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .admin-nav-item.active {
        border-left: none;
        border-bottom-color: #60a5fa;
    }

    .admin-logout-btn {
        margin-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }

    .admin-content {
        padding: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        padding: 12px 16px;
    }

    .admin-logo {
        padding: 0 0 12px;
        margin-bottom: 12px;
    }

    .admin-logo h2 {
        font-size: 16px;
    }

    .admin-nav {
        gap: 6px;
    }

    .admin-nav-item {
        padding: 10px 12px;
        font-size: 11px;
        min-width: auto;
    }

    .admin-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .admin-logout-btn {
        padding: 10px 12px;
        font-size: 11px;
        margin-top: 12px;
    }

    .admin-content {
        padding: 16px;
    }

    .tab-header {
        margin-bottom: 20px;
    }

    .tab-header h2 {
        font-size: 20px;
    }

    .stat-card {
        padding: 20px;
        gap: 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 20px;
    }
}

/* ADMIN LOGIN STYLES */
.admin-login {
    max-width: 420px;
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .admin-login {
    background: rgba(15, 23, 41, 0.95);
    border: 1px solid rgba(61, 90, 143, 0.3);
}

.admin-login h2 {
    color: var(--navy-bright);
    margin: 0 0 32px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

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

.admin-login input {
    padding: 14px 16px;
    border: 2px solid var(--navy-mid);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-white);
    background: #ffffff;
}

body.dark-mode .admin-login input {
    background: rgba(15, 23, 41, 0.8);
    border: 1px solid rgba(61, 90, 143, 0.3);
    color: var(--text-white);
}

.admin-login input:focus {
    outline: none;
    border-color: var(--navy-bright);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* Admin Buttons */
.btn-admin {
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-admin.success {
    background: #4caf50;
}

.btn-admin.danger {
    background: #ff6b6b;
}

/* HOW TO REQUEST SECTION */
.how-to-request-section {
    background: var(--navy-dark);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.how-to-request-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 8% 15%, var(--accent-blue-soft) 0, transparent 35%),
        radial-gradient(circle at 92% 78%, var(--accent-yellow-soft) 0, transparent 30%);
    pointer-events: none;
}

.how-to-request-section h2 {
    font-size: 42px;
    color: var(--navy-bright);
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
}

.request-steps {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 1.05fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--accent-blue-soft);
    overflow: hidden;
}

body.dark-mode .step-card {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.62) 0%, rgba(21, 33, 58, 0.72) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.step-card:hover {
    transform: translateY(-8px) rotate(-0.3deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.step-card h3 {
    font-size: 20px;
    color: var(--navy-bright);
    margin: 20px 0 16px 0;
    font-weight: 700;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

body.dark-mode .step-card p {
    color: var(--text-light);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, var(--accent-blue-vivid) 100%);
    border-radius: 18px;
    margin: 0 auto;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.step-card:nth-child(2) {
    margin-top: 34px;
    background: linear-gradient(145deg, #f6fbff 0%, #eef6ff 100%);
}

body.dark-mode .step-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(22, 44, 78, 0.7) 0%, rgba(21, 33, 58, 0.78) 100%);
}

.step-card:nth-child(2) .step-icon {
    background: linear-gradient(135deg, var(--accent-blue-vivid) 0%, #0ea5e9 100%);
}

.step-card:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #0f4fb8 0%, #2563eb 100%);
}

@media (max-width: 1024px) {
    .request-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .step-card:nth-child(2) {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .how-to-request-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .request-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 30px 24px;
    }

    .step-card h3 {
        font-size: 18px;
    }

    .step-card p {
        font-size: 13px;
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }

    .step-icon svg {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 1024px) {
    .course-detail-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .courses-header {
        margin-bottom: 32px;
    }

    .courses-header h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .courses-header p {
        font-size: 14px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .course-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .course-detail-image {
        height: 300px;
        object-fit: cover;
    }

    .no-image-large {
        height: 300px;
        font-size: 48px;
    }

    .course-info-section h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .course-meta {
        padding: 16px;
        margin-bottom: 24px;
    }

    .meta-item {
        gap: 12px;
        margin-bottom: 12px;
    }

    .detail-section {
        margin-bottom: 24px;
    }

    .detail-section h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .detail-section p {
        font-size: 13px;
        line-height: 1.6;
    }

    .content-checklist li {
        font-size: 13px;
        padding: 10px 0;
    }

    .course-back-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 24px;
    }

    .btn-primary.btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .admin-container {
        min-height: auto;
    }

    .admin-sidebar {
        padding: 8px 12px;
    }

    .admin-nav {
        flex-wrap: wrap;
    }

    .admin-nav-item {
        padding: 8px 10px;
        font-size: 10px;
        flex: 0 1 calc(50% - 3px);
    }

    .admin-nav-item span {
        display: none;
    }

    .admin-logo {
        display: none;
    }

    .admin-content {
        padding: 12px;
    }

    .tab-header h2 {
        font-size: 18px;
    }

    .tab-header p {
        font-size: 13px;
    }
}

/* Image Info Tooltip */
.image-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-info-tooltip:hover .tooltip-box,
.image-info-tooltip:focus-within .tooltip-box {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.tooltip-box {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

body.dark-mode .image-info-tooltip {
    background: #d1d5db;
    color: #0f1729;
}

body.dark-mode .image-info-tooltip:hover .tooltip-box {
    background: #ffffff;
    color: #0f1729;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .image-info-tooltip:hover .tooltip-box::before {
    border-top-color: #ffffff;
}

/* Image Cards */
.image-card {
    background: var(--navy-dark);
}

.image-card button:hover:not(:disabled) {
    background: #153da3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

body.dark-mode .image-card {
    background: var(--navy-dark);
}

body.dark-mode .image-card p {
    color: var(--text-light);
}

body.dark-mode .image-card button {
    background: #1e3a8a;
    color: white;
}

body.dark-mode .image-card button:hover:not(:disabled) {
    background: #2d5cb8;
    box-shadow: 0 4px 12px rgba(74, 106, 170, 0.4);
}

/* Course Modal Responsive */
#course-modal > div {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
}

@media (max-width: 1024px) {
    #course-modal > div {
        max-width: 95vw;
    }

    #course-modal > div > div:last-child {
        flex-direction: column;
    }

    #course-modal > div > div:last-child > div:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(45, 74, 122, 0.3);
    }

    #course-modal > div > div:last-child > div:last-child {
        background: white;
    }
}

/* Dark Mode for Course Preview */
body.dark-mode #coursePreview {
    background: var(--navy-dark) !important;
}

body.dark-mode .detail-meta-cards {
    background: linear-gradient(145deg, rgba(30, 50, 92, 0.58) 0%, rgba(24, 36, 66, 0.82) 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.28) !important;
}

body.dark-mode #coursePreview h1,
body.dark-mode #coursePreview h2,
body.dark-mode #coursePreview h4 {
    color: var(--navy-bright) !important;
}

body.dark-mode #coursePreview p,
body.dark-mode #coursePreview li {
    color: var(--text-light) !important;
}

body.dark-mode .detail-meta-cards .meta-label {
    color: var(--text-muted) !important;
}

body.dark-mode .detail-meta-cards .meta-value {
    color: var(--text-white) !important;
}

@media (max-width: 768px) {
    #course-modal {
        padding: 10px;
        align-items: flex-start;
    }

    #course-modal > div {
        max-height: 95vh;
        max-width: 100vw;
        border-radius: 12px;
    }

    #course-modal > div > div:first-child {
        padding: 16px;
    }

    #course-modal > div > div:first-child h2 {
        font-size: 18px;
    }

    #course-modal > div > div:first-child button {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    #course-modal > div > div:last-child {
        flex-direction: column;
    }

    #course-modal > div > div:last-child > div {
        flex: none;
        overflow-y: auto;
        max-height: 40vh;
    }

    #course-modal > div > div:last-child > div:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(45, 74, 122, 0.3);
        max-height: 50vh;
    }

    #course-modal > div > div:last-child > div:last-child {
        background: #f9fafb;
        max-height: 45vh;
    }

    #course-modal form {
        gap: 10px;
    }

    #course-modal input,
    #course-modal textarea {
        font-size: 14px;
    }

    #course-modal button[type="submit"],
    #course-modal button[type="button"] {
        padding: 8px;
        font-size: 12px;
    }
}

/* Dark mode course preview - colors inherited from variables */
#coursePreview {
    background: var(--navy-dark) !important;
    color: var(--text-light) !important;
}

#coursePreview * {
    color: inherit;
}

#coursePreview h1,
#coursePreview h2,
#coursePreview h3,
#coursePreview section h2 {
    color: var(--navy-bright) !important;
}

#coursePreview div[style*="display: grid"] {
    background: rgba(45, 74, 122, 0.3) !important;
}

/* =========================================================
   REVAMP VISUAL GLOBAL - NOVA FUSAO
   ========================================================= */

body {
    background:
        radial-gradient(circle at 10% 8%, rgba(59, 130, 246, 0.08) 0%, transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(244, 196, 25, 0.1) 0%, transparent 24%),
        var(--navy-darkest);
}

body.dark-mode {
    background:
        radial-gradient(circle at 10% 8%, rgba(96, 165, 250, 0.12) 0%, transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(250, 204, 21, 0.1) 0%, transparent 24%),
        var(--navy-darkest);
}

.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.14);
}

body.dark-mode .navbar {
    background: rgba(10, 15, 31, 0.76);
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
}

.nav-links a {
    font-weight: 600;
}

.hero-carousel-section,
.about-section,
.how-to-request-section,
.testimonials-section,
#sobre-page,
#servicos-page,
#depoimentos-page,
#contato-page,
#cursos-page,
#produto-page {
    border-radius: 28px;
    margin: 22px 18px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .hero-carousel-section,
    .about-section,
    .how-to-request-section,
    .testimonials-section,
    #sobre-page,
    #servicos-page,
    #depoimentos-page,
    #contato-page,
    #cursos-page,
    #produto-page {
        margin: 12px 8px;
        border-radius: 16px;
    }
}

.btn-primary {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.about-section,
.how-to-request-section,
.testimonials-section,
#servicos-page,
#depoimentos-page,
#contato-page,
#cursos-page,
#sobre-page,
#produto-page {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.about-section::after,
.how-to-request-section::after,
.testimonials-section::after,
#servicos-page::after,
#depoimentos-page::after,
#contato-page::after,
#cursos-page::after,
#sobre-page::after,
#produto-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.2) 0%, transparent 28%),
        linear-gradient(310deg, rgba(244, 196, 25, 0.08) 0%, transparent 22%);
}

body.dark-mode .about-section,
body.dark-mode .how-to-request-section,
body.dark-mode .testimonials-section,
body.dark-mode #servicos-page,
body.dark-mode #depoimentos-page,
body.dark-mode #contato-page,
body.dark-mode #cursos-page,
body.dark-mode #sobre-page,
body.dark-mode #produto-page {
    box-shadow: 0 16px 42px rgba(2, 6, 23, 0.42);
}

.services-catalog {
    gap: 30px;
    align-items: stretch;
}

.service-catalog-card,
.review-card,
.info-card,
.course-item,
.contact-form,
.feedback-form,
.stat {
    border-radius: 18px;
}

.service-catalog-card,
.review-card,
.info-card,
.contact-form,
.feedback-form,
.stat,
.course-item {
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.09);
}

.service-catalog-card {
    border-radius: 22px 14px 22px 14px;
    overflow: hidden;
}

.service-catalog-card:nth-child(3n + 1) {
    border-radius: 26px 12px 22px 14px;
}

.service-catalog-card:nth-child(3n + 2) {
    border-radius: 14px 24px 14px 24px;
}

.service-catalog-card:nth-child(3n) {
    border-radius: 18px 18px 26px 12px;
}

body.dark-mode .service-catalog-card,
body.dark-mode .review-card,
body.dark-mode .info-card,
body.dark-mode .contact-form,
body.dark-mode .feedback-form,
body.dark-mode .stat,
body.dark-mode .course-item {
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

.service-catalog-image {
    border-bottom: 1px solid rgba(59, 130, 246, 0.16);
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.service-catalog-name {
    font-size: 18px;
    padding: 24px 18px 28px;
}

.service-catalog-name,
.review-card .author,
.info-card h3 {
    letter-spacing: 0;
}

.review-card .feedback-text {
    font-style: normal;
}

.reviews-track {
    gap: 24px;
}

.reviews-track .review-card {
    border-radius: 18px 18px 24px 14px;
    transform-origin: center;
}

.reviews-track .review-card:nth-child(odd) {
    transform: rotate(-0.6deg);
}

.reviews-track .review-card:nth-child(even) {
    transform: rotate(0.6deg);
}

.reviews-track .review-card:hover {
    transform: translateY(-8px) rotate(0deg);
}

.google-source-badge {
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    border-radius: 10px;
}

.request-steps {
    grid-template-columns: 1.1fr 0.9fr 1.1fr;
    gap: 24px;
}

.step-card {
    border-radius: 22px 14px 22px 14px;
}

.step-card:nth-child(2) {
    transform: translateY(16px);
}

.step-card:nth-child(2):hover {
    transform: translateY(8px);
}

.about-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.stat {
    border-radius: 20px 14px 20px 14px;
}

.contact-cards {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.info-card {
    border-radius: 20px 12px 20px 12px;
}

.contact-form,
.feedback-form {
    border-radius: 22px;
    max-width: 760px;
}

#servicos-page h1,
#depoimentos-page h1,
#contato-page h1,
#sobre-page h1,
#cursos-page h1 {
    font-size: 50px;
    line-height: 1.05;
}

@media (max-width: 1024px) {
    #servicos-page h1,
    #depoimentos-page h1,
    #contato-page h1,
    #sobre-page h1,
    #cursos-page h1 {
        font-size: 38px;
    }
}

.footer {
    background: linear-gradient(160deg, #18253f 0%, #111c31 100%);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
}

.footer-col h4 {
    color: #dbeafe;
}

.footer-col a:hover {
    color: #facc15;
}

@media (max-width: 768px) {
    .btn-primary {
        clip-path: none;
        border-radius: 12px;
    }

    .service-catalog-card,
    .step-card,
    .info-card,
    .stat {
        border-radius: 16px;
    }

    .step-card:nth-child(2) {
        transform: none;
    }

    .reviews-track .review-card:nth-child(odd),
    .reviews-track .review-card:nth-child(even) {
        transform: none;
    }

    #servicos-page h1,
    #depoimentos-page h1,
    #contato-page h1,
    #sobre-page h1,
    #cursos-page h1 {
        font-size: 30px;
    }
}

/* =========================================================
   RESPONSIVE POLISH PASS
   ========================================================= */

html {
    scroll-padding-top: 88px;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
}

.navbar-content {
    max-width: 1320px;
    justify-content: space-between;
    gap: 32px;
    margin: 0 auto;
}

.nav-links {
    position: static;
    left: auto;
    transform: none;
    margin-left: auto;
    gap: clamp(18px, 2vw, 36px);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-slide-text h1,
.about-content h2,
.how-to-request-section h2 {
    text-wrap: balance;
}

.hero-slide-text {
    max-width: min(540px, 100%);
}

.about-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin: 60px 0;
}

.about-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.about-page-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.58) 0%, rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(59, 130, 246, 0.14);
}

body.dark-mode .about-page-callout {
    background: linear-gradient(135deg, rgba(29, 42, 74, 0.68) 0%, rgba(18, 29, 53, 0.84) 100%);
    border-color: rgba(96, 165, 250, 0.18);
}

.about-page-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 25% 20%, rgba(250, 204, 21, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 75% 80%, rgba(59, 130, 246, 0.16) 0%, transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(240, 247, 255, 0.94) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

body.dark-mode .about-page-visual {
    background:
        radial-gradient(circle at 25% 20%, rgba(250, 204, 21, 0.14) 0%, transparent 24%),
        radial-gradient(circle at 75% 80%, rgba(96, 165, 250, 0.18) 0%, transparent 28%),
        linear-gradient(145deg, rgba(20, 30, 54, 0.88) 0%, rgba(12, 20, 38, 0.95) 100%);
    border-color: rgba(96, 165, 250, 0.16);
}

.product-back-link {
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    margin-top: 30px;
    align-items: start;
}

.product-detail-layout > div:last-child {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 251, 255, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

body.dark-mode .product-detail-layout > div:last-child {
    background: linear-gradient(145deg, rgba(29, 42, 74, 0.72) 0%, rgba(18, 29, 53, 0.92) 100%);
    border-color: rgba(96, 165, 250, 0.16);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
}

.reviews-track {
    align-items: stretch;
}

.reviews-track .review-card {
    min-width: min(360px, calc(100vw - 48px));
}

.contact-form,
.feedback-form {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.info-card,
.step-card,
.stat,
.service-catalog-card,
.review-card,
.contact-form,
.feedback-form {
    backdrop-filter: blur(10px);
}

@media (max-width: 1100px) {
    .hero-carousel-section {
        min-height: 620px;
    }

    .hero-carousel-wrapper {
        height: 620px;
    }

    .hero-slide {
        padding: 64px 40px;
        gap: 32px;
    }

    .hero-slide-text h1 {
        font-size: 44px;
    }

    .hero-slide-image {
        height: 380px;
    }

    .about-page-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .about-page-visual {
        min-height: 300px;
    }

    .request-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-steps .step-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .navbar-content {
        gap: 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero-slide-text h1 {
        font-size: 38px;
    }

    .hero-slide-text p {
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-stats .stat:last-child {
        grid-column: 1 / -1 !important;
    }

    .contact-cards,
    .footer-content {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        position: sticky;
    }

    .navbar-content {
        gap: 12px;
    }

    .nav-links {
        left: 0;
        right: 0;
        margin-left: 0;
        border-radius: 0 0 18px 18px;
        overflow: hidden;
    }

    .theme-toggle,
    .whatsapp-btn {
        width: 48px;
        height: 48px;
    }

    .theme-toggle {
        left: 14px;
        bottom: 14px;
    }

    .whatsapp-btn {
        right: 14px;
        bottom: 14px;
    }

    .hero-carousel-section {
        min-height: auto;
    }

    .hero-carousel-wrapper {
        height: auto;
        min-height: 0;
        padding: 52px 0 74px;
    }

    .hero-carousel-container,
    .hero-carousel-content,
    .hero-slide,
    .hero-slide.active {
        position: relative;
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        padding: 20px 18px 12px !important;
        gap: 18px !important;
        text-align: center;
    }

    .hero-slide-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-slide-text h1 {
        font-size: clamp(2rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }

    .hero-slide-text p {
        font-size: 15px;
        line-height: 1.65;
        max-width: 36ch;
    }

    .hero-slide-image {
        order: -1;
        height: auto;
        max-height: 220px;
    }

    .hero-slide-image img {
        max-height: 220px;
    }

    .hero-carousel-btn {
        top: auto;
        bottom: 18px;
        transform: none;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
    }

    .hero-carousel-btn.prev {
        left: calc(50% - 62px);
    }

    .hero-carousel-btn.next {
        right: calc(50% - 62px);
    }

    .hero-carousel-indicators {
        bottom: 30px;
        gap: 8px;
    }

    .about-section,
    .how-to-request-section,
    .testimonials-section,
    #sobre-page,
    #servicos-page,
    #depoimentos-page,
    #contato-page,
    #cursos-page,
    #produto-page {
        margin: 10px 6px;
        border-radius: 18px;
    }

    .about-section,
    .how-to-request-section {
        padding: 68px 0;
    }

    .about-page-layout {
        margin: 28px 0 14px;
        gap: 24px;
    }

    .about-page-heading {
        align-items: flex-start;
    }

    .about-page-heading h1 {
        font-size: 30px !important;
    }

    .about-page-visual {
        min-height: 220px;
        padding: 18px;
        border-radius: 22px;
    }

    .about-page-callout {
        padding: 16px;
        border-radius: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat,
    .step-card,
    .info-card,
    .service-catalog-card,
    .review-card,
    .contact-form,
    .feedback-form {
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    }

    .request-steps {
        grid-template-columns: 1fr;
    }

    .request-steps .step-card:nth-child(3) {
        grid-column: auto;
    }

    .step-card {
        padding: 28px 20px;
    }

    .services-catalog {
        margin-top: 32px;
        gap: 20px;
    }

    .service-catalog-card {
        min-height: 0;
    }

    .service-catalog-image {
        height: 180px;
    }

    .reviews-track .review-card {
        min-width: calc(100vw - 32px);
    }

    .contact-cards {
        margin-top: 28px;
        margin-bottom: 28px;
        gap: 18px;
    }

    .info-card {
        padding: 24px 18px;
    }

    .contact-form,
    .feedback-form {
        padding: 24px 18px;
    }

    .product-back-link {
        margin-bottom: 14px;
    }

    .product-detail-layout {
        margin-top: 18px;
        gap: 20px;
    }

    .product-detail-layout > div:last-child {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .footer-content {
        gap: 18px;
    }

    .footer-bottom > div {
        padding-bottom: 76px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        padding: 18px 14px 10px !important;
    }

    .hero-slide-text h1 {
        font-size: 1.8rem;
    }

    .hero-slide-text p {
        font-size: 14px;
    }

    .theme-toggle,
    .whatsapp-btn {
        width: 44px;
        height: 44px;
    }

    .theme-icon,
    .whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }

    .about-content h2,
    .how-to-request-section h2 {
        font-size: 26px;
    }

    .service-catalog-image {
        height: 160px;
    }

    .reviews-track .review-card {
        min-width: calc(100vw - 24px);
    }
}
/* ===== ADMIN TEXTOS — light/dark compatível ===== */
.admin-texts-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.admin-texts-card {
    background: var(--surface-a);
    border: 1px solid var(--navy-mid);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

body.dark-mode .admin-texts-card {
    background: var(--navy-mid);
    border-color: var(--navy-light);
}

.admin-texts-section-title {
    color: var(--navy-bright);
    margin: 0 0 20px 0;
    font-size: 18px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
}

.admin-texts-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-texts-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-texts-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-blue);
}

.admin-texts-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--navy-mid);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    display: block;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-texts-input:focus {
    outline: none;
    border-color: var(--accent-blue-vivid);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.dark-mode .admin-texts-input {
    color: #e0e4f0;
    background: #0f1729;
    border-color: var(--navy-light);
}

body.dark-mode .admin-texts-input:focus {
    border-color: var(--accent-blue-vivid);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--navy-bright);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}