/* Clean Professional Design for 3S Association */
:root {
    /* Brand Colors - Matching Client Side */
    --orange-500: #FF6B35;
    --orange-600: #E55A2B;
    --blue-600: #1BA4D8;
    --blue-500: #4AB8E8;

    --primary-color: #1BA4D8;
    --secondary-color: #FF6B35;
    --success-color: #059669;
    --warning-color: #FF6B35;
    --danger-color: #dc2626;
    --info-color: #1BA4D8;

    /* Navy colors for dark sections */
    --navy-800: #1e3a5f;
    --navy-900: #0f2942;
    --navy-950: #0a1929;

    /* Vibrant accent colors for philosophy icons */
    --accent-blue: #2563eb;
    --accent-yellow: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #10b981;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --black: #000000;
}

/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Styles */
section {
    position: relative;
    padding: 80px 0;
}

section.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

section h2,
section h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Improved text readability - Association Style */
.text-muted {
    color: var(--gray-700) !important;
}

section h2,
section h3 {
    color: var(--gray-900);
}

/* Minimal Animations - Simple and smooth (Association Style) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Buttons - Association Style (Minimal Animations) */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
    background: #1592c1;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

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

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

/* Cards - Association Style (Minimal Animations) */
.card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
}

.card-body {
    padding: 28px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

/* Improved text readability - Association Style */
.card-body p {
    color: var(--gray-700);
}

.card-body .text-muted {
    color: var(--gray-600) !important;
}

/* Forms */
.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    letter-spacing: -0.01em;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--gray-100);
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    font-size: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #10b981;
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    color: #0c4a6e;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: var(--gray-50);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Progress Bars */
.progress {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Sidebar */
.sidebar {
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    min-height: 100vh;
    padding: 24px 0;
}

.sidebar .nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0;
    margin: 4px 0;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--gray-100);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stats-card>* {
    position: relative;
    z-index: 1;
}

.stats-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    box-shadow: 0 4px 6px -1px rgba(27, 164, 216, 0.3);
}

.stats-card .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stats-card .label {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Hero Section - Association Style */
.hero-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1920&auto=format&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 0;
}

.hero-section>* {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Image Container - Association Style (Larger and Prominent) */
.hero-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: var(--white);
    padding: 0;
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (min-width: 992px) {
    .hero-main-image {
        min-height: 550px;
        max-height: 650px;
        object-fit: cover;
    }
}

@media (max-width: 991px) {
    .hero-main-image {
        min-height: 400px;
        object-fit: cover;
    }
}

/* Footer - Association Style (Blue from logo) */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer .social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

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

.footer .social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Dark Statistics Section - Association Style (Blue from logo) */
.stats-section-dark {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(27, 164, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section-dark .stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-section-dark .stats-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.stats-section-dark .stats-card .icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1592c1 100%);
    box-shadow: 0 8px 16px rgba(27, 164, 216, 0.3);
}

.stats-section-dark .stats-card .number {
    color: var(--white);
}

.stats-section-dark .stats-card .label {
    color: rgba(255, 255, 255, 0.8);
}

/* Philosophy Section */
.philosophy-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
}

.philosophy-card {
    text-align: center;
    padding: 40px 24px;
    transition: all 0.3s ease;
}



