/* Custom CSS for Firefighters Reference Site */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Arabic Font */
body {
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    line-height: 1.8;
    font-weight: 400;
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 50%, rgba(15, 52, 96, 0.95) 100%) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 50%, #dc3545 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 50%, #dc3545 100%);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand small {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

.navbar-toggler {
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.05);
}

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

.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, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.3rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Header Scroll Effect */
.navbar.scrolled .navbar-brand {
    font-size: 1.6rem;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem;
}

/* Mobile Header Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 193, 7, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
        border-radius: 15px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand small {
        font-size: 0.5rem;
    }
}

/* Custom Gradient Background */
.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Hero Section */
.hero-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.6) contrast(1.3) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.7) 50%, rgba(15, 52, 96, 0.6) 100%);
    z-index: 2;
}


.hero-card::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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Header */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-logo {
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 1rem;
}

/* Hero Title */
.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Hero Title Section */
.hero-title-section {
    margin-bottom: 2.5rem;
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle p {
    margin: 0;
    font-weight: 500;
}


/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-content h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.feature-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}



/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff5722 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.6);
    text-decoration: none;
    color: white;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.hero-btn:active {
    transform: translateY(-1px);
}

.hero-btn i {
    font-size: 1.1rem;
}


/* Section Cards */
.section-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #dc3545;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    margin-bottom: 20px;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
}

/* Ensure consistent card heights */
.section-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Force equal heights and widths for all cards in a row */
.sections-grid .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.sections-grid .col-lg-4,
.sections-grid .col-md-6 {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}


/* Ensure consistent card widths */
.section-card {
    width: 100%;
    max-width: 100%;
}

