/* 
   Project: The Strategic Edge
   Theme: White, Blue-Black, Gold
   Fonts: Poppins (Headings), Inter (Body)
*/

:root {
    color-scheme: light;
    /* Always render in light mode — ignore browser dark mode */

    /* Colors */
    --primary-color: #0a1128;
    /* Blue-Black */
    --accent-color: #f59e0b;
    /* Gold */
    --bg-color: #ffffff;
    /* White */
    --text-color: #1f2937;
    /* Dark Gray */
    --light-gray: #f3f4f6;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d97706;
    color: var(--white);
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-color);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
    padding: 10px 0;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 17, 40, 0.9), rgba(10, 17, 40, 0.8)), url('../Hero.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Cards */
.card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    border-top: 4px solid var(--accent-color);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

/* Stats */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    opacity: 0.8;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Alumni Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

/* Alumni Grid */
.alumni-card {
    text-align: center;
    padding: 0;
    margin: 0;
}

.alumni-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    margin: 0;
    display: block;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.alumni-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Success Page */
.success-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
}

.momo-box {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Alumni Grid Layout */
.alumni-grid {
    /* display: grid; removed to allow tab toggling (handled by .tab-content.active) */
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    /* 1mm spacing */
    max-width: 800px;
    /* Constrain width to keep images small */
    margin: 0 auto;
}

/* FAQ Accordion Styles */
.faq-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--white);
    transition: background var(--transition-speed);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform var(--transition-speed);
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 10px;
}

.faq-answer ul {
    list-style: disc;
    margin-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Schedule Section */
.schedule-box {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.schedule-list {
    list-style: none;
}

.schedule-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item.highlight {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-speed);
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        text-align: center;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: var(--white);
        opacity: 0.8;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Mobile Typography & Alignment */
    body {
        font-size: 0.9rem;
    }

    .card p {
        text-align: justify;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Testimonial Images */
.testimonial-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--accent-color);
}

@media (max-width: 768px) {

    /* Disable hover on mobile to prevent conflicts */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* Ensure active class shows it */
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* ========================================
   Testimonial Slideshow
   ======================================== */

.tse-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.tse-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.tse-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.tse-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.82) 0%, rgba(10, 17, 40, 0.70) 60%, rgba(10, 17, 40, 0.60) 100%);
}

.tse-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px;
}

.tse-quote-card {
    background: rgba(10, 17, 40, 0.75);
    border: 2px solid var(--accent-color);
    border-radius: 18px;
    padding: 44px 48px;
    max-width: 740px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    animation: tse-card-in 0.8s ease forwards;
}

@keyframes tse-card-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tse-quote-icon {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 18px;
    display: block;
    opacity: 0.85;
}

.tse-quote-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #ffffff;
    margin-bottom: 22px;
    font-style: italic;
    letter-spacing: 0.01em;
}

.tse-attribution {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px solid rgba(245, 158, 11, 0.35);
    padding-top: 14px;
    width: 100%;
}

.tse-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.tse-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tse-dot.active {
    background: var(--accent-color);
    transform: scale(1.25);
}

.tse-dot:hover {
    background: rgba(245, 158, 11, 0.55);
}

.tse-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 17, 40, 0.6);
    border: 2px solid rgba(245, 158, 11, 0.5);
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tse-arrow:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.tse-arrow-prev {
    left: 20px;
}

.tse-arrow-next {
    right: 20px;
}

@media (max-width: 768px) {

    /* Fix: slides are position:absolute so parent MUST have a real height */
    .tse-slideshow {
        height: 520px;
        min-height: 520px;
    }

    .tse-slide {
        height: 520px;
    }

    .tse-slide-content {
        padding: 60px 16px 80px;
        align-items: center;
    }

    .tse-quote-card {
        padding: 26px 20px;
        border-radius: 14px;
    }

    .tse-quote-text {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 16px;
    }

    .tse-quote-icon {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .tse-attribution {
        font-size: 0.8rem;
        padding-top: 10px;
    }

    .tse-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .tse-arrow-prev {
        left: 8px;
    }

    .tse-arrow-next {
        right: 8px;
    }

    .tse-dots {
        bottom: 18px;
    }
}