/* Global Styles */
:root {
    --primary: #003366;
    --secondary: #f8b400;
    --accent: #e74c3c;
    --light: #f5f5f5;
    --dark: #333;
    --success: #20a557;
    --white: #ffffff;
    --gray: #7f8c8d;
    --black: #01020c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    /* background-color: transparent;
    color: var(--primary); */
    transform: scale(1.05);
    /* color: var(--white); */
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    /* background-color: transparent; */
    transform: scale(1.05);
    /* color: var(--secondary); */
}

.btn-apply {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-size: 200% 200%;
    color: var(--light);
    border: 1px solid transparent;
    animation: gradient-shift 3s ease infinite, pulse-scale 3s ease-in-out infinite;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }
}
.btn-apply:hover {
    animation-play-state: paused;
    transform: scale(1.5);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: var(--white);
    background: var(--success);
}


/* Header/Navigation Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

#logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

#logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

nav ul {
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--dark);
    display: block;
}

nav ul li a:hover {
    color: var(--primary);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 0.8rem 1rem;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

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

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-img {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.05);
}

.feature-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.2); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Programs Section */
.programs {
    padding: 5rem 0;
}

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

.program-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.program-img {
    position: relative;
    height: 200px; /* Set a fixed height */
    overflow: hidden; /* Hide overflow content */
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease; /* Add smooth transition for hover effect */
}

.program-card:hover .program-img img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.program-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.program-content .badge {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.program-content p {
    /* color: var(--gray); */
    margin-bottom: 1rem;
}


/* Events Section */
.events {
    padding: 5rem 0;
    background-color: var(--light);
}

.events-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.event-main {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-main-img {
    height: 300px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.event-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-main:hover .event-main-img img {
    transform: scale(1.05);
}

.event-main-content {
    padding: 2rem;
}

.event-main-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.event-main-content .date {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.event-main-content p {
    margin-bottom: 1.5rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-item-date {
    width: 80px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-item-date .day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-item-content {
    padding: 1rem;
    flex: 1;
}

.event-item-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.event-item-content p {
    /* color: var(--gray); */
    margin-bottom: 1rem;
}

/* Testimonials Section */
/* Testimonial slider styles */
.testimonials {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.testimonial {
    background: transparent;
    padding: 100px;
    margin: 10px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 1.2rem;
}

.testimonial-author {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #1a4b84;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.testimonial-info h4 {
    margin: 0;
    color: #333;
}

.testimonial-info p {
    margin: 5px 0 0;
    color: #777;
    font-size: 0.9em;
}

/* bxSlider custom styles */
.bx-wrapper {
    margin-bottom: 60px !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

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

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

.footer-col ul li a[href^="tel:"],
.footer-col ul li a[href^="mailto:"] {
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-col ul li a[href^="tel:"]:hover,
.footer-col ul li a[href^="mailto:"]:hover {
    color: var(--secondary);
    padding-left: 5px;
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    nav ul.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 2rem;
        min-width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.show .dropdown-content {
        display: block;
    }

    .events-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: fade-in 0.5s ease forwards;
}

.popup-content {
    background-color: var(--white);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.popup-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark);
    font-size: 15px;
}

.popup-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px auto;
    gap: 20px;
}

.popup-logo img {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.2);
}

.popup-logo img:hover {
    transform: scale(1.1);
    filter: grayscale(0);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-popup:hover {
    color: var(--accent);
    transform: scale(1.2);
    background-color: rgba(0, 0, 0, 0.05);
}

.popup-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-button:hover {
    background-color: var(--success);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Program link styling */
.program-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(30, 75, 123, 0.05);
}

.program-link:hover {
    color: var(--accent);
    background-color: rgba(30, 75, 123, 0.1);
    text-decoration: underline;
}

.program-link i {
    font-size: 14px;
}

/* Developer info box styling */
.developer-info {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 3px solid var(--accent);
}

.developer-info .popup-text {
    margin-bottom: 8px;
}

.developer-info .popup-text:last-child {
    margin-bottom: 0;
}

.developer-info a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.developer-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Responsive adjustments for the popup */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        max-height: 80vh;
    }
    
    .popup-logo {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .popup-logo img {
        max-height: 40px;
        max-width: 100px;
    }
    
    .popup-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 15px;
        width: 95%;
    }
    
    .popup-logo {
        gap: 10px;
    }
    
    .popup-logo img {
        max-height: 35px;
        max-width: 80px;
    }
    
    .popup-text {
        font-size: 14px;
    }
    
    .popup-button {
        padding: 10px 20px;
        font-size: 15px;
    }
}