/* Custom CSS for UCETI Website */

:root {
    --primary-color: #003261;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    /* Solid brand color (no gradient) for components that referenced --gradient-primary */
    --gradient-primary: #003261;
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Touch Optimizations */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

a, button, .btn {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

/* Smooth Scrolling for Mobile */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Font Awesome Icon Fix */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff") format("woff");
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff") format("woff");
}

.fas,
.fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
}

/* Ensure icons display properly */
i[class*="fa-"]::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

* {
    -webkit-tap-highlight-color: transparent;
}

a {
    -webkit-tap-highlight-color: rgba(0, 50, 97, 0.12);
}

/* Container Responsive */
.container,
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.social-btn {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.social-btn i {
    color: white;
    font-size: 14px;
}

.social-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-btn i {
    vertical-align: middle;
}

/* Social Media Icons - Individual Colors on Hover */
.social-btn:hover .fa-facebook-f {
    color: #1877f2;
}

.social-btn:hover .fa-twitter {
    color: #1da1f2;
}

.social-btn:hover .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-btn:hover .fa-linkedin-in {
    color: #0077b5;
}

.social-btn:hover .fa-youtube {
    color: #ff0000;
}

.social-btn:hover .fa-whatsapp {
    color: #25d366;
}

/* Floating Social Bar - right side on mobile (like KK Hospital) */
.floating-social-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .floating-social-bar {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: fixed !important;
        right: 0 !important;
        left: auto !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1050;
        background: #f0f0f0;
        padding: 12px 8px 12px 12px;
        border-radius: 12px 0 0 12px;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
        min-width: 52px;
    }

    .floating-social-bar .floating-social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        color: #333;
        text-decoration: none;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .floating-social-bar .floating-social-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        color: inherit;
    }

    .floating-social-bar .floating-social-btn .fa-facebook-f { color: #1877f2; }
    .floating-social-bar .floating-social-btn .fa-twitter { color: #1da1f2; }
    .floating-social-bar .floating-social-btn .fa-instagram { color: #e4405f; }
    .floating-social-bar .floating-social-btn .fa-youtube { color: #ff0000; }
}

/* Responsive Social Media */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 10px;
        gap: 6px;
    }
    
    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .social-btn i {
        font-size: 12px;
    }
}

/* Header */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    max-height: 60px;
}

.header-actions {
    text-align: center;
}

.header-actions .btn {
    margin: 0 5px;
}

.webmail-link {
    text-align: right;
}

/* Navigation — solid brand color (no gradient) */
.navbar.bg-primary {
    background-color: #003261 !important;
}
.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: #003261;
    color: white;
    padding: 0;
    text-align: center;
    display: block;
    width: 100%;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 500px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
    background-color: #003261;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 97, 0.5);
    z-index: 1;
}

/* Hero Banner Styles */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 0;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 500;
}

