:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(44, 62, 80, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--secondary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* ==================== MAIN CONTENT ==================== */
main {
    position: relative;
    z-index: 2;
    background: white;
}


/* ==================== FLOATING STATS SECTION ==================== */
.floating-stats-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.floating-stats-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Individual Stat Card */
.stat-floating-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231,76,60,0.1);
}

.stat-floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231,76,60,0.05), rgba(52,152,219,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-floating-card:hover::before {
    opacity: 1;
}

.stat-floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(231,76,60,0.15);
    border-color: rgba(231,76,60,0.3);
}

/* Icon Circle */
.stat-icon-circle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(52,152,219,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.stat-floating-card:hover .stat-icon-circle {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: scale(1.05) rotate(5deg);
}

.stat-icon-circle i {
    font-size: 1.8rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.stat-floating-card:hover .stat-icon-circle i {
    color: white;
    transform: scale(1.1);
}

/* Content Area */
.stat-content {
    flex: 1;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-symbol {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Progress Bar Animation */
.stat-progress {
    width: 100%;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stat-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 3px;
    transition: width 1.5s ease-out;
}

.stat-floating-card:hover .stat-progress-fill {
    width: 100%;
}

/* Animation for stats cards on load */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-floating-card {
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
}

.stat-floating-card:nth-child(1) { animation-delay: 0.1s; }
.stat-floating-card:nth-child(2) { animation-delay: 0.2s; }
.stat-floating-card:nth-child(3) { animation-delay: 0.3s; }
.stat-floating-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1100px) {
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-floating-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .stat-icon-circle {
        width: 55px;
        height: 55px;
    }
    
    .stat-icon-circle i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-symbol {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .floating-stats-section {
        margin-top: -40px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-stats-section {
        margin-top: -30px;
        padding: 0 0.75rem;
    }
    
    .stat-floating-card {
        padding: 1rem;
    }
    
    .stat-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon-circle i {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: -0.5rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background: white;
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-box i {
    color: var(--secondary);
}

.core-values-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    color: white;
}

.value-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.value-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
}

.value-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    padding: 5rem 0;
    background: var(--light);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-category {
    display: inline-block;
    background: var(--light);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.service-link:hover {
    transform: translateX(5px);
    color: #c0392b;
}

/* ==================== FEATURED EVENT ==================== */
.featured-event-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.featured-event-content {
    padding: 3rem;
}

.featured-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.featured-event-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.featured-event-content .event-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.8rem;
    color: #999;
}

.info-item span {
    font-weight: 500;
    color: var(--primary);
}

.featured-event-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown-wrapper {
    padding: 3rem;
    text-align: center;
}

.countdown-box {
    background: rgba(0,0,0,0.8);
    padding: 2rem;
    border-radius: 20px;
    color: white;
}

.countdown-timer {
    font-size: 2rem;
    font-weight: bold;
    font-family: monospace;
}

/* ==================== EVENTS SECTION ==================== */
.events-section {
    padding: 5rem 0;
    background: white;
}

.event-filters {
    margin-top: 2rem;
}

.event-filters .filter-btn {
    margin: 0 5px;
    padding: 8px 20px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
}

.event-filters .filter-btn:hover {
    background: var(--secondary);
    color: white;
}

.event-filters .filter-btn.active {
    background: var(--secondary);
    color: white;
}

.event-item {
    margin-bottom: 30px;
}

.event-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card-modern:hover .event-image-container img {
    transform: scale(1.1);
}

.event-no-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-date-large {
    text-align: center;
    color: white;
}

.event-date-large .event-day {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-large .event-month {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
}

.event-date-large .event-year {
    display: block;
    font-size: 0.9rem;
}

.event-date-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 55px;
    z-index: 2;
}

.event-date-overlay .event-day {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-overlay .event-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-type-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

.event-card-body {
    padding: 1.25rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--primary);
}

.event-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.event-meta-info .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #888;
}

.event-meta-info .meta i {
    width: 14px;
    color: var(--secondary);
}

.event-price {
    margin-bottom: 0.75rem;
}

.event-price .free {
    color: var(--success);
    font-weight: 600;
}

.event-price span {
    font-weight: 600;
    color: var(--primary);
}

.event-capacity {
    margin-bottom: 1rem;
}

.event-capacity .progress {
    height: 5px;
    border-radius: 10px;
    margin-bottom: 0.25rem;
}

.event-capacity .progress-bar {
    background: var(--secondary);
}

.event-capacity small {
    font-size: 0.7rem;
    color: #888;
}

.event-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-details {
    flex: 1;
    padding: 0.5rem;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--secondary);
    color: white;
}

.btn-register {
    flex: 1;
    padding: 0.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ==================== BLOG SECTION ==================== */
.blog-section {
    padding: 5rem 0;
    background: var(--light);
}

.blog-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.blog-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card-modern:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    min-width: 55px;
}

.blog-date .day {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.blog-meta i {
    color: var(--secondary);
    margin-right: 0.25rem;
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.blog-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
    color: #c0392b;
}

/* ==================== PARTNERS SECTION ==================== */
.partners-section {
    padding: 4rem 0;
    background: white;
}

.partner-link {
    display: block;
    text-decoration: none;
}

.partner-logo {
    width: 100%;
    filter: grayscale(100%);
    transition: all 0.3s;
    opacity: 0.7;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--dark));
}

.cta-card {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1a252f;
    color: white;
    padding: 3rem 0 1rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ==================== MESSAGES ==================== */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.alert {
    animation: slideInRight 0.5s ease;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ==================== UTILITIES ==================== */
.empty-state {
    padding: 4rem;
    background: var(--light);
    border-radius: 15px;
    text-align: center;
}

.empty-state i {
    color: var(--secondary);
}

.btn-primary {
    background: var(--secondary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    background: #c0392b;
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

:target {
    scroll-margin-top: 80px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-floating-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .stat-icon-circle {
        width: 55px;
        height: 55px;
    }
    
    .stat-icon-circle i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-symbol {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .floating-stats-section {
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .navbar {
        position: fixed;
        background: rgba(44, 62, 80, 0.95);
    }
    
    .messages-container {
        top: 70px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .event-filters .filter-btn {
        margin: 5px;
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .featured-event-card .row {
        flex-direction: column-reverse;
    }
    
    .featured-event-content {
        padding: 1.5rem;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        font-size: 1.2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-stats-section {
        margin-top: -30px;
        padding: 0 0.75rem;
    }
    
    .stat-floating-card {
        padding: 1rem;
    }
    
    .stat-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon-circle i {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}


/* ==================== FIXED DROPDOWN STYLES - NO OVERLAP ==================== */
.navbar-nav .dropdown-menu {
    position: absolute;
    margin-top: 0.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 260px;
    padding: 0.5rem 0;
    background: white;
    z-index: 1050;
}

/* Ensure dropdown appears above everything */
.navbar-nav .dropdown-menu.show {
    display: block;
}

/* Dropdown items */
.navbar-nav .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: #333;
    transition: all 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(231,76,60,0.1);
    color: var(--secondary);
    transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
    color: var(--secondary);
}

/* Dropdown dividers */
.dropdown-divider {
    margin: 0.3rem 0;
    border-color: #eee;
}

/* Dropdown header for mega menu (if used) */
.dropdown-header {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
}

/* Mobile responsive dropdown */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        background: rgba(255,255,255,0.1);
        margin-top: 0;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: var(--secondary);
        transform: translateX(5px);
    }
    
    .dropdown-divider {
        border-color: rgba(255,255,255,0.1);
    }
    
    .navbar-nav .dropdown-item i {
        color: var(--secondary);
    }
}

/* Dropdown animation */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent dropdown from being cut off */
.navbar-nav .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ensure dropdowns on right side don't overflow */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Custom scrollbar for dropdown */
    .navbar-nav .dropdown-menu::-webkit-scrollbar {
        width: 5px;
    }
    
    .navbar-nav .dropdown-menu::-webkit-scrollbar-track {
        background: var(--light);
        border-radius: 10px;
    }
    
    .navbar-nav .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 10px;
    }
}

/* Active navigation link */
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

@media (max-width: 768px) {
    .navbar-nav .nav-link.active::after {
        bottom: -2px;
    }
}