/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-red: #E31937;
    --primary-blue: #003366;
    --secondary-blue: #1a4d8c;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #fff;
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-red:hover {
    background-color: #c0102a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 25, 55, 0.3);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-blue:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    position: relative;
    font-size: 2.2rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-text span {
    color: var(--primary-red);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    font-weight: 600;
    color: var(--primary-blue);
    transition: var(--transition);
    padding: 5px 0;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    transform: translateY(10px);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dropdown-content a:hover {
    color: var(--primary-red);
    background-color: var(--light-gray);
    padding-left: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('images/bg-main.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    transition: background-image 1s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Campuses Section */
.campuses {
    padding: 100px 0;
    background-color: var(--white);
}

.campuses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.campus-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.campus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.campus-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.campus-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.campus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.campus-card:hover .campus-overlay {
    opacity: 1;
}

.campus-card:hover .campus-img img {
    transform: scale(1.1);
}

.campus-info {
    padding: 25px;
}

.campus-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.campus-info p {
    margin-bottom: 10px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.campus-info p i {
    color: var(--primary-red);
}

.campus-info .btn {
    margin-top: 15px;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.course-info .duration {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta i {
    color: var(--primary-blue);
}

/* Application Section */
.application {
    padding: 100px 0;
    background-color: var(--white);
}

.application-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.contact-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 51, 102, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--primary-blue);
}

.social-links a:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    transition: var(--transition);
    opacity: 0.9;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
    opacity: 1;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-img, .about-text {
        flex: none;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: var(--transition);
        z-index: 999;
        padding: 30px;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 15px 0;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 10px;
        padding-left: 15px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .application-form {
        padding: 30px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* Hero Section with Smooth Transitions */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), 
                url('../images/bg-main-3.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    transition: background-image 1s ease, opacity 1s ease;
    position: relative;
}

/* Fade animation classes */
.hero.fade-out {
    opacity: 0;
}

.hero.fade-in {
    opacity: 1;
}

/* Ensure content stays visible during transitions */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Optional: Add a pseudo-element for smoother transitions */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7));
    z-index: 1;
}
/* Hero Section with Smooth Transitions */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), 
                url('../images/bg-main-2.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    transition: opacity 1s ease;
    position: relative;
}

/* Fade animation classes */
.hero.fade-out {
    opacity: 0;
}

.hero.fade-in {
    opacity: 1;
}

/* Ensure content stays visible during transitions */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Optional: Add a pseudo-element for smoother transitions */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7));
    z-index: 1;
}
/* Hero Section with Smooth Transitions */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), 
                url('../images/bg-main.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Background image container */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
    z-index: 1;
}

/* Current visible background */
.hero-bg.active {
    opacity: 1;
    z-index: 2;
}

/* Next background (preloading) */
.hero-bg.next {
    opacity: 0;
    z-index: 1;
}

/* Content container (always stays on top) */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}
/* ======================
   About Page Styles
   ====================== */

/* Page Hero */
.page-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.page-hero p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease;
}

/* History Section */
.about-history {
    padding: 80px 0;
    background-color: var(--white);
}

.history-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.history-text {
    flex: 1;
}