/* Force 2 cards per row on all small screens - works for mobile and desktop resize */
@media (max-width: 768px) {
    .sections-grid .col-lg-4,
    .sections-grid .col-md-6 {
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: stretch !important;
    }
    
    .sections-grid .row {
        margin: 0 !important;
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .section-card {
        margin-bottom: 0 !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .section-card .card-body {
        padding: 1.2rem 0.8rem !important;
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: center !important;
        flex: 1 !important;
    }
}

/* iPhone specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .sections-grid .col-lg-4,
        .sections-grid .col-md-6 {
            flex: 0 0 48% !important;
            width: 48% !important;
            max-width: 48% !important;
            min-width: 48% !important;
        }
        
        .sections-grid .row {
            gap: 4% !important;
        }
        
        .section-card {
            height: 100% !important;
            min-height: 320px !important;
        }
    }
}


.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
    border-color: #c82333;
}

.section-card .card-body {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 280px;
}

.section-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
    color: #dc3545;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.section-card:hover .section-icon {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    line-height: 1.5;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    border-radius: 2px;
}

.section-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 2px solid #dc3545;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    color: white;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}


.section-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #b02a37 100%);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
    pointer-events: auto;
}

.section-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #b02a37 0%, #a02632 100%);
    border-color: #b02a37;
    pointer-events: auto;
}

.section-btn:focus {
    pointer-events: auto;
}

.section-btn:visited {
    pointer-events: auto;
}

.section-btn:link {
    pointer-events: auto;
}

.section-btn:target {
    pointer-events: auto;
}

.section-btn:any-link {
    pointer-events: auto;
}

.section-btn:not(:disabled) {
    pointer-events: auto;
}

.section-btn:enabled {
    pointer-events: auto;
}

.section-btn:not([disabled]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}

.section-btn:not([aria-disabled="true"]):not([disabled]):not([aria-hidden="true"]):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]):not([style*="opacity: 0"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]):not([style*="pointer-events: none"]) {
    pointer-events: auto;
}


/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.search-result-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-right: 4px solid #dc3545;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-card {
        padding: 0;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-logo {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .hero-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .hero-section .card-body {
        padding: 2rem 1rem;
    }
    
    .section-card .card-body {
        padding: 1rem;
    }
    
    .section-icon {
        font-size: 2rem;
    }
    
    .video-thumbnail img {
        height: 150px;
    }
    
    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Buttons */
.btn-custom {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    color: white;
}

/* Section Content */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

/* Video Modal */
.video-modal .modal-dialog {
    max-width: 90%;
}

.video-modal .modal-content {
    background: #000;
    border-radius: 10px;
}

.video-modal iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .video-modal iframe {
        height: 250px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #c82333;
    transform: scale(1.1);
}

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

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h4 {
    color: #dc3545;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* Text Content */
.text-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-right: 4px solid #dc3545;
}

/* Responsive Typography */
@media (max-width: 576px) {
    .hero-card {
        padding: 0;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .stat-item {
        padding: 0.6rem 0.8rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
}

/* Enhanced Mobile Menu Styles */
.offcanvas {
    width: 320px !important;
}

.offcanvas-header {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.offcanvas-body {
    background: #f8f9fa;
}

/* Menu Accordion */
.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
}

.accordion-button {
    background: white;
    border: none;
    box-shadow: none;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.accordion-body {
    background: white;
    border-radius: 0 0 8px 8px;
    margin-top: -0.5rem;
    padding: 0;
}

/* Menu List Items */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

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

.list-group-item a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.list-group-item a:hover {
    color: #dc3545;
}

/* Menu Search */
#menuSearchInput {
    border-radius: 20px 0 0 20px;
    border: 2px solid #dc3545;
}

#menuSearchBtn {
    border-radius: 0 20px 20px 0;
    border: 2px solid #dc3545;
    border-left: none;
}

/* Statistics Cards */
.bg-danger, .bg-warning, .bg-success, .bg-info {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bg-danger:hover, .bg-warning:hover, .bg-success:hover, .bg-info:hover {
    transform: translateY(-2px);
}

/* Quick Access Icons */
.text-purple {
    color: #6f42c1 !important;
}

/* Menu Animation */
.accordion-collapse {
    transition: all 0.3s ease;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

/* Mobile Menu Enhancements */
@media (max-width: 768px) {
    .offcanvas {
        width: 280px !important;
    }
    
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .list-group-item {
        padding: 0.6rem 0.75rem;
    }
    
    .list-group-item a {
        font-size: 0.9rem;
    }
}

/* Menu Scroll */
.offcanvas-body {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Custom Scrollbar for Menu */
.offcanvas-body::-webkit-scrollbar {
    width: 4px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 2px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Article Styles */
.article-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
    border-right: 4px solid #dc3545;
}

.article-title {
    font-family: 'Cairo', sans-serif;
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    letter-spacing: 1px;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h5 {
    font-family: 'Cairo', sans-serif;
    color: #dc3545;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-right: 1rem;
    letter-spacing: 1px;
    border-right: 3px solid #dc3545;
}

.article-body h6 {
    font-family: 'Cairo', sans-serif;
    color: #495057;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.article-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
    color: #343a40;
}

.article-body ul {
    margin-bottom: 1.2rem;
    padding-right: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-body strong {
    color: #dc3545;
    font-weight: 600;
}

/* Article Images */
.article-image {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

.article-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-image img[loading="lazy"].loaded {
    opacity: 1;
}

.article-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Loading placeholder for images */
.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    display: none;
}

.article-image img[loading="lazy"]:not(.loaded) + .article-image::before {
    display: block;
}

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

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.image-caption {
    margin-top: 0.5rem;
    font-style: italic;
}

.image-caption small {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Image responsive adjustments */
@media (max-width: 768px) {
    .article-image img {
        border-radius: 6px;
    }
    
    .image-caption small {
        font-size: 0.8rem;
    }
}

/* Modal adjustments for articles */
.modal-xl {
    max-width: 90%;
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .modal-xl {
        max-width: 95%;
    }
}

/* Grid Enhancements */
.sections-grid {
    margin-top: 3rem;
    padding: 0 15px;
}

.sections-grid .row {
    margin: 0 -15px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.sections-grid .col-lg-4,
.sections-grid .col-md-6 {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

/* Section Title Enhancement */
.sections-grid h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.sections-grid h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    border-radius: 2px;
}

.sections-grid h3 i {
    color: #dc3545;
    margin-left: 10px;
}

/* Card Hover Effects Enhancement */
.section-card {
    cursor: pointer;
}

.section-card .card-body {
    transition: all 0.3s ease;
}

.section-card:hover .card-body {
    transform: translateY(-2px);
}

/* Card Content Animation */
.section-card .section-icon,
.section-card .section-title,
.section-card .section-description,
.section-card .section-btn {
    transition: all 0.3s ease;
}

.section-card:hover .section-title {
    color: #dc3545;
}

/* Card Content Layout */
.section-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.section-card .card-content:hover {
    transform: translateY(-2px);
}

.section-card .card-content:hover .section-btn {
    transform: none;
    pointer-events: auto;
}

.section-card .section-icon {
    margin-bottom: 1.5rem;
}

.section-card .section-title {
    margin-bottom: 1.2rem;
}

.section-card .section-description {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Button Styling */
.section-btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Card Shadow Enhancement */
.section-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
}

.section-card:hover {
    border-color: rgba(220, 53, 69, 0.2);
}

/* Icon Enhancement */
.section-card .section-icon i {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    /* Fix header on mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .hero-section .card-body {
        padding: 2rem 1.5rem;
    }
    
    .sections-grid {
        margin-top: 2rem;
        padding: 0;
    }
    
    .sections-grid h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .sections-grid .row {
        margin: 0;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
    }
    
    .sections-grid .col-lg-4,
    .sections-grid .col-md-6 {
        padding: 0;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        align-items: stretch;
    }
    
    .section-card {
        margin-bottom: 0;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        flex: 1;
    }
    
    .section-card .card-body {
        padding: 1.2rem 0.8rem;
        height: 320px;
        min-height: 320px;
        max-height: 320px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .section-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .section-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        max-width: 140px;
    }
    
    /* Fix card hover effects on mobile */
    .section-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding-left: 5px;
        padding-right: 5px;
        max-width: 100%;
    }
    
    /* Fix header on small mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.6rem;
    }
    
    .sections-grid {
        padding: 0;
    }
    
    .sections-grid h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }
    
    .sections-grid .row {
        margin: 0;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .sections-grid .col-lg-4,
    .sections-grid .col-md-6 {
        padding: 0;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        align-items: stretch;
    }
    
    .section-card {
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        flex: 1;
    }
    
    .section-card .card-body {
        padding: 1rem 0.6rem;
        height: 280px;
        min-height: 280px;
        max-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .section-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .section-description {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .section-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        max-width: 120px;
    }
    
    /* Reduce hover effects on small screens */
    .section-card:hover {
        transform: translateY(-2px) scale(1.005);
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    body {
        font-size: 12px;
    }
    
    .container {
        padding-left: 3px;
        padding-right: 3px;
        max-width: 100%;
    }
    
    /* Fix header on very small mobile */
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.5rem;
    }
    
    .sections-grid h3 {
        font-size: 1.6rem;
        padding: 0 3px;
    }
    
    .sections-grid .col-lg-4,
    .sections-grid .col-md-6 {
        padding: 0;
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        align-items: stretch;
    }
    
    .section-card {
        border-radius: 6px;
        width: 100%;
        max-width: 100%;
        flex: 1;
    }
    
    .section-card .card-body {
        padding: 0.8rem 0.4rem;
        height: 260px;
        min-height: 260px;
        max-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .section-icon {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .section-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .section-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        max-width: 100px;
    }

 
      
    
    /* Minimal hover effects on very small screens */
    .section-card:hover {
        transform: translateY(-1px);
    }
}

/* Content Type Badge Styles */
.content-type-badge {
    z-index: 10;
    margin: 0.5rem;
}

.content-type-badge .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.content-type-badge .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white;
}

.content-type-badge .badge.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white;
}

.content-type-badge .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for badges */
@media (max-width: 768px) {
    .content-type-badge {
        margin: 0.3rem;
    }
    
    .content-type-badge .badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .content-type-badge {
        margin: 0.25rem;
    }
    
    .content-type-badge .badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
}

/* Important Notice Styles */
.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%) !important;
}

.alert-warning {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    animation: pulseWarning 2s infinite;
}

.alert-warning .alert-heading {
    color: #d68910 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.alert-warning p {
    color: #8b4513 !important;
    font-weight: 500;
    line-height: 1.6;
}

.alert-warning i {
    color: #ff6b35 !important;
    animation: bounce 1s infinite;
}

@keyframes pulseWarning {
    0% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Responsive adjustments for notice */
@media (max-width: 768px) {
    .alert-warning .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-warning i {
        margin-bottom: 0.5rem;
    }
    
    .alert-warning .alert-heading {
        font-size: 1rem;
    }
    
    .alert-warning p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .alert-warning {
        padding: 1rem !important;
    }
    
    .alert-warning .alert-heading {
        font-size: 0.95rem;
    }
    
    .alert-warning p {
        font-size: 0.85rem;
    }
}

/* Enhanced Header Styles */
.header-main {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.header-main::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="fire" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23fire)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.logo-icon i {
    font-size: 1.8rem;
    color: #fff;
    animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 100, 0, 0.3);
    }
}

.logo-content {
    flex: 1;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-top: 0.25rem;
}

.menu-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.menu-toggle-btn i {
    font-size: 1.1rem;
}

.menu-text {
    font-size: 0.9rem;
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .logo-section {
        gap: 0.75rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 1.5rem;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .menu-toggle-btn {
        padding: 0.6rem 1rem;
    }
    
    .menu-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo-section {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon i {
        font-size: 1.3rem;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .menu-toggle-btn {
        padding: 0.5rem 0.75rem;
    }
}