/* Global Variables */
:root {
    --primary: #1E3A8A;
    /* Deep Navy */
    --primary-dark: #111827;
    --secondary: #F59E0B;
    /* Amber/Gold */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #ffffff;
    --off-white: #F3F4F6;
    --border: #E5E7EB;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility Classes */
.text-center {
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--off-white);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    margin-right: 20px;
    color: #e5e7eb;
}

.contact-info i,
.social-icons i {
    margin-right: 6px;
}

.social-icons a {
    margin-left: 15px;
    color: var(--white);
}

.social-icons a:hover {
    color: var(--secondary);
}

/* Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo aspect ratio */
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.main-nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.main-nav a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    /* adjust or use 100vh */
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    /* Used a robust unsplash fallback if the specific live site image doesn't suit header background perfectly, 
       but can swap to: https://texam.education/images/sec-top-mckp2.png if preferred */
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.mission-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-dark);
}

.feature-list i {
    color: var(--secondary);
    margin-right: 10px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Courses Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    position: relative;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-details {
    padding: 25px;
}

.course-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.instructor {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.instructor i {
    color: var(--secondary);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.price {
    font-weight: 700;
    color: var(--primary);
}

/* Multimedia Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: var(--transition);
}

.video-card:hover .play-icon {
    color: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
    background: var(--white);
    text-align: center;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}


/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.role {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.85);
    /* Darker overlay */
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--secondary);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .main-nav.active {
        clip-path: circle(150% at 100% 0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    display: block !important; /* Override flex from main nav ul */
}

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

.dropdown-menu li {
    margin: 0 !important;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--off-white);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none !important; /* Remove underline effect */
}


/* Page Header */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Events Styles */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.event-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.event-image {
    width: 35%;
    position: relative;
    min-height: 200px;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.event-status.upcoming {
    background-color: var(--secondary);
}
.event-status.past {
    background-color: var(--text-light);
}
.event-content {
    width: 65%;
    padding: 30px;
    display: flex;
    gap: 20px;
}
.event-date {
    text-align: center;
    min-width: 60px;
}
.event-date .month {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}
.event-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.location i {
    color: var(--secondary);
    width: 20px;
}
.event-details .description {
    margin-bottom: 20px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    .event-image, .event-content {
        width: 100%;
    }
    .event-image {
        height: 200px;
    }
}

