/* Design System & Variables */
:root {
    --primary: #4318ff; /* Default Modern Purple */
    --secondary: #2b3674; /* Navy Blue */
    --accent: #ff8c00; /* Vibrant Orange */
    --accent-hover: #e07b00;
    --text-dark: #1b2559;
    --text-light: #707eae;
    --bg-light: #f4f7fe;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 20px;
}

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

/* Global Anti-Zoom & Reset */
html {
    touch-action: manipulation;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}

input, textarea, select {
    font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Glassmorphism Global Utility */
.liquid-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: 0.6s;
    z-index: 2;
    pointer-events: none;
}

.liquid-glass:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px rgba(67, 24, 255, 0.12);
}

.liquid-glass:hover::before {
    left: 150%;
}

/* Header Enhancement */
header.sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Gradient & Mesh Background */
.hero {
    position: relative;
    padding: 120px 0;
    background: radial-gradient(at 0% 0%, hsla(210,100%,95%,1) 0, transparent 50%), 
                radial-gradient(at 50% 0%, hsla(220,100%,98%,1) 0, transparent 50%), 
                radial-gradient(at 100% 0%, hsla(190,100%,95%,1) 0, transparent 50%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

/* Card Hover Glow */
.category-card:hover, .course-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 40px 80px rgba(67, 24, 255, 0.2) !important;
}

.category-card, .course-card {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.category-card i {
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

/* Floating Glass Header */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.internal-page .top-bar {
    background: var(--primary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-info {
    display: flex;
    gap: 20px;
    color: var(--white);
}

header {
    position: absolute;
    top: 50px; /* Below top bar */
    left: 0;
    width: 100%;
    z-index: 1001;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: var(--transition);
    padding: 15px 0;
}

.internal-page .top-bar {
    position: relative;
    background: var(--primary);
}

.internal-page header {
    position: relative;
    top: 0;
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: var(--transition);
}

header.sticky .container {
    padding: 5px 0;
}

header .logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav > ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 1rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-radius: 12px;
    padding: 15px 0;
    list-style: none;
    z-index: 1003;
}

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

.dropdown-menu li {
    padding: 8px 25px;
    display: block;
}

.dropdown-menu li a {
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: none !important;
    display: block;
}

.dropdown-menu li a:hover {
    color: var(--accent) !important;
}

header .logo img {
    height: auto; /* Auto-adjust based on image */
    max-width: 400px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Text Logo Styles */
.logo-text-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-text-display .logo-text-accent {
    color: var(--accent);
    font-weight: 700;
}

header.sticky .logo-text-display {
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: none;
}

header.sticky .logo-text-display .logo-text-accent {
    color: var(--accent);
}

header.sticky .logo img {
    height: auto; /* Auto-adjust based on image */
    max-width: 300px;
    max-height: 70px;
}

header.sticky {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0; /* Reduced padding */
}

header.sticky .logo a, header.sticky nav ul li a {
    color: var(--primary);
    text-shadow: none;
}

/* Highlighted Contact Info */
.top-info a i {
    color: var(--accent);
}

/* Aula Virtual Button Highlight */
.btn-aula {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-admin-icon:hover {
    background: var(--white);
    color: var(--primary);
    transform: rotate(90deg);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-aula:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Specific Animations */
/* Slide 1: Falls */
.slide:nth-child(1) { transform: translateY(-100%); }
.slide:nth-child(1).active { transform: translateY(0); }

/* Slide 2: Rises */
.slide:nth-child(2) { transform: translateY(100%); }
.slide:nth-child(2).active { transform: translateY(0); }

/* Slide 3: Disappears (Fade & Zoom) */
.slide:nth-child(3) { transform: scale(1.2); opacity: 0; }
.slide:nth-child(3).active { transform: scale(1); opacity: 1; }

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 20;
    pointer-events: none;
}

.slider-arrows button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrows button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .slider-arrows {
        display: none; /* Hide arrows on small screens */
    }
}

/* Float animation and others */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* Stats Modern */
.stats-modern {
    padding: 60px 0;
    background: #fff;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card-v2 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-v2:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 40px rgba(67, 24, 255, 0.25);
    border-color: var(--primary);
}

.stat-card-v2::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card-v2:hover::after {
    opacity: 1;
}

/* Mosaic Showcase V5 */
.academic-programs { padding: 120px 0 1500px; background: #fff; overflow: hidden; } /* Large padding-bottom for absolute items */

.mosaic-showcase {
    position: relative;
    max-width: 1300px;
    margin: 80px auto 0;
    height: 100%; /* Height handled by absolute items */
}

.mosaic-item {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.mosaic-card {
    display: block;
    border-radius: 40px;
    height: 100%;
    min-height: 400px;
    text-decoration: none;
    background: #f0f3f9;
}

.mosaic-bg {
    position: absolute;
    inset: 15px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-overlay {
    position: absolute;
    inset: 15px;
    border-radius: 30px;
    background: linear-gradient(to top, rgba(17, 28, 68, 0.9), transparent 60%);
    z-index: 1;
}

.mosaic-num {
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.08;
    line-height: 1;
    z-index: 0;
    transition: 0.5s;
}

.mosaic-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0.9;
    transition: 0.5s;
}

.mosaic-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.mosaic-content h3 {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

.mosaic-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 300px;
    display: none; /* Only on hover */
}

.mosaic-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.mosaic-item:hover {
    z-index: 20;
    transform: scale(1.02);
}

.mosaic-item:hover .mosaic-bg { transform: scale(1.1); }
.mosaic-item:hover .mosaic-num { opacity: 0.15; transform: translateY(-20px); }
.mosaic-item:hover .mosaic-content { transform: translateY(0); opacity: 1; }
.mosaic-item:hover .mosaic-content p { display: block; animation: fadeInUp 0.5s both; }

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

@media (max-width: 992px) {
    .academic-programs { padding-bottom: 100px; }
    .mosaic-showcase { display: flex; flex-direction: column; gap: 30px; height: auto; }
    .mosaic-item { position: relative !important; width: 100% !important; top: 0 !important; left: 0 !important; }
    .mosaic-num { font-size: 4rem; top: 20px; right: 20px; }
}

.stat-card-v2:hover {
    transform: translateY(-10px) scale(1.05);
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 40px rgba(67, 24, 255, 0.25);
    border-color: var(--primary);
}

.stat-icon-v2 {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-info-v2 h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-info-v2 p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.3;
}

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

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

/* Section Headers Modern */
.section-header-modern {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding: 20px 0;
}

.section-header-modern .subtitle {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header-modern .title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.section-header-modern .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.12; /* Increased visibility */
    z-index: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 15px;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 992px) {
    .section-header-modern .title { font-size: 2.2rem; }
    .section-header-modern .watermark { font-size: 6rem; letter-spacing: 5px; }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* Categories Section Redesign V2 */
.categories {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.section-header-v2 {
    position: relative;
    margin-bottom: 50px;
}

.subtitle-v2 {
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: -5px;
    letter-spacing: 1px;
}

.title-v2 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    text-transform: uppercase;
}

.watermark-v2 {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1;
    pointer-events: none;
}

.category-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.program-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.program-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.program-footer {
    background: #2d6a4f; /* Solid Green */
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.program-footer h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.program-footer a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .category-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .title-v2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .category-grid-v2 {
        grid-template-columns: 1fr;
    }
    .title-v2 {
        font-size: 2.5rem;
    }
}

/* Courses */
.featured-courses {
    padding: 80px 0;
    background: var(--bg-light);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: all 0.6s ease;
    z-index: 2;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(67, 24, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
}

.course-card:hover::before {
    left: 150%;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.15);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    text-transform: uppercase;
}

.course-content {
    padding: 30px;
    position: relative;
    z-index: 3;
}

.course-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-more:hover {
    color: var(--accent);
}

.btn-more:hover i {
    transform: translateX(5px);
}

.course-img {
    position: relative;
    height: 200px;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    min-height: 50px;
}

.course-info .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* FAQ */
/* FAQ Modern */
.faq-modern {
    padding: 100px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.accordion-modern {
    margin-top: 30px;
}

.accordion-modern .accordion-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-modern .accordion-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-modern .accordion-header h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.accordion-modern .accordion-header i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-modern .accordion-item.active .accordion-header i {
    transform: rotate(90deg);
}

.accordion-modern .accordion-content {
    padding: 0 25px 20px 60px;
    display: none;
}

.accordion-modern .accordion-item.active .accordion-content {
    display: block;
}

.faq-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-image {
        order: -1;
    }
}

/* WhatsApp Chatbot Widget */
.whatsapp-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 30000;
}

.chat-trigger {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.bot-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bot-info h5 {
    margin: 0;
    font-size: 0.95rem;
}

.bot-info span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
}

.chat-body {
    padding: 25px;
    background: #f4f7fa;
}

.chat-body p {
    background: white;
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.chat-footer {
    padding: 15px 20px 20px;
    background: #f4f7fa;
}

.chat-btn {
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.chat-btn:hover {
    background: #128c7e;
}

/* Footer Professional */
.footer-professional {
    background: #001a33;
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 25px;
}

.footer-logo h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 25px;
}

.brand-text {
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 400px;
}

.social-links-v2 {
    display: flex;
    gap: 15px;
}

.social-links-v2 a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links-v2 a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
}

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 10px;
}

nav ul li a i.mini-plus {
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.8;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px !important;
}

.contact-list i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom-modern {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}.back-circle-btn {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-circle-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .back-circle-btn {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 20px;
    }
}

/* Admin Login Modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.9);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: translateY(-30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.admin-modal-overlay.active .admin-modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f4f7fa;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.modal-close:hover {
    background: #eee;
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.modal-input-group {
    margin-bottom: 20px;
}

.modal-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #f0f3f7;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.3s;
    background: #f9fbff;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,51,102,0.05);
}

.btn-login-modal {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-login-modal:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,51,102,0.2);
}

.modal-footer {
    margin-top: 25px;
    text-align: center;
}

.modal-footer a {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.modal-footer a:hover {
    color: var(--primary);
}

.footer-credits a {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 992px) {
    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .footer-bottom-modern {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 2px 0;
    transition: var(--transition);
}

header.sticky .menu-toggle span {
    background: var(--primary);
}

header.sticky .menu-toggle {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header .container, header.sticky .container {
        padding: 10px 20px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo img {
        height: 40px !important; 
        width: auto;
    }

    .menu-toggle {
        display: flex;
        z-index: 3000;
        position: relative;
        padding: 5px;
        margin-left: auto;
        transition: var(--transition);
    }

    .menu-toggle.open {
        position: fixed;
        top: 20px;
        right: 20px;
    }

    .menu-toggle.open span {
        background: var(--primary) !important;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    nav#main-nav.active {
        right: 0;
    }

    nav#main-nav > ul {
        flex-direction: column;
        text-align: left;
        gap: 20px;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem;
        color: var(--secondary) !important;
        font-weight: 700;
        text-shadow: none !important;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        display: none;
        width: 100%;
        padding: 5px 0 5px 15px;
        margin-top: 5px;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        font-size: 1.05rem !important;
        padding: 10px 15px;
        color: var(--text-dark) !important;
        text-align: left;
        font-weight: 500;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-menu li a:hover {
        color: var(--primary) !important;
    }

    /* Hide nested courses on mobile completely */
    nav#main-nav .nested-menu,
    nav#main-nav .mini-arrow {
        display: none !important;
    }

    /* Nested Menu Mobile - Aggressive Override */
    nav#main-nav .nested-menu {
        position: static !important;
        display: none !important;
        background: rgba(0, 0, 0, 0.3) !important;
        padding: 5px 0 15px 20px !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
    }

    nav#main-nav .nested-dropdown.open-nested .nested-menu {
        display: block !important;
    }

    nav#main-nav .nested-dropdown.open-nested .mini-arrow {
        transform: rotate(90deg);
    }

    nav#main-nav .nested-menu li {
        padding: 5px 20px !important;
        background: transparent !important;
    }

    nav#main-nav .nested-menu li a {
        font-size: 0.9rem !important;
        padding: 5px 0 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        text-align: left !important;
    }

    nav#main-nav .nested-menu li.no-courses {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.85rem;
        padding: 10px 25px;
        text-align: left;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .top-info {
        display: none; /* Hide emails/phone on mobile top bar for space */
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    nav#main-nav {
        display: block !important;
    }
}

