/* Modern CMC Distance Education Styles */
/* Bootstrap 5 Custom Theme */

:root {
    --primary-color: #233e67;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: #012068 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffd700 !important;
}

/* Navbar Toggler */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    /*background-color: var(--light-bg);*/
    background-color: #2C74B3;
    color: var(--light-bg) !important;
}

.dropdown-item.active, .dropdown-item:active {
    /*color: #000;
    text-decoration: none;
    background-color: #2C74B3;*/
    background-color: #FFF;
    color: #000 !important;
}

.dropdown-item.active:hover, .dropdown-item:active:hover {
    background-color: #2C74B3;
    color: var(--light-bg) !important;
}

.dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Medium screens - Laptop/Tablet landscape (992px - 1300px) */
@media (min-width: 992px) and (max-width: 1300px) {
    .navbar-brand img {
        height: 40px;
    }
    
    .nav-link {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.85rem;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
    }
}

/* Smaller laptops (992px - 1100px) */
@media (min-width: 992px) and (max-width: 1100px) {
    .nav-link {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #233e67;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Firefox scrollbar */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 215, 0, 0.7) rgba(255, 255, 255, 0.1);
    }
    
    /* Custom scrollbar for navbar-collapse - WebKit browsers */
    .navbar-collapse::-webkit-scrollbar {
        width: 8px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        margin: 4px 0;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.7);
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.9);
        background-clip: content-box;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Ensure navbar stays on top when menu is open */
    body.menu-open .navbar {
        z-index: 1050;
    }
    
    /* Scroll indicator for menu */
    .navbar-collapse::after {
        content: '';
        display: block;
        height: 20px;
        background: linear-gradient(to top, #233e67 0%, transparent 100%);
        position: sticky;
        bottom: 0;
        margin-top: -20px;
        pointer-events: none;
    }
    
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #1a2f4a !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        display: none !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 8px;
        float: none !important;
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Firefox scrollbar */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 215, 0, 0.7) rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    /* Custom scrollbar for dropdown menus - WebKit browsers */
    .dropdown-menu::-webkit-scrollbar {
        width: 8px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        margin: 4px 0;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.7);
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.9);
        background-clip: content-box;
    }
    
    .dropdown-menu .dropdown-item {
        border-radius: 4px;
        margin-bottom: 0.25rem;
        color: #ffffff !important;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background-color: #2d4a6a !important;
        color: #ffd700 !important;
    }
    
    .dropdown-menu .dropdown-header {
        color: #ffd700 !important;
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .dropdown-menu .dropdown-divider {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0.5rem 0;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Hero Section */
.hero-section {
    /*background: radial-gradient(circle at 3% 25%, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);*/
    background: radial-gradient(circle at 3% 25%, #0A2647 0%, #2C74B3 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

/* Animated gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% -100%, rgba(102, 126, 234, 0.4) 25%, rgba(118, 75, 162, 0.3) 85%, rgba(118, 75, 162, 0.5) 100%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
}

/* Floating particles effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, white 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.8) 3px, transparent 3px),
        radial-gradient(circle, white 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.9) 2.5px, transparent 2.5px),
        radial-gradient(circle, white 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle, white 3px, transparent 3px),
        radial-gradient(circle, rgba(255,255,255,0.8) 2px, transparent 2px),
        radial-gradient(circle, white 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.9) 2.5px, transparent 2.5px);
    background-size: 
        400px 400px,
        350px 350px,
        450px 450px,
        380px 380px,
        420px 420px,
        500px 500px,
        360px 360px,
        440px 440px,
        390px 390px,
        410px 410px;
    background-position: 
        10% 20%,
        70% 60%,
        40% 70%,
        85% 30%,
        25% 85%,
        60% 15%,
        90% 75%,
        15% 50%,
        50% 40%,
        75% 90%;
    background-repeat: repeat;
    animation: particlesFloat 25s linear infinite;
    opacity: 0.6;
    z-index: 1;
}

/* Mobile particle adjustment */
@media (max-width: 991px) {
    .hero-section::after {
        background-image: 
            radial-gradient(circle, white 2px, transparent 2px),
            radial-gradient(circle, rgba(255,255,255,0.8) 2.5px, transparent 2.5px),
            radial-gradient(circle, white 1.5px, transparent 1.5px),
            radial-gradient(circle, rgba(255,255,255,0.9) 2px, transparent 2px),
            radial-gradient(circle, white 2px, transparent 2px);
        background-size: 
            250px 250px,
            220px 220px,
            280px 280px,
            240px 240px,
            260px 260px;
        background-position: 
            10% 15%,
            85% 70%,
            30% 80%,
            70% 25%,
            50% 50%;
    }
}

@keyframes gradientShift {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes particlesFloat {
    0% {
        background-position: 
            10% 20%,
            70% 60%,
            40% 70%,
            85% 30%,
            25% 85%,
            60% 15%,
            90% 75%,
            15% 50%,
            50% 40%,
            75% 90%;
    }
    50% {
        background-position: 
            30% 80%,
            20% 30%,
            80% 20%,
            15% 70%,
            75% 25%,
            40% 85%,
            10% 35%,
            85% 60%,
            30% 10%,
            55% 50%;
    }
    100% {
        background-position: 
            10% 20%,
            70% 60%,
            40% 70%,
            85% 30%,
            25% 85%,
            60% 15%,
            90% 75%,
            15% 50%,
            50% 40%,
            75% 90%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-section .animate-fade-in:nth-of-type(1) {
    animation-delay: 0.2s;
}

.hero-section .animate-fade-in:nth-of-type(2) {
    animation-delay: 0.4s;
}

.hero-section .animate-fade-in:nth-of-type(3) {
    animation-delay: 0.6s;
}

.hero-section .animate-fade-in:nth-of-type(4) {
    animation-delay: 0.8s;
}

.hero-section .animate-fade-in:nth-of-type(5) {
    animation-delay: 1.0s;
}

.hero-section .animate-fade-in:nth-of-type(6) {
    animation-delay: 1.2s;
}

.hero-section .animate-fade-in:nth-of-type(7) {
    animation-delay: 1.4s;
}

.hero-section .btn-custom {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section .btn-custom:hover::before {
    width: 300px;
    height: 300px;
}

.hero-section .btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-custom i {
    transition: transform 0.3s ease;
}

.hero-section .btn-custom:hover i {
    transform: translateX(5px);
}

/* Cards */
.course-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    height: 100%;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    color: white;
    font-weight: 600;
    padding: 1.25rem;
}

/* Application Details Alerts - Enhanced Highlighting */
.alert {
    border: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.alert:hover::before {
    left: 100%;
}

.alert:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Alert Info - Primary Application Details */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 5px solid #0dcaf0;
    animation: pulseGlow 3s ease-in-out infinite;
}

.alert-info:hover {
    box-shadow: 0 8px 24px rgba(13, 202, 240, 0.3);
}

.alert-info .alert-heading {
    color: #055160;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.alert-info .alert-link {
    color: #055160;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.alert-info .alert-link:hover {
    color: #0a6e7e;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

/* Alert Warning - French Application */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 5px solid #ffc107;
    animation: pulseGlow 3s ease-in-out 0.5s infinite;
}

.alert-warning:hover {
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.alert-warning h5 {
    color: #664d03;
    font-weight: 700;
}

.alert-warning .alert-link {
    color: #664d03;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.alert-warning .alert-link:hover {
    color: #856404;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Alert Danger - Important Information */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    border-left: 5px solid #dc3545;
    animation: pulseGlow 3s ease-in-out 1s infinite;
}

.alert-danger:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.alert-danger h5 {
    color: #842029;
    font-weight: 700;
}

/* Alert Success - CGD/Other Applications */
.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    border-left: 5px solid #198754;
    animation: pulseGlow 3s ease-in-out 1.5s infinite;
}

.alert-success:hover {
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.3);
}

.alert-success h5 {
    color: #0f5132;
    font-weight: 700;
}

.alert-success .alert-link {
    color: #0f5132;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.alert-success .alert-link:hover {
    color: #146c43;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

/* Pulse Glow Animation for Alerts */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }
}

/* Alert Lists with Icons */
.alert ul {
    list-style: none;
    padding-left: 0;
}

.alert ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.alert ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.alert-info ul li::before {
    color: #0dcaf0;
}

.alert-warning ul li::before {
    color: #ffc107;
}

.alert-danger ul li::before {
    color: #dc3545;
}

.alert-success ul li::before {
    color: #198754;
}

.alert ul li:hover {
    padding-left: 2rem;
}

.alert ul li:hover::before {
    transform: scale(1.3);
}

/* Nested Lists in Alerts */
.alert ul li ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.alert ul li ul li::before {
    content: '▸';
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Section Title Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    opacity: 0;
    position: relative;
    display: inline-block;
}

.section-title.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title.animate::after {
    animation: underlineExpand 0.8s ease-out 0.3s forwards;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    opacity: 0;
}

.section-subtitle.animate {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Buttons */
.btn-custom {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Mobile button spacing - add vertical gap when buttons stack */
@media (max-width: 575px) {
    .text-end .btn-custom {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    .text-end .btn-custom:last-child {
        margin-bottom: 0;
    }
}

/* Video Container */
.ratio {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* List Groups */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top:hover {
    background: #0a58ca;
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Mobile adjustment for back-to-top button */
@media (max-width: 991px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Gallery Section */
/* Gallery Filter Slider */
.gallery-filter-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(35, 62, 103, 0.3);
}

.filter-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-filter-slider {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1;
    justify-content: flex-start;
}

.gallery-filter-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.filter-btn {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(35, 62, 103, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(35, 62, 103, 0.3);
}

/* Mobile: Left-align and allow scroll */
@media (max-width: 768px) {
    .gallery-filter-wrapper {
        gap: 0.25rem;
    }
    
    .filter-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .gallery-filter-slider {
        padding: 0.5rem 0.25rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(35, 62, 103, 0.95) 0%, rgba(35, 62, 103, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.gallery-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.gallery-item.show {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* Gallery placeholder for missing images */
.gallery-card img[src=""] {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    min-height: 250px;
}

@media (max-width: 768px) {
    .gallery-filter .btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
    
    .gallery-card img {
        height: 200px;
    }
}

/* Gallery Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-lightbox.active .lightbox-content img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.gallery-lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1) translateX(-5px);
}

.lightbox-next {
    right: 25px;
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) translateX(5px);
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .lightbox-caption h5 {
        font-size: 1.1rem;
    }
    
    .lightbox-caption p {
        font-size: 0.85rem;
    }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* ================================================
   TESTIMONIALS SECTION STYLES
   ================================================ */
.testimonials-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section .section-title {
    padding-top: 30px;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.testimonials-section .section-subtitle {
    margin-bottom: 1rem;
    color: #ffffff;
}



/* Background decoration */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: testimonialsFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes testimonialsFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.testimonials-main-title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.testimonials-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.testimonials-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 40px calc(50% - 180px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

/* Base testimonial item */
.testimonial-item {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease;
    transform: scale(0.85);
    opacity: 0.6;
}

/* Center card - zoomed in (controlled by JS) */
.testimonial-item.center {
    transform: scale(1.05);
    opacity: 1;
    z-index: 10;
}

.testimonial-item.center .testimonial-card-inner {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Adjacent cards */
.testimonial-item.adjacent {
    transform: scale(0.9);
    opacity: 0.75;
    z-index: 5;
}

/* Far cards */
.testimonial-item.far {
    transform: scale(0.85);
    opacity: 0.5;
}

.testimonial-card-inner {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Quote decoration */
.testimonial-card-inner::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(102, 126, 234, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* Center card styling */
.testimonial-item.center .testimonial-card-inner {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-item.center .testimonial-img {
    transform: scale(1.1);
}

.testimonial-meta {
    flex: 1;
    min-width: 0;
}

.testimonial-person {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.testimonial-position {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin: 0;
    display: inline-block;
    padding: 2px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
}

.testimonial-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.testimonial-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 150px;
    padding-right: 8px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.4) transparent;
}

/* Webkit scrollbar styling */
.testimonial-description::-webkit-scrollbar {
    width: 5px;
}

.testimonial-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.testimonial-description::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 10px;
}

.testimonial-description::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

.testimonial-item.center .testimonial-description {
    max-height: 180px;
}

/* Navigation Arrows */
.testimonial-nav-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.testimonial-arrow {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: #667eea;
    pointer-events: all;
}

.testimonial-arrow:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.testimonial-arrow:active {
    transform: scale(0.95);
}

.testimonial-arrow-left {
    margin-right: auto;
}

.testimonial-arrow-right {
    margin-left: auto;
}

/* Pagination Dots */
.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.testimonial-pagination-dot.active {
    background: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* ================================================
   TESTIMONIALS RESPONSIVE STYLES
   ================================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    .testimonials-slider {
        padding: 40px calc(50% - 200px);
        gap: 25px;
    }
    
    .testimonial-item {
        flex: 0 0 360px;
        min-width: 360px;
        max-width: 360px;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1399px) {
    .testimonials-slider {
        padding: 40px calc(50% - 170px);
        gap: 20px;
    }
    
    .testimonial-item {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
    }
}

/* Tablet and below */
@media (max-width: 991px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-slider {
        padding: 30px calc(50% - 150px);
        gap: 15px;
    }
    
    .testimonial-item {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .testimonial-nav-wrapper {
        padding: 0 10px;
    }

    .testimonials-main-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .testimonial-card-inner {
        padding: 25px;
        min-height: 280px;
    }

    .testimonial-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .testimonials-section {
        padding: 25px 0;
    }

    .testimonials-section .section-title {
        padding-top: 15px;
        margin-bottom: 0.5rem;
    }

    .testimonials-section .section-subtitle {
        margin-bottom: 0.75rem;
    }

    .testimonials-section .mb-5 {
        margin-bottom: 0.5rem !important;
    }

    .testimonials-main-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        padding: 0 20px;
    }

    .testimonials-carousel-container {
        padding: 5px 0;
    }

    .testimonials-slider {
        padding: 15px calc(50% - 130px);
        gap: 12px;
    }

    .testimonial-item {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
        transform: scale(0.82);
    }
    
    .testimonial-item.center {
        transform: scale(1);
    }
    
    .testimonial-item.adjacent {
        transform: scale(0.85);
        opacity: 0.65;
    }

    .testimonial-card-inner {
        padding: 22px;
        min-height: 320px;
        border-radius: 20px;
    }

    .testimonial-card-inner::before {
        font-size: 4rem;
        top: 10px;
        right: 15px;
    }

    .testimonial-top {
        gap: 12px;
        margin-bottom: 15px;
    }

    .testimonial-img {
        width: 55px;
        height: 55px;
    }

    .testimonial-person {
        font-size: 1rem;
    }

    .testimonial-position {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .testimonial-heading {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .testimonial-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .testimonial-nav-wrapper {
        padding: 0 5px;
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .testimonial-pagination {
        margin-top: 20px;
        gap: 8px;
    }
    
    .testimonial-pagination-dot {
        width: 8px;
        height: 8px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 20px 0;
    }

    .testimonials-section .section-title {
        padding-top: 10px;
        margin-bottom: 0.4rem;
        font-size: 1.5rem;
    }

    .testimonials-section .section-subtitle {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .testimonials-section .mb-5 {
        margin-bottom: 0.25rem !important;
    }

    .testimonials-carousel-container {
        padding: 0;
    }

    .testimonials-slider {
        padding: 5px calc(50% - 115px);
        gap: 10px;
    }

    .testimonial-item {
        flex: 0 0 230px;
        min-width: 230px;
        max-width: 230px;
    }
    
    .testimonial-card-inner {
        padding: 18px;
        min-height: 300px;
    }
    
    .testimonial-img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-person {
        font-size: 0.95rem;
    }
    
    .testimonial-heading {
        font-size: 0.95rem;
    }
    
    .testimonial-description {
        font-size: 0.8rem;
        max-height: 120px;
    }
    
    .testimonial-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ================================================
   CONTACT SECTION STYLES
   ================================================ */