.history-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 10px;
    background-color: var(--light-gray);
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.mission, .vision {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.mission h3, .vision h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Director Section */
.director-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.director-profile {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.director-image {
    flex: 1;
    text-align: center;
}

.director-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-contact {
    margin-top: 20px;
}

.director-contact a {
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.director-contact a:hover {
    color: var(--primary-red);
}

.director-info {
    flex: 2;
}

.position {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.director-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.director-quote {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    position: relative;
}

.director-quote::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 10px;
}

.director-quote blockquote {
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* Governance Section */
.governance-section {
    padding: 80px 0;
    background-color: var(--white);
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.governing-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.governing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.governing-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.governing-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.governing-card p {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .history-content,
    .director-profile {
        flex-direction: column;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .director-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .director-quote::before {
        font-size: 3rem;
    }
}
/* ======================
   Application Page Styles
   ====================== */

/* Application Hero */
.application-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.application-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
}

.application-hero p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease;
}

/* Application Steps */
.application-steps {
    padding: 30px 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.6;
    transition: var(--transition);
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.active {
    opacity: 1;
}

.step.active .step-number {
    background-color: var(--primary-red);
    color: var(--white);
}

.step.completed .step-number {
    background-color: var(--primary-blue);
    color: var(--white);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--primary-blue);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Application Form Section */
.application-form-section {
    padding: 60px 0;
    background-color: var(--white);
}

.form-container {
    display: flex;
    gap: 40px;
}

.form-section {
    flex: 2;
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-section legend {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    width: 100%;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Review Section */
.review-section {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
}

.review-section h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.review-row {
    margin-bottom: 20px;
}

.review-row h4 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.review-content p {
    margin-bottom: 8px;
}

/* Application Sidebar */
.application-sidebar {
    flex: 1;
}

.sidebar-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card ul {
    margin-left: 20px;
}

.sidebar-card li {
    margin-bottom: 8px;
}

.sidebar-card p {
    margin-bottom: 10px;
}

.progress-container {
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-red);
    transition: width 0.5s ease;
}

/* Error Styling */
.error {
    border-color: var(--primary-red) !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .form-container {
        flex-direction: column;
    }
    
    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .step {
        flex: none;
        width: 40%;
    }
    
    .step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .application-hero h1 {
        font-size: 2.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .step {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .step-content {
        text-align: left;
        padding-left: 15px;
    }
}

@media (max-width: 576px) {
    .application-hero {
        height: 40vh;
    }
    
    .application-hero h1 {
        font-size: 1.8rem;
    }
    
    .form-section legend {
        font-size: 1.3rem;
    }
}
/* ======================
   Enhanced Form Styles
   ====================== */

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-header h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Form Container */
.form-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-progress {
    padding: 30px 40px;
    background-color: var(--light-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Content Wrapper */
.form-content-wrapper {
    display: flex;
    gap: 0; /* We'll handle spacing differently */
}

/* Form Content */
.form-content {
    flex: 2;
    padding: 40px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.form-section legend {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    background-color: var(--white);
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* File Input */
.form-group input[type="file"] {
    padding: 12px;
    background-color: var(--white);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

/* Sidebar */
.application-sidebar {
    flex: 1;
    background-color: var(--light-gray);
    padding: 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Review Section */
.review-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.review-section h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.review-row {
    margin-bottom: 25px;
}

.review-row h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .form-content {
        padding: 30px;
    }
    
    .application-sidebar {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .form-content-wrapper {
        flex-direction: column;
    }
    
    .application-sidebar {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 30px 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .form-progress {
        padding: 20px;
    }
    
    .form-content {
        padding: 25px;
    }
    
    .form-section legend {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-progress {
        padding: 15px;
    }
    
    .form-content,
    .application-sidebar {
        padding: 20px;
    }
}
/* ==============================================
   Application Page Specific Styles
   ============================================== */

/* Application Form Section */
.application-form-section {
    padding: 120px 0 60px;
    background-color: var(--light-gray);
}

/* Progress Bar */
.form-progress {
    background: var(--white);
    padding: 20px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.6;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.step.completed .step-number {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Form Layout */
.form-content-wrapper {
    display: flex;
    gap: 40px;
    padding: 30px 0;
}

.form-content {
    flex: 1.5;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.application-sidebar {
    flex: 1;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 10px;
}

/* Form Elements */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-section legend {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    display: block;
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
    background-color: var(--white);
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background-color: rgba(0,51,102,0.05);
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* File Input */
.form-group input[type="file"] {
    padding: 12px;
    background-color: var(--white);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

/* Review Section */
.review-section {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.review-section h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.review-row {
    margin-bottom: 25px;
}

.review-row h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.sidebar-card ul {
    margin-left: 20px;
}

.sidebar-card li {
    margin-bottom: 8px;
}

.progress-container {
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-red);
}

/* Error Styling */
.error {
    border-color: var(--primary-red) !important;
}

/* Responsive Styles for Application Page */
@media (max-width: 992px) {
    .form-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-content,
    .application-sidebar {
        flex: 1;
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .application-form-section {
        padding: 100px 0 40px;
    }
    
    .form-content,
    .application-sidebar {
        padding: 30px;
    }
    
    .form-progress {
        padding: 15px 20px;
    }
    
    .step-content h3,
    .step-content p {
        display: none;
    }
}

@media (max-width: 576px) {
    .form-content,
    .application-sidebar {
        padding: 25px;
    }
    
    .form-section legend {
        font-size: 1.3rem;
    }
}
/* ==============================================
   Contact Page Specific Styles
   ============================================== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 60vh;
    margin-top: 80px;
    display: flex;
    align-items: center;
    text-align: center;
}

.contact-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.contact-hero .hero-content p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Departments Section */
.departments {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.department-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.department-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(227, 25, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.department-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.department-card p {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background-color: var(--light-gray);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 51, 102, 0.1);
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background-color: var(--white);
}

.faq-answer.active {
    max-height: 300px;
    padding: 20px;
}

.faq-answer p {
    line-height: 1.7;
    color: var(--dark-gray);
}

/* Responsive Styles for Contact Page */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 50vh;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 40vh;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-hero .hero-content p {
        font-size: 1rem;
    }
    
    .department-card {
        padding: 25px 20px;
    }
}
/* ==============================================
   Map Section Styles
   ============================================== */

.map-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.contact-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Map */
@media (max-width: 768px) {
    .contact-map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-map {
        height: 300px;
    }
}
/* ==============================================
   Updated Dropdown Styles for Wider Menus
   ============================================== */

/* Main dropdown container */
.dropdown-content {
    min-width: 300px; /* Increased from 200px */
    width: max-content; /* Allows content to determine width */
    max-width: 350px; /* Maximum width to prevent overflow */
}

/* Submenu dropdown container */
.dropdown-subcontent {
    min-width: 300px; /* Increased from 200px */
    width: max-content;
    max-width: 350px;
}

/* Dropdown links */
.dropdown-content a,
.dropdown-subcontent a {
    white-space: nowrap; /* Prevent text wrapping */
    padding: 12px 20px; /* Increased padding for better spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ensure text doesn't get cut off */
.dropdown-content a span,
.dropdown-subcontent a span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 280px; /* Adjusted to fit within the dropdown */
}

/* Adjust chevron positioning */
.dropdown-submenu > a::after {
    margin-left: 15px; /* Increased spacing */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dropdown-content,
    .dropdown-subcontent {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .dropdown-content a,
    .dropdown-subcontent a {
        white-space: normal; /* Allow wrapping on mobile */
        padding: 10px 15px 10px 25px; /* Adjusted padding */
    }
    
    .dropdown-subcontent {
        padding-left: 15px; /* Indent submenus on mobile */
    }
}
/* ==============================================
   Updated Navigation Styles
   ============================================== */

/* Navigation CTA Button */
.nav-cta {
    margin-left: 20px;
}

.nav-cta .btn {
    padding: 10px 25px;
    margin-top: -3px;
    transition: all 0.3s ease;
}

.nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

/* Dropdown Menu Structure */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-subcontent {
    display: none;
    position: absolute;
    left: 100%;
    top: -10px;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 8px 8px 8px;
    padding: 10px 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-submenu:hover .dropdown-subcontent {
    display: block;
    opacity: 1;
}

/* Dropdown Links */
.dropdown-content a,
.dropdown-subcontent a {
    color: var(--dark-gray);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-content a:hover,
.dropdown-subcontent a:hover {
    color: var(--primary-red);
    background-color: rgba(227, 25, 55, 0.05);
    padding-left: 28px;
}

/* Chevron Icons */
.dropdown-submenu > a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 12px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover > a::after {
    transform: rotate(90deg);
}

/* Mobile Navigation Adjustments */
@media (max-width: 992px) {
    .nav-cta {
        margin: 20px 0 0;
        display: block;
    }
    
    .nav-cta .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
    
    .dropdown-content,
    .dropdown-subcontent {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        opacity: 1;
        transform: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-content,
    .dropdown-submenu.active .dropdown-subcontent {
        display: block;
    }
    
    .dropdown-submenu > a::after {
        content: '\f078';
    }
    
    .dropdown-submenu:hover > a::after {
        transform: none;
    }
}

/* Animation for dropdowns */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Update the dropdown link hover styles */
.dropdown > a:hover::after,
.dropdown-submenu > a:hover::after {
    width: 100%;
    height: 2px; /* Ensure it stays horizontal */
    bottom: 0;
    left: 0;
    transform: none; /* Remove any transforms */
}

/* Specifically target the main dropdown links (not submenu items) */
nav ul li.dropdown > a:hover::after {
    width: 100%;
}

/* For submenu parent items, we might want to remove the underline entirely */
.dropdown-submenu > a::after {
    content: none; /* Remove the underline from submenu parent items */
}

/* Or if you want to keep it but make it horizontal */
.dropdown-submenu > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.dropdown-submenu > a:hover::after {
    width: 100%;
}
/* Chevron icons for dropdown */
.dropdown > a i,
.dropdown-submenu > a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i,
.dropdown-submenu:hover > a i {
    transform: rotate(180deg);
}
/* Update the submenu positioning */
.dropdown-subcontent {
    position: absolute;
    right: 100%; /* Changed from left: 100% */
    top: -10px;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px 0 8px 8px; /* Adjusted border-radius */
    padding: 10px 0;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Adjust the chevron icon for left-side submenus */
.dropdown-submenu > a::after {
    content: '\f053'; /* Changed to left chevron */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 12px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover > a::after {
    transform: rotate(-90deg); /* Adjusted rotation */
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .dropdown-subcontent {
        right: auto;
        left: 0;
        padding-left: 25px; /* Increased indent for mobile */
    }
    
    .dropdown-submenu > a::after {
        content: '\f078'; /* Keep downward chevron for mobile */
    }
    
    .dropdown-submenu:hover > a::after {
        transform: none;
    }
}
/* ==============================================
   Dropdown Submenu Positioning (Left Side)
   ============================================== */

/* Main dropdown menu stays on the right */
.dropdown-content {
    left: 0;
    right: auto;
}

/* Submenu positioning - appears on the left */
.dropdown-subcontent {
    left: auto;
    right: 100%; /* This makes it appear on the left */
    top: 0;
    border-radius: 8px 8px 8px 0; /* Adjusted border-radius */
}


/* ==============================================
   Fix for Dropdown Hover Underline Issue
   ============================================== */

/* Remove underline effect from dropdown parent items */
.dropdown > a::after,
.dropdown-submenu > a::after {
    display: none !important;
}

/* Add underline effect only to non-dropdown links */
nav ul li:not(.dropdown):not(.dropdown-submenu) > a:hover::after {
    width: 100%;
}

/* Alternative: If you want to keep the underline for top-level dropdown items */
/*
.dropdown > a:hover::after {
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    transform: none;
}

.dropdown-submenu > a::after {
    display: none;
}
*/

/* Ensure chevron icons rotate properly */
.dropdown > a i,
.dropdown-submenu > a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i,
.dropdown-submenu:hover > a i {
    transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 992px) {
    /* Restore underline for mobile if needed */
    nav ul li > a:hover::after {
        width: 100%;
    }
    
    .dropdown-submenu > a::after {
        content: '\f078';
    }
    
    .dropdown-submenu:hover > a::after {
        transform: none;
    }
}
/* ==============================================
   Gallery Page Styles
   ============================================== */

/* Gallery Hero */
.gallery-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
                url('{% static "images/gallery.jpg" %}') no-repeat center center/cover;
}

/* Gallery Navigation */
.gallery-nav {
    padding: 30px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Main Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-link {
    display: block;
    position: relative;
}

.gallery-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gallery-info i {
    font-size: 1.5rem;
}

/* Video Gallery */
.video-gallery {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    padding: 15px 20px 5px;
    color: var(--primary-blue);
}

.video-item p {
    padding: 0 20px 15px;
    color: var(--dark-gray);
}

/* Photo Submission */
.photo-submission {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.submission-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.submission-text {
    flex: 1;
}

.submission-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.submission-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.submission-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.submission-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 50px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin-top: 5%;
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.modal-caption {
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-red);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .submission-content {
        flex-direction: column;
    }
    
    .submission-text, .submission-image {
        flex: none;
        width: 100%;
    }
    
    .submission-text {
        margin-bottom: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
    }
    
    .gallery-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none; /* Firefox */
    }
    
    .gallery-categories::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        height: 40vh;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-logo {
    width: 100px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.loader-text {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

