/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Changed from sticky to normal scrolling */
.header {
    position: relative; /* Changed from sticky to relative */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Bar */
.header-top {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left .contact-info {
    display: flex;
    gap: 25px;
}

.header-top-left .contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top-left .contact-info i {
    font-size: 12px;
    opacity: 0.9;
}

.header-top-right .quick-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-right .quick-links a {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top-right .quick-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.social-link {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Middle Bar */
.header-middle {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.header-actions {
    display: flex;
    gap: 30px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    color: white;
}

.action-item i {
    font-size: 24px;
}

.action-item div strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.action-item div span {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

/* Bottom Bar - Navigation */
.header-bottom {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: relative;
}

.header-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px 5px 0 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
}

.nav-menu li a i {
    font-size: 14px;
}

/* Mobile Menu Toggle - Updated */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Menu - Fixed for scrolling */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh; /* Ensure it doesn't exceed viewport height */
        background: linear-gradient(135deg, #2c3e50, #34495e);
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to flex-start */
        align-items: center;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        padding: 60px 20px 20px; /* Added top padding to avoid overlap with status bar */
        box-sizing: border-box;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 8px 0; /* Reduced margin to fit more items */
        width: 100%;
        text-align: center;
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px; /* Slightly reduced font size */
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        min-height: 50px; /* Ensure consistent height */
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1.02); /* Reduced scale to prevent overflow */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hide header actions on mobile */
    .header-actions {
        display: none;
    }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
    .nav-menu {
        padding: 50px 15px 15px; /* Reduced padding for smaller screens */
    }
    
    .nav-menu li {
        margin: 6px 0; /* Further reduced margin */
    }
    
    .nav-menu li a {
        font-size: 15px;
        padding: 12px 15px;
        min-height: 45px;
    }
}

/* For very small screens or when there are many menu items */
@media (max-width: 375px) {
    .nav-menu {
        padding: 40px 10px 10px;
    }
    
    .nav-menu li {
        margin: 4px 0;
    }
    
    .nav-menu li a {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 40px;
    }
}

    
   /* Mobile Navigation Menu - Fixed for scrolling */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh; /* Ensure it doesn't exceed viewport height */
        background: linear-gradient(135deg, #2c3e50, #34495e);
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to flex-start */
        align-items: center;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        padding: 60px 20px 20px; /* Added top padding to avoid overlap with status bar */
        box-sizing: border-box;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 8px 0; /* Reduced margin to fit more items */
        width: 100%;
        text-align: center;
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px; /* Slightly reduced font size */
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        min-height: 50px; /* Ensure consistent height */
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1.02); /* Reduced scale to prevent overflow */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hide header actions on mobile */
    .header-actions {
        display: none;
    }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
    .nav-menu {
        padding: 50px 15px 15px; /* Reduced padding for smaller screens */
    }
    
    .nav-menu li {
        margin: 6px 0; /* Further reduced margin */
    }
    
    .nav-menu li a {
        font-size: 15px;
        padding: 12px 15px;
        min-height: 45px;
    }
}

/* For very small screens or when there are many menu items */
@media (max-width: 375px) {
    .nav-menu {
        padding: 40px 10px 10px;
    }
    
    .nav-menu li {
        margin: 4px 0;
    }
    
    .nav-menu li a {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 40px;
    }
}

   /* Mobile Navigation Menu - Fixed for scrolling */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh; /* Ensure it doesn't exceed viewport height */
        background: linear-gradient(135deg, #2c3e50, #34495e);
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to flex-start */
        align-items: center;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        padding: 60px 20px 20px; /* Added top padding to avoid overlap with status bar */
        box-sizing: border-box;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 8px 0; /* Reduced margin to fit more items */
        width: 100%;
        text-align: center;
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px; /* Slightly reduced font size */
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        min-height: 50px; /* Ensure consistent height */
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1.02); /* Reduced scale to prevent overflow */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hide header actions on mobile */
    .header-actions {
        display: none;
    }
}

/* For smaller mobile screens */
@media (max-width: 480px) {
    .nav-menu {
        padding: 50px 15px 15px; /* Reduced padding for smaller screens */
    }
    
    .nav-menu li {
        margin: 6px 0; /* Further reduced margin */
    }
    
    .nav-menu li a {
        font-size: 15px;
        padding: 12px 15px;
        min-height: 45px;
    }
}

/* For very small screens or when there are many menu items */
@media (max-width: 375px) {
    .nav-menu {
        padding: 40px 10px 10px;
    }
    
    .nav-menu li {
        margin: 4px 0;
    }
    
    .nav-menu li a {
        font-size: 14px;
        padding: 10px 12px;
        min-height: 40px;
    }
}

    /* Adjust header top for mobile */
    .header-top-left .contact-info {
        gap: 15px;
    }
    
    .header-top-left .contact-info span {
        font-size: 12px;
    }
    
    .header-top-right .quick-links {
        gap: 10px;
    }
    
    .header-top-right .quick-links a {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    /* Logo adjustments for mobile */
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        max-width: 60px;
        max-height: 60px;
    }
}

/* Additional mobile responsive adjustments */
@media (max-width: 480px) {
    .header-top-left .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-top-right .quick-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo-text h1 {
        font-size: 16px;
        line-height: 1.1;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .header-middle {
        padding: 15px 0;
    }
    
    .nav-menu li a {
        font-size: 16px;
        padding: 12px 15px;
    }
}


/* Marquee Styles */
.marquee-container {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.marquee-content {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.6), rgba(42, 82, 152, 0.6)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e3c72;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Institute Section */
.about-institute {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

.about-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-highlights {
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-item i {
    color: #667eea;
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.highlight-item h4 {
    color: #1e3c72;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.highlight-item p {
    color: #666;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.image-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.image-stat {
    background: rgba(255,255,255,0.95);
    padding: 12px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3c72;
    backdrop-filter: blur(10px);
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Course Categories Section */
.course-categories {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Courses Preview Section */
.courses-preview {
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-card.featured {
    border: 2px solid #667eea;
    position: relative;
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 25px;
}

.course-content h4 {
    font-size: 1.2rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-highlights {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.course-highlights span {
    background: #f8f9fa;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.courses-cta {
    text-align: center;
    margin-top: 50px;
}

/* Leadership Messages Section */
.leadership-messages {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.message-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.leader-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.leader-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.leader-info h3 {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.leader-info p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.leader-credentials {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

.leader-credentials span {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 10px;
}

.message-content blockquote {
    font-style: italic;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.message-content blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.3;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Gallery Preview Section */
.gallery-preview {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
}

/* Announcements Section */
.announcements {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.announcements-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.announcement-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.announcement-item.featured {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #fff, #f8f9ff);
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.announcement-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.announcement-meta .date {
    color: #666;
}

.announcement-meta .category {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.announcement-content h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.announcement-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.announcement-link:hover {
    text-decoration: underline;
}

/* Announcement Sidebar */
.announcement-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quick-links-widget,
.stats-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.quick-links-widget h3,
.stats-widget h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.quick-links-widget ul {
    list-style: none;
}

.quick-links-widget li {
    margin-bottom: 12px;
}

.quick-links-widget a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.quick-links-widget a:hover {
    color: #1e3c72;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-list .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-list .stat-item i {
    color: #667eea;
    font-size: 1.5rem;
}

.stats-list .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    display: block;
}

.stats-list .label {
    font-size: 0.9rem;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 25px;
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: #667eea;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-content p {
    line-height: 1.7;
    color: #555;
    font-style: italic;
    padding-left: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: #1e3c72;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-actions {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .announcements-container {
        grid-template-columns: 1fr;
    }
    
    .messages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .categories-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .message-header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .marquee-content {
        font-size: 12px;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== FOOTER STYLES ===== */

/* Footer container with modern gradient background */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 40px 0 0 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    margin-top: 60px;
}

/* Add a subtle top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

/* Container with max-width and centered */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layout for footer content */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.3fr;
    gap: 40px;
    padding-bottom: 30px;
    margin-bottom: 25px;
    border-bottom: 1px solid #475569;
}

/* ===== FOOTER STYLES WITH 3-COLUMN LAYOUT ===== */

/* Footer container */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 50px 0 0 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    margin-top: 60px;
}

/* Container with proper max-width and centering */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== UPDATED GRID LAYOUT FOR 3 COLUMNS ===== */
.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.3fr;
    gap: 50px;
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #475569;
    align-items: flex-start;
}

/* Ensure all footer sections have consistent top alignment */
.footer-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    line-height: 1.6;
}

/* Footer section headings */
.footer-section h3 {
    color: #60a5fa;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

/* ===== FIRST COLUMN - ABOUT SECTION ===== */
.footer-about-section {
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    flex-shrink: 0;
}

.logo-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #60a5fa;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
}

.logo-text .tagline {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.footer-about {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.footer-links-primary h4 {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

/* ===== UNIVERSAL LIST STYLING ===== */
.footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-size: 8px;
    top: 4px;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover::before {
    transform: translateX(3px);
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

/* ===== CONTACT ITEMS STYLING ===== */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

.contact-item i {
    color: #60a5fa;
    margin-right: 15px;
    font-size: 16px;
    min-width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}

/* ===== FOOTER BOTTOM WITH PROPER COPYRIGHT ALIGNMENT ===== */
.footer-bottom {
    background: rgba(15, 23, 42, 0.6);
    padding: 25px 0;
    border-top: 1px solid #475569;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.copyright-text {
    display: flex;
    align-items: center;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    color: #60a5fa;
}

.separator {
    color: #64748b;
    font-weight: 300;
}

/* ===== RESPONSIVE DESIGN FOR 3-COLUMN LAYOUT ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.8fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-about-section {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about-section {
        padding-right: 0;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .copyright-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
    
    .copyright-text p {
        font-size: 12px;
        text-align: center;
    }
    
    .contact-item {
        padding: 10px;
    }
}

/* ===== VISUAL ENHANCEMENTS ===== */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