.philosophy-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.philosophy-card:hover .philosophy-icon {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.philosophy-icon.blue {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
}

.philosophy-icon.yellow {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #f59e0b 100%);
}

.philosophy-icon.pink {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #db2777 100%);
}

.philosophy-icon.green {
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
}

.philosophy-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.philosophy-card p {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    background: var(--gray-50);
    padding: 80px 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-item-overlay p {
    color: var(--white);
    font-weight: 600;
    margin: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .card-body {
        padding: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Admin Panel Enhancements */
.navbar-admin {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar {
    background: linear-gradient(180deg, #1BA4D8 0%, #FF6B35 100%);
    color: white;
}

.sidebar h3 {
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 24px;
    border-radius: 10px;
    margin: 4px 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.teacher-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.teacher-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}

/* Gradient Backgrounds */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Professional Card Enhancements */
.card-elevated {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 8px rgba(0, 0, 0, 0.03);
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Premium Button Styles */
.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Enhanced Form Inputs */
.form-control,
.form-select {
    font-size: 15px;
    line-height: 1.6;
}

/* Professional Shadows */
.shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Rounded Professional */
.rounded-4 {
    border-radius: 20px;
}

/* Spacing Improvements */
.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 12px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

.gap-5 {
    gap: 32px;
}

/* Flex improvements */
.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}

/* Professional Text Sizing */
.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

/* Image Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Professional Spacing for Sections */
.py-5 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Enhanced Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ============================================
   MODERN DESIGN ENHANCEMENTS - INSPIRED DESIGN
   ============================================ */

/* Hero Modal Overlay Card */
.hero-modal-card {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.hero-modal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-modal-card>* {
    position: relative;
    z-index: 1;
}

.hero-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.hero-modal-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-modal-grid img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Colored Border Cards for Join/Services Sections */
.card-accent-green {
    border-top: 4px solid #10b981;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent-green:hover {
    border-top-width: 6px;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.15);
}

.card-accent-blue {
    border-top: 4px solid #3b82f6;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent-blue:hover {
    border-top-width: 6px;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.card-accent-red {
    border-top: 4px solid #ef4444;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent-red:hover {
    border-top-width: 6px;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.card-accent-yellow {
    border-top: 4px solid #f59e0b;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent-yellow:hover {
    border-top-width: 6px;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.15);
}

/* Enhanced Statistics Section with Glow Effects */
.stats-section-dark .stats-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-section-dark .stats-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(27, 164, 216, 0.5);
    box-shadow: 0 4px 8px rgba(27, 164, 216, 0.2);
}

.stats-section-dark .stats-card .icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1592c1 100%);
    box-shadow: 0 4px 8px rgba(27, 164, 216, 0.3);
}

/* Premium Button Enhancements */
.btn-warning {
    background: linear-gradient(135deg, #FF8C42 0%, #f97316 100%);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(255, 140, 66, 0.3);
    font-weight: 700;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 8px rgba(255, 140, 66, 0.3);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    border: 2px solid var(--white);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: var(--gray-900);
}

/* Enhanced Gallery with Better Overlays */
.gallery-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item-overlay {
    background: linear-gradient(to top,
            rgba(15, 41, 66, 0.95) 0%,
            rgba(15, 41, 66, 0.6) 40%,
            transparent 100%);
}

.gallery-item-overlay p {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Modern Filter Buttons */
.gallery-filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.gallery-filter-btn:hover::before,
.gallery-filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(27, 164, 216, 0.3);
}

.gallery-filter-btn span {
    position: relative;
    z-index: 1;
}

/* Enhanced Icon Styling in Cards */
.card .icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1592c1 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 16px rgba(27, 164, 216, 0.25);
    transition: all 0.3s ease;
}

.card:hover .icon {
    box-shadow: 0 4px 8px rgba(27, 164, 216, 0.25);
}

/* Service Card Images */
.card-img-top {
    transition: all 0.4s ease;
}

.card:hover .card-img-top {
    opacity: 0.9;
}

/* Premium Section Headings */
section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-blue) 100%);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Enhanced Typography - Association Style (Improved Readability) */
.hero-title {
    text-shadow: none;
    color: var(--white);
}

.hero-subtitle {
    text-shadow: none;
    line-height: 1.7;
    color: var(--white);
}

/* Improved Navigation Sticky Effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Contact Section Icons */
#contact .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1592c1 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(27, 164, 216, 0.25);
    margin: 0 auto;
}

/* Footer Social Links Enhancement */
.footer .social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(27, 164, 216, 0.3);
}

/* Responsive Enhancements for Modern Design */
@media (max-width: 768px) {
    .hero-modal-card {
        padding: 24px;
        margin-top: 24px;
    }

    .hero-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-modal-grid img {
        height: 100px;
    }

    .gallery-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    section h2::after {
        margin: 12px auto 0;
    }

    .stats-section-dark .stats-card {
        margin-bottom: 20px;
    }

    .card .icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* Print-friendly styles */
@media print {

    .hero-modal-card,
    .gallery-section,
    .stats-section-dark {
        page-break-inside: avoid;
    }
}

/* Floating Animation Removed - Association Style (No excessive animations) */

/* =========================================
   Mobile Responsiveness Improvements
   ========================================= */

@media (max-width: 991.98px) {

    /* Navbar */
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        border: 1px solid var(--gray-100);
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-50);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-nav .btn {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
        display: block;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image-container,
    .hero-image-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {

    /* General Spacing */
    section {
        padding: 40px 0;
    }

    /* Typography */
    h1,
    .h1 {
        font-size: 2.2rem;
    }

    h2,
    .h2 {
        font-size: 1.8rem;
    }

    h3,
    .h3 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }

    .hero-badge {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
    }

    .hero-content .d-flex {
        flex-direction: column;
        width: 100%;
    }

    .hero-content .btn {
        width: 100%;
    }

    /* Stats */
    .stats-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .stats-card .number {
        font-size: 36px;
    }

    /* Services & Cards */
    .service-card {
        flex-direction: column;
    }

    .service-image {
        height: 200px;
        width: 100%;
    }

    .card-body {
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 30px;
    }

    .footer .social-links {
        justify-content: center;
    }

    .footer .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }

    /* Tables on mobile */
    .table-responsive {
        overflow-x: auto;
    }
}