/*
 * Yarl IT Hub - Django Application Styles
 * Matching main website's elegant minimal design
 * Bootstrap 5 + Clean Custom Styles
 */

:root {
    /* Colors - Yarl IT Hub Brand */
    --primary-color: #489FD4;
    --primary-hover: #3a8bc2;
    --primary-dark: #3a8bc2;

    /* Neutrals - High Contrast */
    --color-text-primary: #0a2540;
    --color-text-secondary: #5c7186;
    --color-text-tertiary: #8898aa;

    /* Backgrounds */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f6f9fc;
    --color-bg-tertiary: #fafbfc;

    /* Legacy color aliases for compatibility */
    --secondary-color: #5c7186;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f6f9fc;
    --dark-color: #0a2540;

    /* Borders & Shadows */
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-size-display: 56px;
    --font-size-h1: 40px;
    --font-size-h2: 20px;
    --font-size-body: 16px;
    --font-size-caption: 14px;

    /* Spacing - 8px Grid System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Card System */
    --card-padding: 32px;
    --card-gap: 24px;
    --card-radius: 16px;

    /* Border Radius */
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;

    /* Bootstrap Overrides */
    --bs-primary: #489FD4;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--bs-body-font-family);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content area - pushes footer to bottom */
main {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* Ensure navbar doesn't overlap content */
.navbar.fixed-top + div + main {
    padding-top: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin: 0;
}

p {
    margin: 0 0 var(--space-md) 0;
    color: var(--color-text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    opacity: 0.7;
    color: var(--primary-hover);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(72, 159, 212, 0.04);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

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

.btn-light:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Cards */
.card {
    background: var(--color-bg-primary);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

/* Disable hover animation for table cards to prevent content hiding */
.card.applications-table-card:hover,
.card.no-hover:hover {
    transform: none;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
    padding: var(--space-lg);
}

.card-body {
    padding: var(--space-lg);
    flex: 1;
}

/* Stacked card layouts: avoid stretched cards that create large gaps */
.pp-admin-content .card,
.pp-no-stretch .card,
.admin-no-stretch .card {
    height: auto;
}

.pp-admin-content .card-body,
.pp-no-stretch .card-body,
.admin-no-stretch .card-body {
    flex: 0 0 auto;
}

.pp-admin-content .row > [class^="col-"],
.pp-no-stretch .row > [class^="col-"],
.admin-no-stretch .row > [class^="col-"] {
    align-self: flex-start;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 159, 212, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
    background-color: #fff;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 159, 212, 0.1);
}

/* Django Form Elements - Global Styling */
/* These styles ensure Django forms look consistent even without Bootstrap classes */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="tel"],
form input[type="url"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="search"],
form textarea,
form select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="number"]:focus,
form input[type="tel"]:focus,
form input[type="url"]:focus,
form input[type="date"]:focus,
form input[type="datetime-local"]:focus,
form input[type="search"]:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 159, 212, 0.1);
    outline: none;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-text-secondary);
    background-color: #f6f9fc;
    border: 1px dashed #e9ecef;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

form input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: rgba(72, 159, 212, 0.05);
}

form input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form Help Text */
.form-text,
.helptext {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    margin-top: 0.375rem;
}

/* Form Error States */
.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger-color);
    margin-top: 0.375rem;
}

form .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.375rem 0 0 0;
}

form .errorlist li {
    font-size: 0.8125rem;
    color: var(--danger-color);
}

/* Form Check (Checkboxes & Radios) */
.form-check {
    display: flex;
    align-items: center;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0;
    margin-left: -1.75rem;
    margin-right: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 159, 212, 0.1);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    cursor: pointer;
    margin-left: 0;
    flex: 1;
}

/* Form Switch specific styling */
.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    border-radius: 2em;
    margin-right: 0.5rem;
}

.form-switch .form-check-label {
    margin-left: 0;
}

/* Card Form Styling */
.card .card-body form .form-label,
.card .card-body label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card .card-body form .mb-3 {
    margin-bottom: 1.25rem !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
    z-index: 1040;
}

