/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8;
    display: flex;
    min-height:100vh;
    flex-direction: column;
}

/* Navbar styles */
.navbar {
    background-color: #102a43;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display:flex;
    align-items: center;
    background-image: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-logo span {
    font-size: 18px;
    font-weight: bold;
    margin-left: 40px;
    color: white;
  }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #243b53;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: white;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.375rem;
}

.dropbtn:hover {
    background-color: #243b53;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #243b53;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 0.375rem;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #334e68;
}

.show {
    display: block;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero section styles */
.hero {
    position: relative;
    background-color: #102a43;
    padding: 6rem 1rem;
    color: white;
    overflow: hidden;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #d9e2ec;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #102a43;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #f0f4f8;
}

/* Features section */
.features {
    max-width: 1280px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #243b53;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.feature-card i {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-text h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: #d9e2ec;
    font-size: 0.875rem;
}

/* Page content styles */
.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Location grid styles */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #102a43;
}

.location-card p {
    padding: 0 1.5rem 1.5rem;
    color: #486581;
}

/* Sidebar styles */
.with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: #102a43;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d9e2ec;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    color: #486581;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background-color: #f0f4f8;
    color: #102a43;
}

.sidebar-link.active {
    background-color: #102a43;
    color: white;
}

.main-content {
    flex: 1;
}


/* About page styles */
.about-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.about-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 0.5rem;
}

.about-text h2 {
    color: #102a43;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0f4f8;
    border-radius: 0.5rem;
}

.stat-card i {
    color: #102a43;
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    color: #102a43;
    margin-bottom: 0.25rem;
}

/* Courses page styles */
.courses-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.courses-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}

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

.course-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-4px);
}

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

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #102a43;
    margin-bottom: 0.5rem;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #627d98;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-details i {
    width: 16px;
    height: 16px;
}

.course-button {
    display: inline-block;
    background-color: #102a43;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.course-button:hover {
    background-color: #243b53;
}

/* Courses section styles */
.courses-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.courses-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}


/* Course card styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-4px);
}

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

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #102a43;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.course-content p {
    color: #486581;
    margin-bottom: 1rem;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #627d98;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-details i {
    width: 16px;
    height: 16px;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.course-button {
    display: inline-block;
    background-color: #102a43;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
    flex: 1;
    text-align: center;
}

.course-button:hover {
    background-color: #243b53;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.pdf-button:hover {
    background-color: #b91c1c;
}

.pdf-button i {
    width: 16px;
    height: 16px;
}



/* Registration form styles */
.register-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.register-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #102a43;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #102a43;
}

.submit-button {
    width: 100%;
    background-color: #102a43;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #243b53;
}

.footer {
    background-color: #af890d;
    padding: 1rem 2rem;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 💡 This ensures vertical centering */
    min-height: 60px; /* Ensure it has height to center within */
}

/* Social media section */
.social-media {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-media a {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #ffcc00;
}

.social-media i {
    width: 28px;
    height: 28px;
}

/* Find Us Button */
.find-us-btn {
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Contact page styles */

.hero-contact {
    position: relative;
    background-color: #102a43;
    padding: 6rem 1rem;
    color: white;
    overflow: hidden;
    max-height:20vh;
}

.hero-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-contact-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.contact-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card i {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.5;
}

.hours p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.hours span {
    font-weight: 500;
    color: var(--text-dark);
}

/* KA2 Projects Section */
.ka2-projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-id {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

.project-link i {
    width: 16px;
    height: 16px;
}

/* Video Gallery Section */
.video-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.video-gallery h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.video-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
}


/* Photo galery styles */

.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #fff;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .carousel .images-container {
    width: 100%;
    height: 100%;
  }
  .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .carousel img.active {
    display: block;
    opacity: 1;
    transform: scale(1.05); /* Slight zoom-in effect */
  }

  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
  }
  .arrow.left {
    left: 10px;
  }
  .arrow.right {
    right: 10px;
  }

  .page-title {
    text-align: center;
    margin-top: 60px;
  }

  .image-counter {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    z-index: 20;
  }
  
/* Articles Section */
.articles-list {
    padding: 3rem 2rem;
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card i {
    color: #0073e6;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.article-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.article-info p {
    color: #555;
    font-size: 0.95rem;
}



/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #102a43;
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}