.hero-banner .btn {
    margin: 10px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.4s both;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-banner p {
        font-size: 1.1rem;
    }
    
    .hero-banner .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Slider Navigation Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-slider-dots .dot.active {
    background: white;
    width: 14px;
    height: 14px;
    border-color: white;
}

.hero-slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Quick Links Navigation Bar */
.quick-links-nav {
    background: #003261 !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}

.quick-links-nav.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.quick-links-nav .nav-wrapper {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    padding-right: 20px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}

.quick-links-nav .nav-label {
    color: white !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.quick-links-nav .nav-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.quick-links-nav .nav-links a {
    background: #003261 !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 9999px !important;
    display: inline-block !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
}

.quick-links-nav .nav-links a:hover {
    background: #00254a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Navigation Bar (Image 1 Style) - Keep for reference */
.main-nav-bar {
    background: linear-gradient(135deg, rgba(20, 40, 60, 0.98) 0%, rgba(15, 35, 55, 0.98) 50%, rgba(25, 45, 70, 0.98) 100%);
    background-image: 
        radial-gradient(ellipse at 30% 50%, rgba(30, 60, 90, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 50%, rgba(20, 50, 80, 0.5) 0%, transparent 70%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.main-nav-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.nav-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-button {
    background: linear-gradient(135deg, #1a3d5c 0%, #153045 50%, #1a3d5c 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: white;
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    display: inline-block;
    min-height: 44px;
    line-height: 1.2;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-button:hover {
    background: linear-gradient(135deg, #1f4a6b 0%, #183a50 50%, #1f4a6b 100%);
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: white;
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .main-nav-bar {
        padding: 15px 0;
    }
    
    .nav-buttons-wrapper {
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-button {
        padding: 10px 18px;
        font-size: 14px;
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .nav-button {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Quick Action Navigation Bar */
.quick-action-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 15px 0 !important;
    margin: 0 !important;
}

.quick-action-nav.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.quick-action-nav .nav-wrapper {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}

.quick-action-nav .nav-label {
    color: white !important;
    font-size: 14px !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
}

.quick-action-nav .nav-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.quick-action-nav .nav-links a {
    background: #34495e !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    margin-right: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid white !important;
    border-radius: 5px !important;
    display: inline-block !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
}

.quick-action-nav .nav-links a:last-child {
    margin-right: 0 !important;
}

.quick-action-nav .nav-links a:hover {
    background: #2c3e50 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Quick Info Section */
.quick-info {
    padding: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.quick-info .info-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.quick-info .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.quick-info .info-card h3 {
    color: #007bff;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.quick-info .info-card p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.quick-info .info-card .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Demo Section - organised visibility & grid layout */
.demo-section,
.videos-section {
    padding: 60px 0;
    background: white;
}

.demo-section .section-header p,
.videos-section .section-header p {
    text-align: center;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.demo-section h2,
.videos-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
}

/* Demo Notes grid - organised layout */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Demo Videos grid - organised layout */
.demo-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.demo-section .demo-item,
.videos-section .video-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.demo-section .demo-item h4,
.videos-section .video-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.demo-section .demo-item p,
.videos-section .video-item p {
    text-align: center;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

.demo-section .demo-item .btn,
.videos-section .video-item .btn {
    margin-top: auto;
}

.videos-section .video-thumbnail-small {
    max-height: 120px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.videos-section .video-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .demo-grid,
    .demo-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .demo-grid,
    .demo-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-section,
    .videos-section {
        padding: 40px 0;
    }
}

/* Programs Section */
.programs-section {
    padding: 60px 0;
    background: var(--light-color);
}

.programs-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.programs-section p {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

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

.program-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Why Join Us Section */
.why-join {
    padding: 60px 0;
    background: white;
}

.why-join h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-weight: 700;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Achievements Section */
.achievements {
    padding: 60px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.achievements h2 {
    margin-bottom: 20px;
    font-weight: 700;
}

.achievements p {
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-weight: 700;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-rating {
    text-align: center;
}

.stars {
    color: #ffc107;
    font-size: 1.5rem;
}

/* Fullscreen lightbox: image uses almost all viewport (home + gallery) */
.gallery-lightbox-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-lightbox-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    overflow: auto;
}

/* Ensure dialog chain fills viewport so % max-height on the image resolves */
#galleryImageModal.modal .modal-dialog.modal-fullscreen,
#galleryImageModal.modal .modal-dialog.modal-fullscreen .gallery-lightbox-content {
    height: 100%;
    min-height: 100%;
}

.gallery-lightbox-body .gallery-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Events & Gallery Section */
.events-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 18px;
}

/* Gallery Card */
.gallery-card, .video-gallery-card, .news-card, .notice-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 25px 0 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Link wrapper for CMS gallery items on home page */
.gallery-item .gallery-item-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.gallery-item .gallery-item-link:focus {
    outline: none;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img:not(.gallery-thumb-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home page Events & Gallery: Image Gallery - organized grid, 6 images, no overlap */
.events-gallery-section .gallery-card .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px 24px 28px;
    width: 100%;
}

.events-gallery-section .gallery-card .gallery-item {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

.events-gallery-section .gallery-card .gallery-item .gallery-item-link,
.events-gallery-section .gallery-card .gallery-item > a {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.events-gallery-section .home-gallery-image {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    overflow: hidden;
}

.events-gallery-section .home-gallery-image .gallery-thumb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.events-gallery-section .home-gallery-zoom-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.events-gallery-section .gallery-card .gallery-item > img {
    display: none;
}

.events-gallery-section .gallery-card .gallery-item img.gallery-thumb-img {
    width: auto;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

.events-gallery-section .gallery-card .gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.events-gallery-section .gallery-card .gallery-item:hover {
    transform: none;
}

.events-gallery-section .gallery-card .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Home Events section — compact video list in sidebar (scoped so /videos cards are not forced to 120px thumb) */
.events-gallery-section .video-gallery-card .video-slider {
    padding: 25px;
}

.events-gallery-section .video-gallery-card .video-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.events-gallery-section .video-gallery-card .video-slider .video-item-link {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.events-gallery-section .video-gallery-card .video-slider .video-item-link:focus {
    outline: none;
}

.events-gallery-section .video-gallery-card .video-item:hover {
    background: #f8f9fa;
}

.events-gallery-section .video-gallery-card .video-thumbnail {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.events-gallery-section .video-gallery-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-gallery-section .video-gallery-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.events-gallery-section .video-gallery-card .video-item:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.events-gallery-section .video-gallery-card .video-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.events-gallery-section .video-gallery-card .video-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.events-gallery-section .video-gallery-card .video-duration {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* News & Notice Section */
.news-notice-section {
    padding: 80px 0;
    background: white;
}

.news-list {
    padding: 25px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
    margin: 0 -25px;
    padding: 20px 25px;
    border-radius: 10px;
}

.news-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.news-date {
    color: #666;
    font-size: 14px;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--dark-color);
}

/* Notice Card */
.notice-list {
    padding: 25px;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: #f8f9fa;
    margin: 0 -25px;
    padding: 15px 25px;
    border-radius: 10px;
}

.notice-item.urgent {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin: 0 -25px;
    padding: 15px 25px;
    border-radius: 0 10px 10px 0;
}

.notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-item.urgent .notice-icon {
    background: #ffc107;
    color: white;
}

.notice-item:not(.urgent) .notice-icon {
    background: var(--primary-color);
    color: white;
}

.notice-content h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.notice-content p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.notice-time {
    color: #999;
    font-size: 12px;
}

/* Featured Courses Section */
.featured-courses-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.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;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.course-badge.new {
    background: #28a745;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 25px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-category {
    background: #e9ecef;
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-rating i {
    color: #ffc107;
    font-size: 14px;
}

.rating-text {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

.course-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.3;
}

.course-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.course-duration {
    color: #666;
    font-size: 14px;
}

.course-offer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
    text-align: center;
}

/* Enhanced Testimonials */
.testimonials {
    padding: 50px 0;
}

.testimonials .section-header {
    margin-bottom: 28px !important;
}

.testimonials .section-header h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.testimonials .section-header p {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199px) {
    .testimonials-slider {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

.testimonial-item {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
}

.testimonial-content {
    margin-bottom: 14px;
}

.testimonial-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-rating {
    text-align: center;
}

.testimonial-rating .stars {
    font-size: 16px;
    letter-spacing: 1px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.author-image {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.author-info p {
    margin: 0 0 2px 0;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.author-company {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 500;
}

/* Footer — brand solid */
.main-footer {
    background: #003261;
    color: #ffffff;
    padding: 40px 0 15px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.main-footer > * {
    position: relative;
    z-index: 1;
}

.footer-main {
    margin-bottom: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-title {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #ffeb3b 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Social Media Footer */
.footer-social h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-links-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #ffd700;
    color: #0a4275;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    border-color: #ffd700;
}

.social-link i {
    font-size: 16px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 5px 0;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 12px;
    color: #ffd700;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
    padding-left: 8px;
    text-decoration: none;
}

.footer-links a:hover i {
    transform: translateX(5px) scale(1.2);
}

/* Important Links Styling */
.footer-links.important-links li {
    margin-bottom: 12px;
}

.footer-links.important-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
}

.footer-links.important-links a i.fa-hand-point-right {
    color: #ff9800;
    font-size: 18px;
    margin-right: 10px;
}

.footer-links.important-links a:hover i.fa-hand-point-right {
    color: #ffd700;
    animation: pointAnimation 0.5s ease-in-out;
}

@keyframes pointAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Contact Details */
.contact-details {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.contact-item i {
    color: #ffd700;
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffd700;
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    margin: 0 5px;
    display: inline-block;
}

.footer-legal a:hover {
    color: #ffd700;
    text-decoration: none;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 3px;
}

.footer-developer {
    color: #888;
    font-size: 0.85rem;
    margin: 10px 0 0 0;
}

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

.footer-developer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Mobile Fixed Footer Nav - shown only on mobile (Demo, Purchase, Syllabus, About, Franchise, Login) */
.mobile-footer-nav {
    display: none;
}

@media (max-width: 767px) {
    /* Mobile footer nav: fixed at bottom like KK Hospital - full width, solid bar, icon + label */
    .mobile-footer-nav {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        z-index: 1030;
        background: #0d6efd;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
        box-sizing: border-box;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .mobile-footer-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        padding: 4px 2px;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
        transition: opacity 0.2s ease;
        box-sizing: border-box;
    }

    .mobile-footer-nav a i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 3px;
        flex-shrink: 0;
    }

    .mobile-footer-nav a span {
        display: block;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .mobile-footer-nav a:hover {
        color: #fff;
        opacity: 0.9;
    }

    body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
    }
}

/* About Us & Director Message Section */
.about-director-section {
    background: #ffffff;
    padding: 60px 0;
}

.company-brief h2 {
    color: #007bff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.company-brief h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.company-brief p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.company-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.highlight-item span {
    color: #333;
    font-weight: 500;
}

.director-message {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.director-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007bff;
}

.director-info {
    flex: 1;
    min-width: 0;
}

.director-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
    flex-shrink: 0;
    background: #f1f3f5;
}

.director-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.director-info h3 {
    color: #007bff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.director-info h4 {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

.director-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.director-signature {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.director-signature img {
    max-width: 150px;
    margin-bottom: 10px;
}

.director-signature h5 {
    color: #007bff;
    font-weight: 700;
    margin: 10px 0 5px;
}

.director-signature p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .about-director-section {
        padding: 40px 0;
    }
    
    .company-brief h2 {
        font-size: 1.5rem;
    }
    
    .company-brief h3 {
        font-size: 1.2rem;
    }
    
    .company-highlights {
        grid-template-columns: 1fr;
    }
    
    .director-message {
        padding: 20px;
    }
    
    .director-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Information Cards Grid Section - Compact Design */
.info-cards-section {
    background: #e9ecef;
    padding: 30px 0;
}

.info-cards-section .section-heading {
    margin-bottom: 30px;
}

.info-cards-section .section-heading h2 {
    color: #1e3a8a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-cards-section .section-heading p {
    font-size: 1rem;
    color: #666;
}

.info-cards-section .row {
    margin-bottom: 25px;
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.info-cards-section .row:last-child {
    margin-bottom: 0;
}

.info-cards-section .col-lg-4,
.info-cards-section .col-lg-4,
.info-cards-section .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    position: relative;
    margin-bottom: 0;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: #1e3a8a;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: visible;
}

.card-header span {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.card-icon-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

.card-icon-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 80px 80px 0;
    border-color: transparent #1e3a8a transparent transparent;
    z-index: 11;
    display: block;
    visibility: visible !important;
}

.card-icon-overlay i {
    position: absolute;
    top: 18px;
    right: 18px;
    color: white;
    font-size: 1.4rem;
    z-index: 12;
    pointer-events: none;
    display: block;
    line-height: 1;
    width: auto;
    height: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.card-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-links li {
    margin-bottom: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.card-links li:first-child {
    padding-top: 0;
}

.card-links li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


.card-links li:hover {
    background: #f8f9fa;
}

.card-links a {
    color: #555;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.card-links a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: bold;
}

.card-links a:hover {
    color: #1e3a8a;
    text-decoration: none;
    padding-left: 20px;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .info-cards-section {
        padding: 25px 0;
    }
    
    .card-header {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .card-header i {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    
    .card-content {
        padding: 18px 15px;
    }
    
    .card-links a {
        font-size: 0.85rem;
    }
    
    .card-links li {
        margin-bottom: 8px;
        padding: 6px 0;
    }
}

@media (max-width: 576px) {
    .info-cards-section {
        padding: 20px 0;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .card-header i {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .card-content {
        padding: 15px 12px;
    }
    
    .card-links a {
        font-size: 0.8rem;
    }
    
    .card-links li {
        margin-bottom: 6px;
        padding: 4px 0;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-main {
        margin-bottom: 30px;
    }
    
    .footer-section {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .social-links-footer {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .footer-legal {
        text-align: center;
        margin-top: 15px;
        white-space: normal;
        overflow: visible;
    }
    
    .footer-legal a {
        margin: 5px 3px;
        font-size: 0.75rem;
        display: inline-block;
    }
    
    .separator {
        display: inline-block;
        margin: 0 2px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 400px;
    }
    
    .hero-slider {
        min-height: 400px;
    }
    
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 60px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0;
        width: 200px;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-slider-dots {
        bottom: 15px;
    }
    
    .hero-slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Quick Links Navigation Mobile */
    .quick-links-nav {
        padding: 12px 0 !important;
    }
    
    .quick-links-nav .nav-wrapper {
        padding: 0 15px !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .quick-links-nav .nav-label {
        font-size: 12px !important;
        margin-right: 5px !important;
    }
    
    .quick-links-nav .nav-links {
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-links-nav .nav-links a {
        font-size: 11px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
    }
    
    /* Info Cards Mobile */
    .info-cards-section {
        padding: 25px 0;
    }
    
    .info-cards-section .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .info-cards-section .section-heading p {
        font-size: 0.9rem;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
    
    .card-icon-top {
        padding: 15px;
        min-height: 60px;
    }
    
    .card-icon-top .card-icon-overlay {
        width: 60px;
        height: 60px;
        overflow: visible;
    }
    
    .card-icon-top .card-icon-overlay::before {
        border-width: 0 60px 60px 0;
        visibility: visible !important;
    }
    
    .card-icon-top .card-icon-overlay i {
        top: 15px;
        right: 15px;
        font-size: 1.2rem;
        visibility: visible !important;
        display: block !important;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .card-links li {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .login-links {
        text-align: center;
    }
    
    .header-actions {
        text-align: center;
        margin: 15px 0;
    }
    
    .webmail-link {
        text-align: center;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        min-height: 350px;
    }
    
    .hero-slider {
        min-height: 350px;
    }
    
    .hero-slide {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 40px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .hero-slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .hero-slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    /* Quick Links Navigation Extra Small */
    .quick-links-nav {
        padding: 10px 0 !important;
    }
    
    .quick-links-nav .nav-wrapper {
        padding: 0 10px !important;
        gap: 6px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-links-nav .nav-label {
        font-size: 11px !important;
        display: none; /* Hide label on very small screens */
    }
    
    .quick-links-nav .nav-links {
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-links-nav .nav-links a {
        font-size: 10px !important;
        padding: 6px 10px !important;
        min-height: 32px; /* Touch-friendly minimum height */
        display: flex;
        align-items: center;
    }
    
    /* Info Cards Extra Small */
    .info-cards-section .section-heading h2 {
        font-size: 1.3rem;
    }
    
    .info-cards-section .section-heading p {
        font-size: 0.85rem;
    }
    
    .card-icon-top {
        padding: 12px;
        min-height: 50px;
    }
    
    .card-icon-top .card-icon-overlay {
        width: 50px;
        height: 50px;
        overflow: visible;
    }
    
    .card-icon-top .card-icon-overlay::before {
        border-width: 0 50px 50px 0;
        visibility: visible !important;
    }
    
    .card-icon-top .card-icon-overlay i {
        top: 12px;
        right: 12px;
        font-size: 1rem;
        visibility: visible !important;
        display: block !important;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .card-links li {
        padding: 5px 0;
        font-size: 0.8rem;
    }
    
    .testimonial-item {
        padding: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 50, 97, 0.35);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Featured Courses Slider */
.featured-courses-section {
    background: #f8f9fa;
    padding: 60px 0;
}

/* Manage left/right space: extra horizontal padding for this section */
.featured-courses-section .container {
    padding-left: 24px;
    padding-right: 24px;
}

.featured-courses-section .section-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.featured-courses-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.featured-courses-section .section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.featured-courses-section .section-header .btn {
    margin-top: 0.25rem;
}

.courses-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    height: auto;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.course-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    min-width: 300px;
    max-width: 350px;
    width: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.course-badge.bestseller {
    background-color: #28a745;
}

.course-badge.new {
    background-color: #17a2b8;
}

.course-badge.popular {
    background-color: #ffc107;
    color: #333;
}

.course-badge.trending {
    background-color: #dc3545;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay .btn {
    padding: 10px 20px;
    font-size: 1rem;
}

.course-content {
    padding: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-category {
    color: #6c757d;
    font-size: 0.9rem;
}

.course-rating {
    display: flex;
    align-items: center;
}

.course-rating i {
    color: #ffc107;
    margin-right: 2px;
}

.course-rating .rating-text {
    color: #6c757d;
    margin-left: 5px;
    font-size: 0.9rem;
}

.course-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.course-content p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-price {
    display: flex;
    align-items: center;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 10px;
}

.discount {
    background-color: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.course-duration {
    color: #6c757d;
    font-size: 0.9rem;
}

.course-offer {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.course-offer i {
    margin-right: 8px;
    color: #dc3545;
}

@media (max-width: 1200px) {
    .courses-slider {
        overflow-x: scroll;
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }

    .courses-slider::-webkit-scrollbar {
        height: 8px;
    }

    .courses-slider::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .courses-slider::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .courses-slider {
        gap: 15px;
    }

    .course-card {
        min-width: 250px;
    }

    .course-image img {
        height: 200px;
    }
}

/* Swiper Slider Styles */
.courses-slider {
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    opacity: 1;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide .course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Swiper Slider Styles - clip to show only current slides (4 at a time) */
.featured-courses-section .swiper {
    width: 100%;
    overflow: hidden;
    /* Left/right padding so first and last slides have breathing room */
    padding-left: 20px;
    padding-right: 20px;
}

.featured-courses-section .swiper-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.featured-courses-section .swiper-slide {
    display: flex;
    flex-shrink: 0;
    height: auto;
    opacity: 1 !important;
    box-sizing: border-box;
}

.featured-courses-section .swiper-slide .course-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Equal-height card content: image fixed, content flexes, footer at bottom */
.featured-courses-section .swiper-slide .course-card .course-image {
    flex-shrink: 0;
}

.featured-courses-section .swiper-slide .course-card .course-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-courses-section .swiper-slide .course-card .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    min-height: 0;
}

.featured-courses-section .swiper-slide .course-card .course-content h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description: 2 lines max for consistent card height */
.featured-courses-section .swiper-slide .course-card .course-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 2.8em;
}

.featured-courses-section .swiper-slide .course-card .course-description p {
    margin: 0;
}

/* Price row: fixed height so footer aligns */
.featured-courses-section .swiper-slide .course-card .course-price {
    min-height: 28px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.featured-courses-section .swiper-slide .course-card .course-footer {
    margin-top: auto;
    margin-bottom: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-courses-section .swiper-slide .course-card .course-footer .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.featured-courses-section .swiper-button-next,
.featured-courses-section .swiper-button-prev {
    color: #007bff !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px;
    height: 40px;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Inset from edge so they sit in the side padding, not over cards */
}
.featured-courses-section .swiper-button-prev {
    left: 0 !important;
}
.featured-courses-section .swiper-button-next {
    right: 0 !important;
}

.featured-courses-section .swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.featured-courses-section .swiper-pagination-bullet {
    background: #007bff;
    opacity: 0.5;
}

.featured-courses-section .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-info span {
        margin-right: 0;
        font-size: 11px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 5px;
        gap: 5px;
    }
    
    .social-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* Main Header Mobile - logo centred */
    .main-header .row {
        justify-content: center;
    }
    .main-header .col-md-4 {
        text-align: center;
    }
    .main-header .logo {
        display: flex;
        justify-content: center;
    }
    .main-header .logo img {
        max-height: 40px;
    }
    
    .header-actions .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Hero Banner Mobile */
    .hero-banner {
        min-height: 300px;
        padding: 40px 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-banner p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-banner .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin: 5px;
    }
    
    /* Quick Action Nav Mobile */
    .quick-action-nav {
        padding: 15px 0 !important;
    }
    
    .quick-action-nav .nav-wrapper {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .quick-action-nav .nav-label {
        font-size: 14px !important;
    }
    
    .quick-action-nav .nav-links {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    
    .quick-action-nav .nav-links a {
        padding: 8px 15px !important;
        font-size: 13px !important;
        font-size: 14px !important;
        margin-right: 15px !important;
    }
    
    .quick-links-nav {
        padding: 15px 0 !important;
    }
    
    .quick-links-nav .nav-wrapper {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .quick-links-nav .nav-label {
        font-size: 14px !important;
    }
    
    .quick-links-nav .nav-links {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    
    .quick-links-nav .nav-links a {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    /* About Director Section Mobile */
    .about-director-section {
        padding: 40px 0;
    }
    
    .company-brief h2 {
        font-size: 1.5rem;
    }
    
    .company-brief h3 {
        font-size: 1.2rem;
    }
    
    .company-brief p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .company-highlights {
        grid-template-columns: 1fr;
    }
    
    .director-message {
        padding: 20px;
        margin-top: 30px;
    }
    
    .director-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .director-image {
        width: 80px;
        height: 80px;
    }
    
    .director-content p {
        font-size: 0.9rem;
        text-align: left;
    }
    
    /* Featured Courses Mobile */
    .featured-courses-section {
        padding: 40px 0;
    }
    
    .featured-courses-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .featured-courses-section .swiper {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .featured-courses-section .section-header h2 {
        font-size: 2rem;
    }
    
    .featured-courses-section .section-header p {
        font-size: 1rem;
    }
    
    .featured-courses-section .swiper-slide .course-card .course-content h4,
    .featured-courses-section .swiper-slide .course-card .course-description {
        min-height: auto;
    }
    
    /* Info Cards Mobile */
    .info-cards-section {
        padding: 25px 0;
    }
    
    .info-card {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .card-header {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    
    .card-icon-overlay {
        width: 65px;
        height: 65px;
        overflow: visible;
    }
    
    .card-icon-overlay::before {
        border-width: 0 65px 65px 0;
        visibility: visible !important;
    }
    
    .card-icon-overlay i {
        top: 15px;
        right: 15px;
        font-size: 1.2rem;
        visibility: visible !important;
        display: block !important;
    }
    
    .card-content {
        padding: 15px 18px;
    }
    
    .card-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile */
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    
    .hero-banner p {
        font-size: 0.9rem;
    }
    
    .hero-banner .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        display: block;
        margin: 8px auto;
    }
    
    .company-brief h2 {
        font-size: 1.3rem;
    }
    
    .company-brief h3 {
        font-size: 1.1rem;
    }
    
    .director-message {
        padding: 15px;
    }
    
    .director-image {
        width: 70px;
        height: 70px;
    }
    
    .director-info h3 {
        font-size: 1.1rem;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .card-links a {
        font-size: 0.8rem;
    }
    
    .quick-links-nav .nav-links a,
    .quick-action-nav .nav-links a {
        font-size: 13px !important;
        margin-right: 10px !important;
    }
    
    .info-card {
        margin-bottom: 15px;
    }
}

/* Additional Mobile Responsive Styles for All Sections */
@media (max-width: 768px) {
    /* Demo Section */
    .demo-section,
    .videos-section {
        padding: 40px 0;
    }
    
    .demo-section h2,
    .videos-section h2 {
        font-size: 2rem;
    }
    
    .demo-item,
    .video-item {
        margin-bottom: 20px;
    }
    
    /* Why Join Section */
    .why-join-section {
        padding: 40px 0;
    }
    
    .why-join-section h2 {
        font-size: 2rem;
    }
    
    /* Achievements Section */
    .achievements {
        padding: 40px 0;
    }
    
    .achievements h2 {
        font-size: 2rem;
    }
    
    /* Programs Section */
    .programs-section {
        padding: 40px 0;
    }
    
    .programs-section .section-header h2 {
        font-size: 2rem;
    }
    
    /* Events & Gallery */
    .events-gallery-section {
        padding: 40px 0;
    }
    
    .events-gallery-section .gallery-card .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .events-gallery-section .home-gallery-image {
        height: 140px;
    }
    
    /* News & Notice Section */
    .news-notice-section {
        padding: 40px 0;
    }
    
    .news-notice-section .section-header h2 {
        font-size: 2rem;
    }
    
    /* Testimonials Section */
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-section .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .demo-section,
    .videos-section {
        padding: 30px 0;
    }
    
    .demo-section h2,
    .videos-section h2 {
        font-size: 1.5rem;
    }
    
    .demo-section p,
    .videos-section p {
        font-size: 0.9rem;
    }
    
    .achievements h2 {
        font-size: 1.75rem;
    }
    
    .achievements p {
        font-size: 0.9rem;
    }
}