/* Ensure dropdown menus are scrollable when long */
.navbar-nav .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Smooth scrolling for dropdowns */
.navbar-nav .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: var(--space-xs);
    z-index: 1050;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-item {
    border-radius: 6px;
    padding: var(--space-sm);
    font-size: 15px;
    color: var(--color-text-secondary);
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

/* Mobile dropdown fixes */
@media (max-width: 991.98px) {
    /* Ensure brand dropdown button is properly sized for touch on mobile */
    .navbar-brand .dropdown > button {
        min-height: 44px; /* Minimum touch target size */
        padding: 0.5rem 0;
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
        display: none;
        max-height: 50vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }

    .navbar-nav .dropdown-item {
        padding-left: 1.5rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }

    /* Ensure navbar collapse works properly */
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Smooth scrolling for mobile navbar */
    .navbar-collapse::-webkit-scrollbar {
        width: 4px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

    /* Ensure dropdown items are tappable on mobile */
    .navbar-nav .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Google OAuth Button */
.btn-google {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-google:hover {
    background-color: var(--light-color);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-google img {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

/* Profile Picture */
.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-picture-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* QR Code */
.qr-code-container {
    text-align: center;
    padding: 2rem;
}

.qr-code-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.25rem;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Utility Classes */
.text-muted {
    color: var(--secondary-color) !important;
}

.border-light {
    border-color: var(--border-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

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

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-actions .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 159, 212, 0.3);
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-item {
    text-align: center;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

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

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-cards {
    position: relative;
    height: 200px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 80px;
    right: 20px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

/* Features Section */
.features-section {
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }

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

    .hero-logo {
        max-width: 200px;
    }

    .floating-card {
        position: static;
        margin: 0.5rem auto;
        width: fit-content;
    }

    .hero-cards {
        height: auto;
        margin-top: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* Event Cards */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.event-card .card-img-top {
    transition: transform 0.3s ease;
}

.event-card:hover .card-img-top {
    transform: scale(1.05);
}

.event-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.event-meta .d-flex {
    margin-bottom: 0.5rem;
}

.event-meta i {
    width: 16px;
    text-align: center;
}

/* Events Section */
.events-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.events-section .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .event-card {
        margin-bottom: 1.5rem;
    }
}

/* Notifications */
.navbar .notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.navbar .notification-trigger:hover {
    background-color: rgba(72, 159, 212, 0.08);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: var(--danger-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.notification-unread {
    background: linear-gradient(90deg, rgba(72, 159, 212, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
}

/* Section Utilities - Matching Main Site */
.section-label {
    display: inline-block;
    font-size: var(--font-size-caption);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-light {
    background: var(--color-bg-primary);
}

.section-gray {
    background: var(--color-bg-secondary);
}

.section-accent {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

/* Badge Styling */
.badge-custom {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: none;
    padding: 0;
    border: none;
}

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

/* Footer Styling */
/* Ensure footer stays at bottom */
footer {
    flex-shrink: 0;
}

/* Minimal Footer (Default) */
footer.footer-minimal {
    background: #fff !important;
    color: var(--color-text-secondary);
    padding: 1.5rem 0;
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
}

footer.footer-minimal p,
footer.footer-minimal .text-muted {
    color: var(--color-text-secondary) !important;
}

footer.footer-minimal a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* Dark Footer (Legacy/Full Footer) */
footer:not(.footer-minimal) {
    background: var(--color-text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-lg) 0;
}

footer:not(.footer-minimal) h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

footer:not(.footer-minimal) a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

footer:not(.footer-minimal) a:hover {
    color: white;
    opacity: 1;
}

footer:not(.footer-minimal) .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.footer-bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Stats Section */
.stats-section {
    background: var(--color-bg-secondary);
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, #96C353 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    display: block;
    font-size: var(--font-size-caption);
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* CTA Section Enhanced */
.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    :root {
        --font-size-display: 48px;
        --font-size-h1: 32px;
        --space-3xl: 64px;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-display: 40px;
        --font-size-h1: 28px;
        --space-2xl: 48px;
        --space-3xl: 48px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}