/* Gallery & Testimonials */
.gallery-modern { padding: 100px 0; background: var(--bg); }
.gallery-grid-v3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item-v3 { position: relative; border-radius: 20px; overflow: hidden; height: 300px; box-shadow: var(--shadow); }
.gallery-item-v3 img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay { position: absolute; bottom: -100%; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; transition: 0.5s; }
.gallery-item-v3:hover img { transform: scale(1.1); }
.gallery-item-v3:hover .gallery-overlay { bottom: 0; }

.testimonials-modern { padding: 100px 0; background: white; overflow: hidden; }
.testimonial-swiper { padding: 50px 0 80px; }
.testimonial-card-3d { background: white; padding: 40px; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-align: center; border: 1px solid #f0f0f0; transition: 0.3s; }
.quote-icon { font-size: 2rem; color: var(--accent); opacity: 0.2; margin-bottom: 20px; }
.testimonial-card-3d p { font-size: 1.1rem; line-height: 1.8; color: var(--secondary); font-style: italic; margin-bottom: 30px; }
.user-info { display: flex; align-items: center; justify-content: center; gap: 15px; }
.user-info img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.user-info h4 { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.user-info span { font-size: 0.85rem; color: var(--text-light); }

.swiper-slide-active .testimonial-card-3d { border-color: var(--accent); box-shadow: 0 25px 50px rgba(255,140,0,0.15); }


/* Academic Programs (Categories) */
.academic-programs { padding: 100px 0; background: #fff; }
.category-grid-v4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.category-card-v4 { 
    position: relative; 
    height: 280px; 
    border-radius: 12px; 
    overflow: hidden; 
    display: block; 
    text-decoration: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    transition: all 0.4s ease; 
}
.category-card-v4 .card-bg { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s ease; 
}
.category-card-v4::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; width: 100%; height: 70%; 
    background: linear-gradient(to top, rgba(0,0,128,0.9) 0%, rgba(0,0,0,0) 100%); 
    transition: height 0.4s ease;
}
.category-card-v4 .card-content { 
    position: absolute; 
    bottom: 25px; 
    left: 25px; 
    z-index: 2; 
    color: #fff; 
}
.category-card-v4 h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
.category-card-v4 span { font-size: 0.9rem; opacity: 0.8; font-weight: 500; }
.category-card-v4:hover { transform: translateY(-10px); }
.category-card-v4:hover .card-bg { transform: scale(1.1); }
.category-card-v4:hover::after { height: 85%; }

@media (max-width: 992px) {
    .category-grid-v4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .category-grid-v4 { grid-template-columns: 1fr; }
}


/* Nested Menu */
.nested-dropdown { position: relative; }
.nested-menu { 
    position: absolute; 
    left: 100%; 
    top: 0; 
    background: #fff; 
    width: 250px; 
    display: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 0 8px 8px 8px; 
    list-style: none;
    padding: 10px 0;
}
.nested-dropdown:hover > .nested-menu { display: block; }
.mini-arrow { font-size: 0.7rem; float: right; margin-top: 5px; opacity: 0.5; }

@media (max-width: 991px) {
    .nested-menu { position: static; width: 100%; box-shadow: none; padding-left: 20px; display: block; }
    .mini-arrow { transform: rotate(90deg); }
}


/* Auth Buttons Header */
.auth-buttons { display: flex; align-items: center; gap: 15px; }
.btn-admin-icon { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: 0.3s;
}
.btn-admin-icon:hover { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; gap: 10px; }
    .top-info { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
}


/* Auth Buttons Header Alignment */
.auth-buttons { display: flex !important; align-items: center !important; gap: 15px !important; flex-direction: row !important; }
.btn-admin-icon { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: 0.3s;
    flex-shrink: 0;
}
.btn-admin-icon:hover { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }

@media (max-width: 768px) {
    .top-bar .container { flex-direction: row !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 10px; }
    .top-info { font-size: 0.75rem; flex-wrap: wrap; }
    .auth-buttons { gap: 8px !important; flex-direction: row !important; }
    .btn-aula { padding: 6px 12px; font-size: 0.75rem; }
}

