/* Grants page CSS styles */
/* Updated for React - matching HTML exactly */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #16B2DC;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease, padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transform: translateY(0); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-container.scrolled { transform: translateY(-100%); box-shadow: none; }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Sticky nav — shown after full header hides on scroll down */
.sticky-nav-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1001; background: var(--primary); transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.sticky-nav-bar.visible { transform: translateY(0); }
.sticky-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: center; align-items: center; }
.sticky-nav-bar .main-nav { padding: 8px 0; }
.sticky-nav-bar .dropdown-menu { top: 100%; }
@media (max-width: 1280px) { .sticky-nav-bar { display: none; } }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.72rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 10px 14px; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; border-radius: 4px; font-family: 'Nunito Sans', 'Source Sans Pro', -apple-system, sans-serif; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 0; background: rgba(255,255,255,0.08); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 10px 16px; color: var(--text-color); text-decoration: none; font-size: 0.82rem; font-weight: 500; font-family: 'Nunito Sans', 'Source Sans Pro', -apple-system, sans-serif; text-transform: capitalize; letter-spacing: 0.2px; transition: background 0.18s ease, color 0.18s ease; border-bottom: 1px solid rgba(0,0,0,0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255,255,255,0.18); color: white; font-weight: 700; border: 1px solid rgba(255,255,255,0.35); }
.nav-link:hover { text-decoration: none; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; }
.dark-theme .nav-link:hover { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }


/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 0; }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; border-radius: 0; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label {
    background: linear-gradient(135deg, #16B2DC 0%, #0E8FB7 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: var(--primary);
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(22, 178, 220, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #16B2DC 0%, #0E8FB7 100%);
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 3px; z-index: 2; }
.hero-indicator { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.25s ease; }
.hero-indicator.active { background: white; transform: scale(1.3); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; border-radius: 0; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 110px; background-size: cover; background-position: center; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ann-carousel .opportunity-image,
.opportunities-grid .opportunity-image { height: 110px !important; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    align-items: flex-start;
}

.footer-btn-learn-more {
    text-decoration: none;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: rgba(255,255,255,0.9);
}

.support-title {
    margin-top: 30px;
}

.footer-btn-faq { text-decoration: none; font-size: 0.75rem; }

.footer-quote i {
    color: var(--primary);
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.section { margin-bottom: 0; }
.section + .section { margin-top: 48px; }

/* ── Home editorial layout: big card | mini list | side panel ── */
.home-editorial-wrap {
  margin-top: 20px;
}
.home-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.home-editorial-solo {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}
.home-editorial-solo .home-main-card {
  min-height: 396px;
}
.home-editorial-main { grid-column: 1; grid-row: 1; height: 100%; }
.home-editorial-list { grid-column: 2; grid-row: 1; }
.home-editorial-below {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  border-top: 1px solid var(--light-gray);
  margin-top: 4px;
}

/* ── Big main card ── */
.home-main-card {
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  background: var(--card-bg);
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.home-main-card:hover { border-color: var(--primary); }
.dark-theme .home-main-card { border-color: var(--header-border); }

.home-main-img {
  width: 100%;
  flex: 1;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  position: relative;
}
.home-main-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-main-star {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f5c518;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.home-main-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.home-main-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-main-card:hover .home-main-title { color: var(--primary); }
.home-main-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: auto;
}
.home-main-meta span { display: flex; align-items: center; gap: 5px; }
.home-main-meta i { color: var(--primary); font-size: 0.65rem; }
.home-main-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--light-gray);
  margin-top: auto;
  gap: 8px;
}
.dark-theme .home-main-footer { border-color: var(--header-border); }
.home-main-status {
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-main-status-active  { color: #22a355; }
.home-main-status-rolling { color: var(--primary); }
.home-main-status-ongoing { color: var(--primary); }
.home-main-status-open    { color: var(--gray); }
.home-main-status-expired { color: #e05c3a; }
.home-main-readmore {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.dark-theme .home-main-footer { border-color: var(--header-border); }

/* ── Shared horizontal card (mini list + side panel) ── */
.home-editorial-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--light-gray);
}
.home-hcard {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  align-items: flex-start;
  transition: background 0.15s;
}
.home-hcard:hover { background: transparent; }
.home-hcard-slim { padding: 9px 10px; border-bottom: 1px solid var(--light-gray); }
.home-hcard-slim:last-child { border-bottom: none; }
.home-hcard-img {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
}
.home-hcard-slim .home-hcard-img { width: 56px; height: 56px; }
.home-hcard-body { flex: 1; min-width: 0; padding-top: 1px; }
.home-hcard-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.home-hcard-slim .home-hcard-title { font-size: 0.78rem; -webkit-line-clamp: 2; }
.home-hcard:hover .home-hcard-title { color: var(--primary); }
.home-hcard-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: 0.67rem;
  color: var(--gray);
}
.home-hcard-meta span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.home-hcard-meta i { color: var(--primary); font-size: 0.62rem; }

/* ── Side panel ── */
.home-side-panel {
  border: 1px solid var(--light-gray);
  background: var(--card-bg);
  overflow: hidden;
}
.dark-theme .home-side-panel { border-color: var(--header-border); }
.home-side-panel-header {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
}
.home-side-list { display: flex; flex-direction: column; }
.home-side-viewall {
  display: block;
  text-align: center;
  padding: 7px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--light-gray);
  transition: background 0.15s;
}
.home-side-viewall:hover { background: rgba(22,178,220,0.07); }
.dark-theme .home-side-viewall { border-color: var(--header-border); }

@media (max-width: 1024px) {
  .home-editorial { grid-template-columns: 1fr 1fr; }
  .home-editorial-below { grid-column: 1 / 3; grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .home-editorial { grid-template-columns: 1fr; gap: 16px; }
  .home-editorial-main, .home-editorial-list, .home-editorial-below { grid-column: 1; grid-row: auto; }
  .home-main-img { height: 160px; }
  .home-hcard-img { width: 62px; height: 62px; }
}
@media (max-width: 540px) {
  .home-editorial { grid-template-columns: 1fr; gap: 12px; }
  .home-main-img { height: 170px; }
  .home-hcard-img { width: 58px; height: 58px; }
  .home-hcard-title { font-size: 0.8rem; }
  .home-hcard-meta { flex-direction: row; flex-wrap: wrap; }
}
.opportunities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; padding: 0; align-items: start; }
.opportunities-grid .opportunity-card { width: 100% !important; min-width: 0 !important; margin-bottom: 0 !important; }
.ann-carousel .opportunity-card { width: 100% !important; min-width: 0 !important; margin-bottom: 0 !important; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--card-bg);
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
  z-index: 1100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.scroll-top-btn--visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { background: var(--primary); color: #fff; }
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 80px; right: 16px; }
}
/* ── Footer ────────────────────────────────────────────────────── */
.footer { width: 100%; background: var(--footer-bg); padding: 60px 0 0; margin-top: 72px; }
.footer-content { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-section { margin-bottom: 30px; }
.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 0.8rem; line-height: 1.2; color: rgba(255,255,255,0.95); margin-bottom: 1.4rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 1.5px; position: relative; padding-bottom: 12px; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-section p { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.footer-logo { height: 130px; transition: transform 0.3s ease; display: flex; align-items: flex-start; justify-content: flex-start; margin-left: 0; padding-left: 0; margin-top: 8px; }
.footer-logo img { height: 100%; width: auto; max-height: 130px; object-fit: contain; filter: brightness(1.05); }
.footer-logo:hover { transform: scale(1.04); }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item i { color: var(--primary); font-size: 0.95rem; margin-top: 3px; min-width: 16px; flex-shrink: 0; }
.contact-details { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.68rem; color: rgba(255,255,255,0.45); text-transform: uppercase; font-weight: 700; letter-spacing: 0.8px; }
.contact-value { font-size: 0.875rem; color: rgba(255,255,255,0.85); font-weight: 400; line-height: 1.5; }
.contact-email { color: var(--primary); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.contact-email:hover { color: rgba(255,255,255,0.9); }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.footer-btn { display: inline-flex; justify-content: center; align-items: center; width: 120px; height: 28px; padding: 0; background: transparent; color: rgba(255,255,255,0.8); text-decoration: none; font-family: inherit; font-weight: 600; font-size: 0.75rem; line-height: 1; letter-spacing: 0.5px; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; border-radius: 0; margin-top: 10px; box-shadow: none; }
.footer-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); color: #fff; }
.footer-btn-feedback { }
.footer-btn-learn-more { }
.support-title { margin-top: 28px !important; }
.footer-btn-faq { }
.footer-divider { width: 100%; max-width: 1300px; margin: 0 auto; height: 1px; background: rgba(255,255,255,0.08); }
.footer-bottom { width: 100%; background: var(--footer-bottom-bg); padding: 18px 0; }
.footer-bottom-content { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-quote { font-size: 0.8rem; color: rgba(255,255,255,0.85); font-style: italic; letter-spacing: 0.3px; }
.footer-quote i { font-size: 0.65rem; color: #fff; opacity: 0.8; margin: 0 4px; }
.footer-legal-links { display: flex; align-items: center; gap: 8px; }
.footer-sep { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 6px; }
.footer-credit i { color: #fff; font-size: 0.75rem; }
.footer-link { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.footer-link-dev { color: #fff; font-weight: 700; }
.footer-link-dev:hover { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 768px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 10px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 500; font-family: 'Nunito Sans', 'Source Sans Pro', -apple-system, sans-serif; text-transform: capitalize; letter-spacing: 0.2px; transition: background 0.18s ease, color 0.18s ease; border-bottom: 1px solid rgba(0,0,0,0.05); background: var(--card-bg); border-radius: 0; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B !important; }
.bottom-nav-item.donate:hover { color: #FF5252 !important; }
.bottom-nav-item.donate i { color: #FF6B6B !important; }
.bottom-nav-item.donate:hover i { color: #FF5252 !important; }


/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

/* ── Switch to mobile nav at ≤1280px (iPad, Surface, Air, tablets) ── */
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }

    /* Footer: single column, centered */
    .footer-content { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
    .footer-section { margin-bottom: 25px; text-align: center; }
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 40px; left: 50%; transform: translateX(-50%); background: var(--primary); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    .footer-logo { height: 120px; justify-content: center; margin-bottom: 15px; }
    .footer-buttons { display: flex !important; flex-direction: column !important; justify-content: center; gap: 15px; align-items: center; }
    .footer-btn { font-size: 0.75rem; width: 120px; height: 28px; padding: 0; margin: 4px; border-radius: 0; }
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 0.9rem; width: 32px; height: 32px; min-width: 32px; display: flex; justify-content: center; align-items: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .footer-bottom { padding: 18px 0; }
    .footer-bottom-content { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 20px; }
    .footer-legal-links { justify-content: center; flex-wrap: wrap; }
    .footer-credit { justify-content: center; flex-wrap: wrap; text-align: center; }
    .footer-divider { margin: 0 20px; }

    /* Opportunity grid: 2 fluid columns */
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }

    /* Content: stack sidebar below */
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }

    /* Hero */
    .hero-carousel { height: 380px; }
    .hero-slide-content { padding: 24px 20px 55px; }
    .hero-slide-title { font-size: 1.4rem; }
}

/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }

    .opportunity-card { width: 100%; }
}

/* ── Desktop nav only above 1280px ─────────────────────────────── */
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    .footer-credit { order: 1; }
    .footer-quote { order: 2; }
    .footer-legal-links { order: 3; }
}

@media (max-width: 768px) {
    /* Phone overrides */
    .footer-content { grid-template-columns: 1fr !important; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-carousel { height: 300px; }
    .hero-slide-title { font-size: 1.1rem; }
    .main-content-container { padding: 0 12px; }
    .section-title { font-size: 1.2rem; }
    .opportunity-card { width: 100%; }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center; 
        gap: 12px;
        padding: 25px 20px;
    }
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .footer-section {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    .footer-buttons {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        gap: 15px;
        align-items: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: rgba(255,255,255,0.95);
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-logo {
        height: 120px;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    .footer-btn {
        font-size: 0.75rem;
        width: 120px;
        padding: 5px 0;
        margin: 4px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .footer-btn-feedback { }
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray, #f0f0f0) 25%, #e0e0e0 50%, var(--light-gray, #f0f0f0) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0;
}

.dark-theme .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

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

/* List-card shaped skeleton — mirrors .list-card exactly */
.skeleton-list-card {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--light-gray);
  background: var(--card-bg);
  overflow: hidden;
  min-height: 220px;
}

.skeleton-list-grid {
  margin-top: 20px;
}

.skeleton-list-img {
  min-height: 220px;
}

.skeleton-list-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-list-badge { height: 16px; width: 60px; }
.skeleton-list-title { height: 18px; width: 90%; }
.skeleton-list-title.short { width: 60%; }
.skeleton-list-meta { height: 13px; width: 75%; margin-top: 2px; }
.skeleton-list-excerpt { height: 13px; width: 100%; }
.skeleton-list-excerpt.short { width: 70%; }
.skeleton-list-footer { height: 13px; width: 50%; margin-top: auto; }

.skeleton-hero {
  height: 400px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .skeleton-list-card {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .skeleton-list-img { min-height: 200px; }
  .skeleton-hero { height: 300px; }
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}


/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.youtube-btn .social-btn-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup Styles */
.settings-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ── Coming Soon Modal ── */
.cs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: csFadeIn 0.18s ease;
}

@keyframes csFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.cs-card {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 44px 32px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    animation: csSlideUp 0.22s ease;
}

.cs-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray, #aaa);
    font-size: 0.85rem;
    transition: color 0.15s;
}

.cs-close:hover {
    color: var(--text-color, #333);
}

.cs-icon {
    font-size: 2.4rem;
    color: var(--primary, #16b2dc);
    display: block;
    margin-bottom: 18px;
}

.cs-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color, #1a1a2e);
    margin: 0 0 10px;
}

.cs-body {
    font-size: 0.9rem;
    color: var(--gray, #777);
    line-height: 1.6;
    margin: 0 0 26px;
}

.cs-btn {
    padding: 9px 28px;
    background: var(--primary, #16b2dc);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.cs-btn:hover {
    opacity: 0.85;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.settings-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--light-gray);
}

.dark-theme .settings-popup {
    border: 1px solid var(--header-border);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--primary);
    color: white;
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.settings-popup-content {
    padding: 25px;
}

.settings-section {
    margin-bottom: 20px;
    position: relative;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.settings-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    padding-right: 40px;
}

.settings-select::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-color);
    font-size: 12px;
}

.dark-theme .settings-select {
    border: 1px solid var(--header-border);
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.2);
}

.settings-select:hover {
    border-color: var(--primary);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    font-size: 14px;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.settings-link i {
    color: var(--primary);
    font-size: 16px;
}

.settings-link:hover i {
    color: white;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

@media (max-width: 768px) {
    .settings-popup {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-content {
        padding: 20px;
    }
    
    .settings-section {
        margin-bottom: 18px;
    }
    
    .settings-select {
        padding: 12px;
        font-size: 16px;
    }
}
/* ── Opportunity pagination ── */
.opp-count-badge {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* ── List Grid (listing pages) ── */
.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.list-card {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--light-gray);
  background: var(--card-bg);
  cursor: default;
  overflow: hidden;
  transition: border-color 0.2s ease;
  min-height: 220px;
}
.list-card-img {
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  position: relative;
  min-height: 220px;
  cursor: pointer;
}
.list-card-img:hover + .list-card-body .list-card-title { color: var(--primary); }
.list-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
}
.list-card-star {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #f5c518;
  font-size: 0.85rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.list-card-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.list-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.list-card-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.7rem;
  color: var(--gray);
}
.list-card-meta span { display: flex; align-items: center; gap: 5px; }
.list-card-meta i { color: var(--primary); font-size: 0.62rem; }
.list-card-excerpt {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.68rem;
  font-weight: 600;
}
.list-card-status { display: flex; align-items: center; gap: 4px; }
.list-card-status-active  { color: #22a355; }
.list-card-status-rolling { color: var(--primary); }
.list-card-status-ongoing { color: var(--primary); }
.list-card-status-open    { color: var(--gray); }
.list-card-status-expired { color: #e05c3a; }
.list-card-readmore {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: inherit;
}
.list-card-readmore:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .list-grid { grid-template-columns: 1fr; gap: 12px; }
  .list-card { grid-column: 1; grid-template-columns: 1fr; min-height: unset; }
  .list-card-img { min-height: 200px; }
}

/* ── Pagination ── */
.opp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.opp-pg-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  border: 1.5px solid var(--light-gray);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.opp-pg-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(22, 178, 220, 0.07);
  transform: translateY(-1px);
}

.opp-pg-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 178, 220, 0.35);
  cursor: default;
  transform: none;
}

.opp-pg-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.opp-pg-nav {
  font-size: 0.72rem;
  min-width: 40px;
}

.opp-pg-ellipsis {
  min-width: 28px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 560px) {
  .opp-pagination { gap: 4px; margin-top: 28px; }
  .opp-pg-btn { min-width: 36px; height: 36px; font-size: 0.82rem; padding: 0 8px; }
  .opp-pg-nav { min-width: 36px; }
  .opp-pg-ellipsis { min-width: 22px; font-size: 0.9rem; }
}

/* ── Small phones: single-column cards ────────────────────────── */
@media (max-width: 420px) {
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .main-content-container { padding: 0 10px; }
    .section-title { font-size: 1.1rem; }
    .hero-carousel { height: 250px; }
    .hero-slide-title { font-size: 0.95rem; line-height: 1.4; }
    .hero-slide-content { padding: 14px 10px 45px; }
}

/* ── Prevent horizontal overflow on all screens ────────────────── */
html, body { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Footer color overrides — force white/primary, cancel all old yellow ── */
.footer-section h3 { color: rgba(255,255,255,0.95) !important; }
.footer-section h3::after { background: var(--primary) !important; background-image: none !important; }
.contact-item i { color: var(--primary) !important; }
/* Desktop: text-style links — icons show in primary colour on dark bg */
.social-link i { color: var(--primary) !important; }
.social-link { color: rgba(255,255,255,0.75) !important; }
.social-link:hover { background: transparent; }
.footer-btn { box-shadow: none !important; }
.footer-quote i { color: var(--primary) !important; }
.footer-credit i { color: var(--primary) !important; }

/* ── Tablets / Surface / iPad — icon buttons: white icons on coloured circles ── */
@media (max-width: 1280px) {
    .social-links { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
    .social-link { display: flex !important; width: 46px !important; height: 46px !important; border-radius: 50% !important; background: var(--primary) !important; color: #fff !important; justify-content: center; align-items: center; font-size: 1.1rem !important; padding: 0 !important; gap: 0; border: none; flex-shrink: 0; text-decoration: none; transition: background 0.2s; }
    .social-link i { color: #fff !important; font-size: 1.1rem !important; display: flex; align-items: center; justify-content: center; width: auto; }
    .social-link-label { display: none !important; }
    .social-link:hover { background: var(--primary-dark) !important; }
}

/* ── Home search bar ── */
.home-search-row { padding: 20px 0 4px; }
.home-search-wrap { position: relative; display: flex; align-items: center; max-width: 560px; }
.home-search-icon { position: absolute; left: 14px; color: var(--gray); font-size: 0.9rem; pointer-events: none; }
.home-search-input {
  width: 100%; padding: 11px 40px 11px 38px; border: 1px solid var(--light-gray);
  border-radius: 8px; font-size: 0.95rem; background: var(--card-bg); color: var(--text-color);
  outline: none; transition: border-color 0.2s;
}
.home-search-input:focus { border-color: var(--primary); }
.home-search-clear {
  position: absolute; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 0.85rem; padding: 4px;
}
.home-search-clear:hover { color: var(--primary); }
.dark-theme .home-search-input { background: var(--card-bg); border-color: var(--light-gray); }

/* ── Inline search inside section header ── */
.opp-inline-search {
  position: relative; display: flex; align-items: center; gap: 0;
}
.opp-inline-search i.fa-search {
  position: absolute; left: 10px; color: var(--gray); font-size: 0.8rem; pointer-events: none;
}
.opp-inline-search input {
  padding: 7px 32px 7px 30px; border: 1px solid var(--light-gray); border-radius: 6px;
  font-size: 0.85rem; background: var(--card-bg); color: var(--text-color); outline: none;
  width: 220px; transition: border-color 0.2s;
}
.opp-inline-search input:focus { border-color: var(--primary); }
.opp-inline-search button {
  position: absolute; right: 8px; background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 0.78rem; padding: 2px;
}
.opp-inline-search button:hover { color: var(--primary); }
.dark-theme .opp-inline-search input { background: var(--card-bg); border-color: var(--light-gray); }
@media (max-width: 600px) {
  .opp-inline-search input { width: 140px; }
  .home-search-wrap { max-width: 100%; }
}

/* ── No-image placeholder for opportunity cards ───────────────── */
.opp-no-img {
  background: linear-gradient(135deg, var(--primary) 0%, #0e6fa3 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opp-no-img i {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
/* ============================================
   INLINE STYLES FIX - CSP Compliance + React Overrides
   ============================================ */

/* Lock base font to 16px — matches original HTML */
html {
    font-size: 16px !important;
}

/* Card title: clamp to 2 lines on the text span only.
   The h3 itself stays position:relative so the absolute-positioned status badge works.
   Line-clamp is applied to the inner span so the status div doesn't interfere. */
.opportunity-title {
    overflow: visible !important;
    display: block !important;
    max-height: none !important;
}
.opportunity-title-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Always reserve space for exactly 2 lines so content below stays aligned */
    min-height: calc(0.95rem * 1.3 * 2) !important;
}

/* Cards: no border-radius, fill grid row height on desktop */
.opportunity-card {
    border-radius: 0 !important;
    height: 100% !important;
    margin-bottom: 0 !important;
}
@media (max-width: 768px) {
    .opportunity-card {
        height: auto !important;
    }
}

/* Featured badge — make it a proper pill, not just a bare star */
.opportunity-featured {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(20, 8, 8, 0.75) !important;
    color: var(--primary) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(4px) !important;
}
.opportunity-featured::after {
    content: 'Featured' !important;
    font-size: 0.6rem !important;
}

.opportunities-grid {
    align-items: stretch !important;
    row-gap: 20px !important;
}
@media (max-width: 768px) {
    .opportunities-grid {
        align-items: start !important;
        row-gap: 15px !important;
    }
    /* Taller image, compressed content to keep overall card height the same */
    .opportunities-grid .opportunity-image,
    .content-main .opportunity-image {
        height: 180px !important;
    }
    .opportunity-content {
        padding: 7px 10px !important;
    }
    .opportunity-title {
        margin-bottom: 3px !important;
    }
    .opportunity-meta {
        margin-bottom: 4px !important;
    }
    .opportunity-deadline {
        padding: 4px 8px !important;
    }
    .opportunity-organization {
        margin-top: 4px !important;
        padding-top: 4px !important;
    }
}

/* ============================================
   CARD IMAGE HEIGHT LOCK
   announcements.css sets .opportunity-image { height: 200px !important }
   opportunity-details.css sets .opportunity-image { height: 500px }
   Both are global and override the 140px standard card image height.
   ============================================ */
.opportunities-grid .opportunity-image {
    height: 180px !important;
    width: auto !important;
    object-fit: unset !important;
    display: block !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Opportunity details page - full hero image */
.opportunity-image-container .opportunity-image {
    height: 500px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 480px) {
    .opportunities-grid .opportunity-image {
        height: 170px !important;
    }
    
    .opportunity-image-container .opportunity-image {
        height: 300px !important;
    }
}

/* ============================================
   HERO CAROUSEL ISOLATION
   Page-specific CSS files (disclaimer, faq, services, full-story, etc.)
   set .hero-section { background: linear-gradient(primary); padding: 80px 0 }
   which bleeds into the home page carousel in the bundled React CSS.
   Scope reset to only the carousel hero using :has().
   ============================================ */
.hero-section:has(.hero-carousel) {
    background: none !important;
    padding: 0 !important;
}
.hero-section:has(.hero-carousel)::before {
    content: none !important;
    display: none !important;
}
/* Only force 500px on desktop — let media queries handle smaller screens */
@media (min-width: 1281px) {
    .hero-carousel {
        height: 500px !important;
    }
}
@media (max-width: 768px) {
    .hero-carousel {
        height: 300px !important;
    }
}
@media (max-width: 600px) {
    .hero-carousel {
        height: 280px !important;
    }
}

/* ============================================
   ORIGINAL INLINE STYLES FIX - CSP Compliance
   ============================================ */

/* Coming Soon Modal Styles */
.coming-soon-modal,
.coming-soon-modal-dark {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.coming-soon-modal {
    background: rgba(0, 0, 0, 0.5);
}

.coming-soon-modal-dark {
    background: rgba(0, 0, 0, 0.7);
}

.coming-soon-modal.show,
.coming-soon-modal-dark.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 0 1rem;
}

.coming-soon-content-alt {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.coming-soon-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.coming-soon-icon-alt {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
}

.coming-soon-title {
    margin-bottom: 1rem;
    color: #333;
}

.coming-soon-title-alt {
    margin-bottom: 15px;
    color: #333;
}

.coming-soon-text {
    margin-bottom: 1.5rem;
    color: #666;
}

.coming-soon-text-alt {
    color: #666;
    margin-bottom: 25px;
}

.coming-soon-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.coming-soon-button-alt {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.coming-soon-button-alt:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.3);
}

/* Skeleton Loading Styles */
.skeleton-line-95 {
    width: 95%;
    height: 20px;
    margin-bottom: 15px;
}

.skeleton-line-90 {
    width: 90%;
    height: 20px;
    margin-bottom: 15px;
}

.skeleton-line-85 {
    width: 85%;
    height: 20px;
    margin-bottom: 30px;
}

.skeleton-line-100 {
    width: 100%;
    height: 20px;
    margin-bottom: 15px;
}

.skeleton-title {
    width: 70%;
    height: 40px;
    margin-bottom: 2rem;
}

.skeleton-image {
    width: 150px;
    height: 50px;
    border-radius: 8px;
}

.skeleton-badge {
    width: 150px;
    height: 20px;
}

/* Hidden by default */
.hidden-inline {
    display: none;
}

/* Additional inline styles */
.flex-container-gap {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.flex-card-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
}

.flex-stats-container {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.flex-1 {
    flex: 1;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

.padding-2-5 {
    padding: 2.5rem;
}

.padding-2-0 {
    padding: 2rem 0;
}

.story-image {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.story-image-no-radius {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 0;
}

.story-image-large {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 0;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-small {
    width: 100px;
    height: 14px;
}

.skeleton-medium {
    width: 120px;
    height: 20px;
}

.skeleton-large {
    width: 150px;
    height: 18px;
    margin-bottom: 8px;
}

.skeleton-line-85-simple {
    width: 85%;
    height: 20px;
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Disclaimer Hero Section */
.announcements-hero {
    position: relative;
    height: 450px;
    background-image: url('../../static/images/announcements.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.announcements-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.announcements-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcements-hero .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.announcements-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.announcements-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.announcements-hero .hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .announcements-hero {
        height: 350px;
    }
    
    .announcements-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .announcements-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.05rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;

.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Disclaimer Content Styles */
.announcements-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.announcements-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.announcements-section h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .announcements-section {
    background: var(--header-bg);
    border-left-color: var(--primary);
}

.dark-theme .announcements-section h2 {
    border-bottom-color: var(--header-border);
}

.announcements-section p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.announcements-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.announcements-section a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .announcements-content {
        padding: 0 15px;
    }
    
    .announcements-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .announcements-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .announcements-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .announcements-section h2 {
        font-size: 1.1rem;
    }
    
    .announcements-section p {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
.announcements-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Card styles */
.announcement-card-cursor { cursor: pointer; }
.announcement-image-bg { background: linear-gradient(135deg, #16B2DC 0%, #0E8FB7 100%); display: flex; align-items: center; justify-content: center; }
.announcement-icon { font-size: 2rem; color: white; }
.body-mobile-padding { padding-top: 70px; }
.modal-show { opacity: 1; visibility: visible; }
.modal-hide { opacity: 0; visibility: hidden; }
.modal-scale-up { transform: scale(1); }
.modal-scale-down { transform: scale(0.7); }
.body-no-scroll { overflow: hidden; }
.notification-slide-out { animation: slideOut 0.3s ease; }
/* Modal styles */
.search-modal-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-content-style {
    background: var(--card-bg, white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.notification-style {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.notification-error {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.notification-warning {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.notification-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-icon {
    font-size: 16px;
}

.body-padding-mobile {
    padding-top: 70px;
}

.body-padding-desktop {
    padding-top: var(--header-height, 180px);
}

.body-padding-scrolled {
    padding-top: calc(var(--header-height, 180px) - 30px);
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: scale(1);
}

.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-body {
    padding: 25px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.dark-theme .setting-link {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.setting-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.setting-link i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
}

.setting-link:hover i {
    color: white;
}

.setting-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}

.done-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.done-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.opportunity-image-with-bg {
    background-size: cover;
    background-position: center;
}

.opportunity-image-with-bg[data-bg-image] {
    background-image: attr(data-bg-image url);
}
.announcements-grid {
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 25px !important;
}

@media (max-width: 1024px) {
    .announcements-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .announcements-grid .opportunity-card {
        min-height: 250px !important;
    }
    
    .announcements-grid .opportunity-image {
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal .opportunity-excerpt {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal {
        height: 120px !important;
        min-height: 120px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-image {
        width: 40% !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-content {
        width: 60% !important;
        padding: 10px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta {
        font-size: 0.7rem !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta span:not(:first-child) {
        display: none !important;
    }
}

.opportunity-card {
    width: 100% !important;
    min-height: 320px !important;
}
.opportunity-image {
    height: 200px !important;
}

.opportunity-content {
    flex: 1 !important;
}
.opportunity-excerpt {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.opportunity-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    height: 160px !important;
    min-height: 160px !important;
}

.opportunity-card-horizontal .opportunity-image {
    width: 30% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}

.opportunity-card-horizontal .opportunity-content {
    width: 70% !important;
    padding: 15px !important;
}

@media (max-width: 1024px) {
    .opportunity-card-horizontal {
        height: 80px !important;
        min-height: 80px !important;
    }
    
    .opportunity-card-horizontal .opportunity-content {
        padding: 8px !important;
    }
}

/* ============================================================
   ANNOUNCEMENTS PAGE — Magazine Style
   ============================================================ */

/* ── Search bar (standalone, no hero) ── */
.ann-search-bar-wrap {
    margin-bottom: 20px;
}
.ann-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    padding: 12px 16px;
}
.ann-search-wrap i.fa-search { color: var(--primary); flex-shrink: 0; }
.ann-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
    background: transparent;
}
.ann-search-wrap input::placeholder { color: var(--gray); }
.ann-search-wrap button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
}
.ann-search-wrap button:hover { color: var(--primary); }

/* ── Section label (Top Stories header) ── */
.ann-section-label {
    margin-bottom: 14px;
}
.ann-section-label-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
}
.ann-section-label-primary {
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ann-section-label-sub {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}

/* ── Chips ── */
.ann-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    flex-shrink: 0;
}
.ann-chip-primary { background: var(--primary); color: white; }
.ann-chip-white   { background: rgba(255,255,255,0.9); color: var(--primary); }
.ann-chip-expired { background: #f8d7da; color: #842029; }
.ann-chip-green   { background: #d1e7dd; color: #0f5132; }
.ann-chip-blue    { background: #cfe2ff; color: #084298; }

/* ── Cover Story ── */
.ann-top-grid {
    display: block;
    max-width: 680px;
}
.ann-top-grid.ann-top-grid-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    align-items: stretch;
    max-width: none;
}

.ann-cover {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-cover:hover .ann-cover-bg { transform: scale(1); }
.ann-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.5s ease;
}
.ann-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}
.ann-cover-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 30px;
    color: white;
}
.ann-cover-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ann-cover-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-excerpt {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0 0 14px;
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    opacity: 0.82;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 12px;
}
.ann-cover-meta span { display: flex; align-items: center; gap: 5px; }
.ann-cover-readmore {
    margin-left: auto;
    background: var(--primary);
    opacity: 1 !important;
    color: white;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.ann-cover:hover .ann-cover-readmore { background: var(--primary-dark); }

/* ── Secondary overlay cards ── */
.ann-secondary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ann-overlay-card {
    position: relative;
    flex: 1;
    min-height: 190px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-overlay-card:hover .ann-overlay-bg { transform: scale(1.05); }
.ann-overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.45s ease;
}
.ann-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.ann-overlay-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    color: white;
}
.ann-overlay-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 7px 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ann-overlay-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.73rem;
    opacity: 0.8;
}
.ann-overlay-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Regular cards grid ── */
.ann-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.ann-card {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ann-card:hover {
    box-shadow: 0 8px 28px rgba(22,178,220,0.14);
    transform: translateY(-3px);
}

.ann-card-img-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    flex-shrink: 0;
}
.ann-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.4s ease;
}
.ann-card:hover .ann-card-img { transform: scale(1.04); }
.ann-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.ann-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ann-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}
.ann-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-excerpt {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
    margin-top: auto;
}
.ann-card-org {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ann-card-footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ann-card-footer-right span { display: flex; align-items: center; gap: 4px; }

/* ── Total count ── */
.ann-total {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

/* ── Loading / Empty ── */
.ann-loading, .ann-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--gray);
}
.ann-loading i, .ann-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
    opacity: 0.45;
}
.ann-empty h3 { color: var(--text-color); margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr 300px;
    }
    .ann-cover { height: 360px; }
    .ann-overlay-card { min-height: 165px; }
    .ann-cover-readmore { display: none; }
}

@media (max-width: 768px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr;
    }
    .ann-secondary-col { flex-direction: row; }
    .ann-overlay-card { min-height: 150px; }

    .ann-cover { height: 300px; }
    .ann-cover-title { font-size: 1.2rem; -webkit-line-clamp: 2; }
    .ann-cover-excerpt { -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 16px 16px; }
    .ann-cover-readmore { display: none; }

    .ann-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ann-cover { height: 260px; }
    .ann-cover-excerpt { display: none; }
    .ann-cover-title { font-size: 1.1rem; -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 14px 14px; }
    .ann-secondary-col { flex-direction: column; }
    .ann-grid { gap: 14px; }
}

/* ── Latest Announcements Grid ── */
.ann-carousel-wrap {
    width: 100%;
}
.ann-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ann-carousel .ann-card {
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .ann-carousel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ann-carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ann-carousel { grid-template-columns: 1fr; }
}

/* ── Announcement Detail Page ── */
.ann-detail {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    margin-bottom: 30px;
    overflow: hidden;
}
.ann-detail-hero {
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.ann-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ann-detail-body {
    padding: 36px 40px;
}
.ann-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ann-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}
.ann-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-detail-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}
.ann-detail-divider {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 20px 0 28px;
}
.ann-detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-bottom: 32px;
}
.ann-detail-content p {
    margin-bottom: 1.2rem;
}
.ann-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ann-back-btn:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
    .ann-detail-body { padding: 20px; }
    .ann-detail-title { font-size: 1.5rem; }
    .ann-detail-hero { height: 340px; }
}
@media (max-width: 480px) {
    .ann-detail-hero { height: 260px; }
}

/* ── Contact page ─────────────────────────────────────────────── */
.contact-page-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}
.contact-page-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-page-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary-light, #eef3ff);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}
.contact-page-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.contact-page-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.contact-page-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
a.contact-page-value:hover { color: var(--primary); }

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: var(--hover-bg);
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    padding-right: 40px;
    position: relative;
}

.setting-select::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.settings-done {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-hover);
}

:root {
    --border-color: var(--light-gray);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --input-bg: var(--card-bg);
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
}

.dark-theme {
    --border-color: var(--header-border);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: var(--header-bg);
}

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Team Section Styles */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(22, 178, 220, 0.15);
    border-color: var(--primary);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 0 20px 0;
    overflow: hidden;
    border: 4px solid var(--primary);
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.team-position {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.team-social {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.team-social-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: white !important;
}

.team-social-link.linkedin { background: #0077b5 !important; }
.team-social-link.facebook { background: #1877f2 !important; }
.team-social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.team-social-link.twitter { background: #1da1f2 !important; }
.team-social-link.email { background: #ea4335 !important; }

.no-team-message {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 2rem;
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: var(--card-bg, white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.search-modal-overlay.show .search-modal-content {
    transform: scale(1);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.error-notification {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.warning-notification {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.success-notification {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-icon {
    font-size: 16px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 1024px) {
    .team-grid {
        gap: 25px;
    }
    
    .team-card {
        padding: 25px 15px;
        max-width: 100%;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
    }
    
    .team-avatar-placeholder {
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-social {
        gap: 12px;
    }
    
    .team-social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* About Us Hero Section */
.aboutus-hero {
    position: relative;
    height: 450px;
    background-image: url('../../static/images/aboutus.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.aboutus-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.aboutus-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aboutus-hero .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.aboutus-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.aboutus-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.aboutus-hero .hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .aboutus-hero {
        height: 350px;
    }
    
    .aboutus-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .aboutus-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;

.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* About Us Content Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.about-section h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .about-section {
    background: var(--header-bg);
    border-left-color: var(--primary);
}

.dark-theme .about-section h2 {
    border-bottom-color: var(--header-border);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

.settings-link i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i {
    color: white;
}

.dark-theme .settings-link:hover {
    background: var(--primary);
    color: white;
}

.about-section p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 15px;
}

.about-section ul {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section li {
    margin-bottom: 8px;
}

.about-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .about-content {
        padding: 0 15px;
    }
    
    .about-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .about-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .about-section h2 {
        font-size: 1.1rem;
    }
    
    .about-section p {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* ── Community Page ── */
/* main-content-container already provides max-width + padding — just override display */
.comm-page-root {
  display: block !important;
}

/* ── Hero Banner ── */
.comm-hero {
  padding: 8px 4px 24px;
  margin-bottom: 0;
}

.comm-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 8px;
  line-height: 1.15;
}

.comm-hero-subtitle {
  font-size: 0.93rem;
  color: var(--gray);
  margin: 0;
  max-width: 580px;
  line-height: 1.65;
}

/* ── Stats bar (below guidelines) ── */
.comm-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 28px;
  padding: 0 2px;
}

.comm-stats-item {
  font-size: 0.85rem;
  color: var(--gray);
}

.comm-stats-item strong {
  font-weight: 700;
  color: var(--text-color);
  font-size: 0.85rem;
}

.comm-stats-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--light-gray);
  margin: 0 12px;
  flex-shrink: 0;
}

/* ── Community Guidelines Section ── */
/* ── Community Guidelines Section ── */
.comm-guidelines-section {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.comm-guidelines-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 12px;
}

.comm-guidelines-intro {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--light-gray);
}

.comm-guidelines-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.comm-guideline-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--light-gray);
}

.comm-guideline-item:nth-child(odd) {
  border-right: 1px solid var(--light-gray);
}

.comm-guideline-item:last-child:nth-child(odd) {
  border-right: none;
}

.comm-guideline-item:nth-last-child(-n+2):not(:nth-child(odd):last-child) {
  border-bottom: none;
}

.comm-guideline-item:last-child {
  border-bottom: none;
}

.comm-guideline-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 20px;
  padding-top: 1px;
  line-height: 1.4;
}

.comm-guideline-body {
  min-width: 0;
}

.comm-guideline-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.comm-guideline-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

.comm-guidelines-note {
  background: rgba(22,178,220,0.06);
  border: 1px solid rgba(22,178,220,0.18);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.6;
}

.comm-guidelines-note strong {
  color: var(--primary);
}

/* ── Section divider ── */
.comm-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}

.comm-section-divider::before,
.comm-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.comm-section-divider span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Ask button (used in panels) ── */
.comm-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-ask-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Topics header + search ── */
.comm-topics-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.comm-topics-hint {
  font-size: 0.83rem;
  color: var(--gray);
  margin: 4px 0 0;
}

.comm-topic-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 220px;
  transition: border-color 0.2s;
}

.comm-topic-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,178,220,0.1);
}

.comm-topic-search i {
  color: var(--gray);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.comm-topic-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 0.88rem;
  outline: none;
  min-width: 0;
}

.comm-topic-search button {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1;
}

.comm-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  color: var(--gray);
  gap: 12px;
  text-align: center;
}

.comm-no-results i { font-size: 2.5rem; opacity: 0.3; }
.comm-no-results p { margin: 0; font-size: 0.95rem; }

/* ── Group label ── */
.comm-group {
  margin-bottom: 28px;
}

.comm-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
}

.comm-group-label-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Topic cards grid ── */
.comm-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.comm-topic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.comm-topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--topic-color, var(--primary));
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 16px 16px 0 0;
}

.comm-topic-card:hover,
.comm-topic-card.active {
  border-color: var(--topic-color, var(--primary));
  box-shadow: 0 6px 24px rgba(22,178,220,0.13);
  transform: translateY(-3px);
}

.comm-topic-card:hover::before,
.comm-topic-card.active::before { opacity: 1; }

.comm-topic-card.active {
  background: color-mix(in srgb, var(--topic-color, var(--primary)) 6%, var(--card-bg));
}

.comm-topic-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.comm-topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comm-topic-info { min-width: 0; }

.comm-topic-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 6px;
  line-height: 1.3;
}

.comm-topic-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray);
}

.comm-topic-count i {
  color: var(--primary);
  font-size: 0.72rem;
}

.comm-topic-arrow {
  color: var(--light-gray);
  font-size: 0.75rem;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .comm-topic-arrow { display: none; }
}

.comm-topic-card:hover .comm-topic-arrow {
  color: var(--topic-color, var(--primary));
}

.comm-topic-arrow.rotated {
  transform: rotate(90deg);
  color: var(--topic-color, var(--primary));
}

/* ── Topic panel ── */
/* ── Topic Modal Overlay ── */
.comm-topic-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: comm-fade-in 0.18s ease;
}

@keyframes comm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.comm-topic-modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
  animation: comm-slide-up 0.24s ease;
}

@keyframes comm-slide-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.comm-topic-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--primary);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.comm-topic-modal-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.comm-topic-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.comm-topic-modal-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin: 0 0 2px;
}

.comm-topic-modal-count {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.75);
  display: block;
}

.comm-topic-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.comm-topic-modal-actions .comm-btn-ask {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
}

.comm-topic-modal-actions .comm-btn-ask:hover {
  background: rgba(255,255,255,0.32);
  transform: none;
}

.comm-btn-ask {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-btn-ask:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.comm-topic-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.comm-panel-loading,
.comm-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  color: var(--gray);
  gap: 12px;
  text-align: center;
}

.comm-panel-loading i,
.comm-panel-empty i { font-size: 2.4rem; opacity: 0.25; }
.comm-panel-empty p { margin: 0 0 14px; font-size: 0.93rem; }

/* ── View More ── */
.comm-viewmore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  background: transparent;
  border: 1px dashed var(--light-gray);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-viewmore-btn:hover {
  background: rgba(22,178,220,0.06);
  border-color: var(--primary);
}

.comm-viewmore-btn-sm {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.78rem;
}

/* ── Discussion cards ── */
.comm-discussions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comm-discussion-card {
  border: 1px solid var(--light-gray);
  border-radius: 11px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comm-discussion-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(22,178,220,0.1);
}

.comm-discussion-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--card-bg);
  user-select: none;
}

.comm-discussion-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.comm-discussion-info { flex: 1; min-width: 0; }

.comm-discussion-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 5px;
  line-height: 1.3;
}

.comm-discussion-content {
  font-size: 0.83rem;
  color: var(--gray);
  margin: 0 0 7px;
  line-height: 1.5;
}

.comm-discussion-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--gray);
}

.comm-discussion-meta i { margin-right: 4px; color: var(--primary); }

.comm-anon-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(22,178,220,0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.comm-anon-tag i { margin-right: 0 !important; color: var(--primary) !important; }

.comm-discussion-toggle {
  color: var(--gray);
  font-size: 0.76rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Replies ── */
.comm-replies {
  background: var(--light, #f7f9fb);
  border-top: 1px solid var(--light-gray);
  padding: 14px 16px 12px;
}

.dark-theme .comm-replies {
  background: rgba(255,255,255,0.03);
}

.comm-replies-loading {
  color: var(--gray);
  font-size: 0.83rem;
  padding: 6px 0;
}

.comm-no-replies {
  color: var(--gray);
  font-size: 0.83rem;
  font-style: italic;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.comm-reply {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comm-reply-num {
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.63rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 3px;
}

.comm-reply-body {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 9px;
  padding: 9px 13px;
}

.comm-reply-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--text-color);
}

.comm-reply-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comm-reply-time {
  font-size: 0.73rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.comm-reply-actions {
  margin-top: 8px;
}

.comm-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-reply-toggle:hover {
  background: var(--primary);
  color: white;
}

/* ── Reply form ── */
.comm-reply-form {
  margin-top: 10px;
}

.comm-reply-form-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comm-reply-form-inner textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.85rem;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.comm-reply-form-inner textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comm-reply-form-inner button {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-reply-form-inner button:hover:not(:disabled) {
  background: var(--primary-dark);
}

.comm-reply-form-inner button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Agree checkbox ── */
.comm-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.4;
}

.comm-agree-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.comm-agree-label-sm {
  font-size: 0.78rem;
}

/* ── Modal ── */
.comm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comm-modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: commModalIn 0.25s ease;
}

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

.comm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.comm-modal-header h3 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.comm-modal-close {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.comm-modal-close:hover { background: rgba(255,255,255,0.35); }

.comm-modal-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22,178,220,0.08);
  border-bottom: 1px solid rgba(22,178,220,0.15);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--primary);
}

.comm-modal-notice i { font-size: 1rem; flex-shrink: 0; }

.comm-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comm-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comm-form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-color);
}

.comm-form-group input,
.comm-form-group select,
.comm-form-group textarea {
  padding: 9px 13px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.comm-form-group input:focus,
.comm-form-group select:focus,
.comm-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,178,220,0.1);
}

.comm-form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.comm-form-group small {
  font-size: 0.73rem;
  color: var(--gray);
  text-align: right;
}

.comm-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comm-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.comm-btn-cancel {
  padding: 9px 18px;
  border: 1px solid var(--light-gray);
  background: transparent;
  color: var(--gray);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-btn-cancel:hover {
  border-color: var(--gray);
  color: var(--text-color);
}

.comm-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.comm-btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.comm-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .comm-topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .comm-hero { padding: 4px 2px 20px; }
  .comm-hero-title { font-size: 1.5rem; }
  .comm-hero-subtitle { font-size: 0.88rem; }
  .comm-guidelines-section { padding: 22px 20px; }
  .comm-guidelines-list { grid-template-columns: 1fr; }
  .comm-guideline-item:nth-child(odd) { border-right: none; }
  .comm-guideline-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--light-gray); }
  .comm-guideline-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .comm-topic-modal-header {
    flex-wrap: nowrap;
  }
  .comm-topic-modal-actions {
    flex-shrink: 0;
  }
  .comm-topics-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .comm-topic-search {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .comm-hero-title { font-size: 1.3rem; }
  .comm-hero-subtitle { font-size: 0.84rem; }
}

/* ── Mobile modal: keep centered, just tighter padding ── */
@media (max-width: 640px) {
  .comm-topic-modal-backdrop {
    padding: 12px;
    align-items: center;
  }

  .comm-topic-modal {
    border-radius: 14px;
    max-height: 90vh;
  }

  .comm-topic-modal-header {
    padding: 14px 16px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .comm-topic-modal-actions {
    flex-shrink: 0;
  }

  .comm-topic-modal-body {
    padding: 14px 16px;
  }

  /* ── Topic cards: switch to horizontal row layout on mobile ── */
  .comm-topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .comm-topic-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    min-height: unset;
    border-radius: 13px;
  }

  /* icon-top block becomes a plain flex-shrink wrapper */
  .comm-topic-card-top {
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  /* hide the chevron arrow — card hover/cursor signals clickability */
  .comm-topic-arrow {
    display: none;
  }

  .comm-topic-icon {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .comm-topic-info {
    flex: 1;
    min-width: 0;
  }

  .comm-topic-label {
    font-size: 0.86rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .comm-topic-count {
    font-size: 0.74rem;
  }
}

@media (max-width: 560px) {
  .comm-guidelines {
    grid-template-columns: 1fr;
  }

  .comm-topic-modal-title h3 {
    font-size: 0.95rem;
  }

  .comm-topic-modal-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .comm-discussion-header {
    padding: 12px;
    gap: 8px;
  }

  .comm-discussion-num {
    width: 28px;
    height: 28px;
    font-size: 0.62rem;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .comm-discussion-title { font-size: 0.88rem; }
  .comm-discussion-content { font-size: 0.8rem; }

  .comm-discussion-meta {
    gap: 8px;
    font-size: 0.72rem;
    flex-wrap: wrap;
  }

  .comm-discussion-toggle {
    font-size: 0.7rem;
    margin-top: 6px;
  }

  .comm-replies { padding: 12px 10px 10px; }

  .comm-reply { gap: 7px; margin-bottom: 8px; }

  .comm-reply-num {
    width: 22px;
    height: 22px;
    font-size: 0.58rem;
    border-radius: 6px;
  }

  .comm-reply-body {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .comm-reply-body p { font-size: 0.82rem; }
  .comm-reply-time { font-size: 0.68rem; }

  .comm-reply-form-inner textarea {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .comm-reply-form-inner button {
    align-self: stretch;
    justify-content: center;
    padding: 9px 14px;
  }

  .comm-agree-label { font-size: 0.76rem; }
  .comm-viewmore-btn { padding: 8px; font-size: 0.78rem; }
  .comm-discussions-list { gap: 8px; }
}

@media (max-width: 560px) {
  .comm-topics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* single-column: restore vertical card layout with proper spacing */
  .comm-topic-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    min-height: 90px;
  }

  .comm-topic-card-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }

  .comm-topic-arrow {
    display: block;
  }

  .comm-topic-info {
    flex: unset;
  }

  .comm-topic-label {
    font-size: 0.92rem;
  }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Import announcements styles */
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}
.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }
/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }
.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }
.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }
.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }
.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }
/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }
/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}
.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@keyframes pulse-fire {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}
.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}
.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }
/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}
.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}
@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }
/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }
/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }
/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }
.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }
/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}
.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}
/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}
.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}
.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}
.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}
.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.view-more-btn i {
    margin-right: 8px;
}
.sidebar-title-spacing {
    margin-top: 15px;
}
.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}
.contact-email:hover {
    color: #FFD700;
}
.support-title {
    margin-top: 30px;
}
.footer-quote i {
    color: #FFD700;
}
.footer-quote .fa-quote-left {
    margin-right: 8px;
}
.footer-quote .fa-quote-right {
    margin-left: 8px;
}
.footer-link:hover {
    color: #FFD700;
}
.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}
.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}
.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }
/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }
/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }
/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }
.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }
/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}
.language-options::-webkit-scrollbar {
    width: 6px;
}
.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }
@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }
/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }
@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }
/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }
/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}
@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}
@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}
/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}
.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}
.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}
.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}
.modal-body {
    padding: 20px;
}
.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.feedback-modal {
    max-height: 80vh;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
/* Search error styling */
.search-error {
    color: red;
}
/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}
.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}
.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}
.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 60%;
}
.skeleton-text.medium {
    width: 80%;
}
.skeleton-text.long {
    width: 100%;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* Hidden content classes */
.hidden-content {
    display: none !important;
}
.visible-content {
    display: block !important;
}
.visible-grid {
    display: grid !important;
}
@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}
/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}
.security-indicator i {
    color: var(--success-color, #10b981);
}
.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}
.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}
.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.validation-error i {
    font-size: 0.7rem;
}
.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.security-badge i {
    font-size: 0.6rem;
}
/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.connect-modal.show {
    opacity: 1;
    visibility: visible;
}
.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}
.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}
.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}
.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.connect-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}
.connect-modal-body {
    padding: 30px 25px;
}
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
.social-btn:hover::before {
    left: 100%;
}
.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}
.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}
.social-btn-content {
    flex: 1;
}
.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}
.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}
.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}
.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}
.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}
.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}
.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}
/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}
.dark-theme .validation-error {
    color: #f87171;
}
.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}
.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}
/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}
.security-badge i {
    font-size: 16px;
}
/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
.input-secure {
    border-color: #16a34a !important;
}
/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}
/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Disclaimer Hero Section */
.announcements-hero {
    position: relative;
    height: 450px;
    background-image: url('../../static/images/announcements.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.announcements-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.announcements-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-hero .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}
.announcements-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.announcements-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.announcements-hero .hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .announcements-hero {
        height: 350px;
    }
    
    .announcements-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .announcements-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}
gap: 12px;
background: rgba(255,255,255,0.15);
padding: 18px 30px;
border-radius: 50px;
border: 1px solid rgba(255,255,255,0.25);
font-size: 1.05rem;
font-weight: 500;
backdrop-filter: blur(10px);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: all 0.3s ease;
.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}
/* Disclaimer Content Styles */
.announcements-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}
.announcements-section h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}
.dark-theme .announcements-section {
    background: var(--header-bg);
    border-left-color: var(--primary);
}
.dark-theme .announcements-section h2 {
    border-bottom-color: var(--header-border);
}
.announcements-section p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}
.announcements-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.announcements-section a:hover {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .announcements-content {
        padding: 0 15px;
    }
    
    .announcements-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .announcements-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .announcements-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .announcements-section h2 {
        font-size: 1.1rem;
    }
    
    .announcements-section p {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
.announcements-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Card styles */
.announcement-card-cursor { cursor: pointer; }
.announcement-image-bg { background: linear-gradient(135deg, #16B2DC 0%, #0E8FB7 100%); display: flex; align-items: center; justify-content: center; }
.announcement-icon { font-size: 2rem; color: white; }
.body-mobile-padding { padding-top: 70px; }
.modal-show { opacity: 1; visibility: visible; }
.modal-hide { opacity: 0; visibility: hidden; }
.modal-scale-up { transform: scale(1); }
.modal-scale-down { transform: scale(0.7); }
.body-no-scroll { overflow: hidden; }
.notification-slide-out { animation: slideOut 0.3s ease; }
/* Modal styles */
.search-modal-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-content-style {
    background: var(--card-bg, white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.notification-style {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}
.notification-error {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.notification-warning {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.notification-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.notification-icon {
    font-size: 16px;
}
.body-padding-mobile {
    padding-top: 70px;
}
.body-padding-desktop {
    padding-top: var(--header-height, 180px);
}
.body-padding-scrolled {
    padding-top: calc(var(--header-height, 180px) - 30px);
}
/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.settings-popup.show {
    opacity: 1;
    visibility: visible;
}
.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.settings-popup.show .settings-content {
    transform: scale(1);
}
.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.settings-body {
    padding: 25px;
}
.setting-item {
    margin-bottom: 20px;
}
.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}
.setting-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.dark-theme .setting-link {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.setting-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}
.setting-link i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
}
.setting-link:hover i {
    color: white;
}
.setting-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}
.settings-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}
.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}
.done-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.done-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.opportunity-image-with-bg {
    background-size: cover;
    background-position: center;
}
.opportunity-image-with-bg[data-bg-image] {
    background-image: attr(data-bg-image url);
}
.announcements-grid {
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 25px !important;
}
@media (max-width: 1024px) {
    .announcements-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .announcements-grid .opportunity-card {
        min-height: 250px !important;
    }
    
    .announcements-grid .opportunity-image {
        height: 150px !important;
    }
}
@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal .opportunity-excerpt {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal {
        height: 120px !important;
        min-height: 120px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-image {
        width: 40% !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-content {
        width: 60% !important;
        padding: 10px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta {
        font-size: 0.7rem !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta span:not(:first-child) {
        display: none !important;
    }
}
.opportunity-card {
    width: 100% !important;
    min-height: 320px !important;
}
.opportunity-image {
    height: 200px !important;
}
.opportunity-content {
    flex: 1 !important;
}
.opportunity-excerpt {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.opportunity-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    height: 160px !important;
    min-height: 160px !important;
}
.opportunity-card-horizontal .opportunity-image {
    width: 30% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}
.opportunity-card-horizontal .opportunity-content {
    width: 70% !important;
    padding: 15px !important;
}
@media (max-width: 1024px) {
    .opportunity-card-horizontal {
        height: 80px !important;
        min-height: 80px !important;
    }
    
    .opportunity-card-horizontal .opportunity-content {
        padding: 8px !important;
    }
}
/* ============================================================
   ANNOUNCEMENTS PAGE — Magazine Style
   ============================================================ */
/* ── Search bar (standalone, no hero) ── */
.ann-search-bar-wrap {
    margin-bottom: 20px;
}
.ann-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    padding: 12px 16px;
}
.ann-search-wrap i.fa-search { color: var(--primary); flex-shrink: 0; }
.ann-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
    background: transparent;
}
.ann-search-wrap input::placeholder { color: var(--gray); }
.ann-search-wrap button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
}
.ann-search-wrap button:hover { color: var(--primary); }
/* ── Section label (Top Stories header) ── */
.ann-section-label {
    margin-bottom: 14px;
}
.ann-section-label-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
}
.ann-section-label-primary {
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ann-section-label-sub {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}
/* ── Chips ── */
.ann-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    flex-shrink: 0;
}
.ann-chip-primary { background: var(--primary); color: white; }
.ann-chip-white   { background: rgba(255,255,255,0.9); color: var(--primary); }
.ann-chip-expired { background: #f8d7da; color: #842029; }
.ann-chip-green   { background: #d1e7dd; color: #0f5132; }
.ann-chip-blue    { background: #cfe2ff; color: #084298; }
/* ── Cover Story ── */
.ann-top-grid {
    display: block;
    max-width: 680px;
}
.ann-top-grid.ann-top-grid-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    align-items: stretch;
    max-width: none;
}
.ann-cover {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-cover:hover .ann-cover-bg { transform: scale(1); }
.ann-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.5s ease;
}
.ann-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}
.ann-cover-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 30px;
    color: white;
}
.ann-cover-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ann-cover-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-excerpt {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0 0 14px;
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    opacity: 0.82;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 12px;
}
.ann-cover-meta span { display: flex; align-items: center; gap: 5px; }
.ann-cover-readmore {
    margin-left: auto;
    background: var(--primary);
    opacity: 1 !important;
    color: white;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.ann-cover:hover .ann-cover-readmore { background: var(--primary-dark); }
/* ── Secondary overlay cards ── */
.ann-secondary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ann-overlay-card {
    position: relative;
    flex: 1;
    min-height: 190px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-overlay-card:hover .ann-overlay-bg { transform: scale(1.05); }
.ann-overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.45s ease;
}
.ann-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.ann-overlay-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    color: white;
}
.ann-overlay-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 7px 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ann-overlay-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.73rem;
    opacity: 0.8;
}
.ann-overlay-meta span { display: flex; align-items: center; gap: 4px; }
/* ── Regular cards grid ── */
.ann-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.ann-card {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ann-card:hover {
    box-shadow: 0 8px 28px rgba(22,178,220,0.14);
    transform: translateY(-3px);
}
.ann-card-img-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    flex-shrink: 0;
}
.ann-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.4s ease;
}
.ann-card:hover .ann-card-img { transform: scale(1.04); }
.ann-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.ann-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ann-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}
.ann-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-excerpt {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
    margin-top: auto;
}
.ann-card-org {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ann-card-footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ann-card-footer-right span { display: flex; align-items: center; gap: 4px; }
/* ── Total count ── */
.ann-total {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}
/* ── Loading / Empty ── */
.ann-loading, .ann-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--gray);
}
.ann-loading i, .ann-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
    opacity: 0.45;
}
.ann-empty h3 { color: var(--text-color); margin-bottom: 6px; }
/* ── Responsive ── */
@media (max-width: 1024px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr 300px;
    }
    .ann-cover { height: 360px; }
    .ann-overlay-card { min-height: 165px; }
    .ann-cover-readmore { display: none; }
}
@media (max-width: 768px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr;
    }
    .ann-secondary-col { flex-direction: row; }
    .ann-overlay-card { min-height: 150px; }

    .ann-cover { height: 300px; }
    .ann-cover-title { font-size: 1.2rem; -webkit-line-clamp: 2; }
    .ann-cover-excerpt { -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 16px 16px; }
    .ann-cover-readmore { display: none; }

    .ann-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ann-cover { height: 260px; }
    .ann-cover-excerpt { display: none; }
    .ann-cover-title { font-size: 1.1rem; -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 14px 14px; }
    .ann-secondary-col { flex-direction: column; }
    .ann-grid { gap: 14px; }
}
/* ── Latest Announcements Grid ── */
.ann-carousel-wrap {
    width: 100%;
}
.ann-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ann-carousel .ann-card {
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .ann-carousel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ann-carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ann-carousel { grid-template-columns: 1fr; }
}
/* ── Announcement Detail Page ── */
.ann-detail {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    margin-bottom: 30px;
    overflow: hidden;
}
.ann-detail-hero {
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.ann-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ann-detail-body {
    padding: 36px 40px;
}
.ann-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ann-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}
.ann-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-detail-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}
.ann-detail-divider {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 20px 0 28px;
}
.ann-detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-bottom: 32px;
}
.ann-detail-content p {
    margin-bottom: 1.2rem;
}
.ann-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ann-back-btn:hover { background: var(--primary-dark); }
@media (max-width: 768px) {
    .ann-detail-body { padding: 20px; }
    .ann-detail-title { font-size: 1.5rem; }
    .ann-detail-hero { height: 340px; }
}
@media (max-width: 480px) {
    .ann-detail-hero { height: 260px; }
}
/* ── Contact page ─────────────────────────────────────────────── */
.contact-page-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}
.contact-page-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-page-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary-light, #eef3ff);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}
.contact-page-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.contact-page-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.contact-page-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
a.contact-page-value:hover { color: var(--primary); }
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }
/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.settings-popup.show {
    opacity: 1;
    visibility: visible;
}
.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.settings-popup.show .settings-content {
    transform: scale(1);
}
.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.settings-body {
    padding: 25px;
}
.setting-item {
    margin-bottom: 20px;
}
.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}
.setting-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.dark-theme .setting-link {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.setting-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}
.setting-link i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
}
.setting-link:hover i {
    color: white;
}
.setting-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}
.settings-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}
.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}
.done-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.done-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
/* Blog-specific overrides */
.blogs-grid {
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 25px !important;
}
/* No blogs card styling */
.no-blogs-card {
    grid-column: 1 / -1;
    min-height: 300px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--card-bg) !important;
    border: 2px dashed var(--light-gray) !important;
}
.no-blogs-content {
    text-align: center;
    padding: 40px 20px;
}
.no-blogs-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.7;
}
.no-blogs-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}
.no-blogs-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}
@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .blogs-grid .opportunity-card {
        min-height: 250px !important;
    }
    
    .blogs-grid .opportunity-image {
        height: 150px !important;
    }
}
.blogs-grid .opportunity-card {
    width: 100% !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}
.blogs-grid .opportunity-card:hover {
    transform: translateY(-5px) !important;
}
.blogs-grid .opportunity-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    height: 150px !important;
    min-height: 150px !important;
}
.blogs-grid .opportunity-card-horizontal .opportunity-image {
    width: 25% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}
.blogs-grid .opportunity-card-horizontal .opportunity-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px 0 0 8px !important;
}
.blogs-grid .opportunity-card-horizontal .opportunity-content {
    width: 75% !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--card-bg) !important;
    position: relative !important;
}
.blogs-grid .opportunity-image {
    height: 200px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    background: var(--light-gray) !important;
}
.blogs-grid .opportunity-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: var(--card-bg) !important;
}
.opportunity-card .opportunity-image img {
    border-radius: 0 !important;
}
.blogs-grid .opportunity-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    min-height: 120px !important;
    background: var(--card-bg) !important;
    position: relative !important;
}
.blog-actions {
    margin: 10px 0 !important;
}
@media (max-width: 480px) {
    .blogs-grid .opportunity-card-horizontal .opportunity-meta span:not(:first-child) {
        display: none !important;
    }
    
    .blogs-grid .opportunity-card-horizontal .opportunity-excerpt {
        display: none !important;
    }
    
    .blogs-grid .opportunity-card-horizontal .opportunity-image {
        width: 40% !important;
    }
    
    .blogs-grid .opportunity-card-horizontal .opportunity-content {
        width: 60% !important;
    }
}
/* ============================================================
   BLOGS PAGE — Magazine Style
   ============================================================ */
/* ── Chips ── */
.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}
.blog-chip-primary { background: var(--primary); color: white; }
.blog-chip-gold    { background: #FFD700; color: #333; }
/* ── Cover Post ── */
.blog-cover {
    position: relative;
    height: 460px;
    overflow: hidden;
    cursor: pointer;
}
.blog-cover:hover .blog-cover-bg { transform: scale(1.03); }
.blog-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.5s ease;
}
.blog-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%);
}
.blog-cover-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 36px;
    color: white;
}
.blog-cover-chips {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-cover-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    max-width: 720px;
}
.blog-cover-excerpt {
    font-size: 0.92rem;
    opacity: 0.88;
    margin: 0 0 16px;
    line-height: 1.55;
    max-width: 620px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    opacity: 0.85;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 14px;
}
.blog-cover-meta span { display: flex; align-items: center; gap: 5px; }
.blog-cover-cta {
    margin-left: auto;
    background: var(--primary) !important;
    opacity: 1 !important;
    color: white;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 2px;
    display: flex !important;
    align-items: center;
    gap: 7px;
}
.blog-cover:hover .blog-cover-cta { background: var(--primary-dark) !important; }
/* ── Author row ── */
.blog-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.blog-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
/* ── Cards grid ── */
.blog-total {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: 0 8px 28px rgba(22,178,220,0.14);
    transform: translateY(-3px);
}
.blog-card-img-wrap {
    position: relative;
    height: 185px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-featured {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FFD700;
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
}
.blog-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
    margin-top: auto;
}
.blog-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}
.blog-avatar-sm-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}
.blog-author-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.blog-card-meta-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.73rem;
    color: var(--gray);
}
.blog-card-meta-right span { display: flex; align-items: center; gap: 4px; }
/* ── Loading / Empty ── */
.blog-loading, .blog-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--gray);
}
.blog-loading i, .blog-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
    opacity: 0.4;
}
.blog-empty h3 { color: var(--text-color); margin-bottom: 6px; }
/* ── Responsive ── */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-cover { height: 380px; }
    .blog-cover-title { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .blog-cover { height: 300px; }
    .blog-cover-title { font-size: 1.3rem; }
    .blog-cover-body { padding: 18px 18px; }
    .blog-cover-excerpt { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .blog-cover { height: 260px; }
    .blog-cover-title { font-size: 1.1rem; }
}
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
}
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }
/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Success Stories page CSS styles */
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}
.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }
/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }
.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }
.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }
.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }
.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }
/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }
/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}
.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@keyframes pulse-fire {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}
.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}
.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }
/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}
.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}
@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }
/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }
/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }
/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }
.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }
/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}
.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}
/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}
.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}
.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}
.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}
.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.view-more-btn i {
    margin-right: 8px;
}
.sidebar-title-spacing {
    margin-top: 15px;
}
.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}
.contact-email:hover {
    color: #FFD700;
}
.support-title {
    margin-top: 30px;
}
.footer-quote i {
    color: #FFD700;
}
.footer-quote .fa-quote-left {
    margin-right: 8px;
}
.footer-quote .fa-quote-right {
    margin-left: 8px;
}
.footer-link:hover {
    color: #FFD700;
}
.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}
.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}
.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }
/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }
/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }
/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }
.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }
/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}
.language-options::-webkit-scrollbar {
    width: 6px;
}
.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }
@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }
/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }
@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }
/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }
/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}
@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}
@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}
/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}
.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}
.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}
.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}
.modal-body {
    padding: 20px;
}
.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.feedback-modal {
    max-height: 80vh;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
/* Search error styling */
.search-error {
    color: red;
}
/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}
.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}
.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}
.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 60%;
}
.skeleton-text.medium {
    width: 80%;
}
.skeleton-text.long {
    width: 100%;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* Hidden content classes */
.hidden-content {
    display: none !important;
}
.visible-content {
    display: block !important;
}
.visible-grid {
    display: grid !important;
}
@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}
/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}
.security-indicator i {
    color: var(--success-color, #10b981);
}
.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}
.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}
.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.validation-error i {
    font-size: 0.7rem;
}
.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.security-badge i {
    font-size: 0.6rem;
}
/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.connect-modal.show {
    opacity: 1;
    visibility: visible;
}
.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}
.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}
.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}
.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.connect-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}
.connect-modal-body {
    padding: 30px 25px;
}
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
.social-btn:hover::before {
    left: 100%;
}
.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}
.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}
.social-btn-content {
    flex: 1;
}
.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}
.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}
.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}
.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}
.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}
.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}
.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}
/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}
.dark-theme .validation-error {
    color: #f87171;
}
.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}
.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}
/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}
.security-badge i {
    font-size: 16px;
}
/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
.input-secure {
    border-color: #16a34a !important;
}
/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}
/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Disclaimer Hero Section */
.announcements-hero {
    position: relative;
    height: 450px;
    background-image: url('../../static/images/announcements.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.announcements-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.announcements-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-hero .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}
.announcements-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.announcements-hero .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.announcements-hero .hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .announcements-hero {
        height: 350px;
    }
    
    .announcements-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .announcements-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}
gap: 12px;
background: rgba(255,255,255,0.15);
padding: 18px 30px;
border-radius: 50px;
border: 1px solid rgba(255,255,255,0.25);
font-size: 1.05rem;
font-weight: 500;
backdrop-filter: blur(10px);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: all 0.3s ease;
.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}
/* Disclaimer Content Styles */
.announcements-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.announcements-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}
.announcements-section h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}
.dark-theme .announcements-section {
    background: var(--header-bg);
    border-left-color: var(--primary);
}
.dark-theme .announcements-section h2 {
    border-bottom-color: var(--header-border);
}
.announcements-section p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}
.announcements-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.announcements-section a:hover {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .announcements-content {
        padding: 0 15px;
    }
    
    .announcements-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .announcements-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .announcements-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .announcements-section h2 {
        font-size: 1.1rem;
    }
    
    .announcements-section p {
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
.announcements-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Card styles */
.announcement-card-cursor { cursor: pointer; }
.announcement-image-bg { background: linear-gradient(135deg, #16B2DC 0%, #0E8FB7 100%); display: flex; align-items: center; justify-content: center; }
.announcement-icon { font-size: 2rem; color: white; }
.body-mobile-padding { padding-top: 70px; }
.modal-show { opacity: 1; visibility: visible; }
.modal-hide { opacity: 0; visibility: hidden; }
.modal-scale-up { transform: scale(1); }
.modal-scale-down { transform: scale(0.7); }
.body-no-scroll { overflow: hidden; }
.notification-slide-out { animation: slideOut 0.3s ease; }
/* Modal styles */
.search-modal-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-content-style {
    background: var(--card-bg, white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.notification-style {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}
.notification-error {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.notification-warning {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.notification-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.notification-icon {
    font-size: 16px;
}
.body-padding-mobile {
    padding-top: 70px;
}
.body-padding-desktop {
    padding-top: var(--header-height, 180px);
}
.body-padding-scrolled {
    padding-top: calc(var(--header-height, 180px) - 30px);
}
/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.settings-popup.show {
    opacity: 1;
    visibility: visible;
}
.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.settings-popup.show .settings-content {
    transform: scale(1);
}
.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.settings-body {
    padding: 25px;
}
.setting-item {
    margin-bottom: 20px;
}
.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}
.setting-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.dark-theme .setting-link {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.setting-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}
.setting-link i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
}
.setting-link:hover i {
    color: white;
}
.setting-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}
.settings-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}
.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}
.done-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.done-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.opportunity-image-with-bg {
    background-size: cover;
    background-position: center;
}
.opportunity-image-with-bg[data-bg-image] {
    background-image: attr(data-bg-image url);
}
.announcements-grid {
    margin-top: 40px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 25px !important;
}
@media (max-width: 1024px) {
    .announcements-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .announcements-grid .opportunity-card {
        min-height: 250px !important;
    }
    
    .announcements-grid .opportunity-image {
        height: 150px !important;
    }
}
@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal .opportunity-excerpt {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .announcements-grid .opportunity-card-horizontal {
        height: 120px !important;
        min-height: 120px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-image {
        width: 40% !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-content {
        width: 60% !important;
        padding: 10px !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta {
        font-size: 0.7rem !important;
    }
    
    .announcements-grid .opportunity-card-horizontal .opportunity-meta span:not(:first-child) {
        display: none !important;
    }
}
.opportunity-card {
    width: 100% !important;
    min-height: 320px !important;
}
.opportunity-image {
    height: 200px !important;
}
.opportunity-content {
    flex: 1 !important;
}
.opportunity-excerpt {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.opportunity-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    height: 160px !important;
    min-height: 160px !important;
}
.opportunity-card-horizontal .opportunity-image {
    width: 30% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
}
.opportunity-card-horizontal .opportunity-content {
    width: 70% !important;
    padding: 15px !important;
}
@media (max-width: 1024px) {
    .opportunity-card-horizontal {
        height: 80px !important;
        min-height: 80px !important;
    }
    
    .opportunity-card-horizontal .opportunity-content {
        padding: 8px !important;
    }
}
/* ============================================================
   ANNOUNCEMENTS PAGE — Magazine Style
   ============================================================ */
/* ── Search bar (standalone, no hero) ── */
.ann-search-bar-wrap {
    margin-bottom: 20px;
}
.ann-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    padding: 12px 16px;
}
.ann-search-wrap i.fa-search { color: var(--primary); flex-shrink: 0; }
.ann-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
    background: transparent;
}
.ann-search-wrap input::placeholder { color: var(--gray); }
.ann-search-wrap button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
}
.ann-search-wrap button:hover { color: var(--primary); }
/* ── Section label (Top Stories header) ── */
.ann-section-label {
    margin-bottom: 14px;
}
.ann-section-label-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
}
.ann-section-label-primary {
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ann-section-label-sub {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}
/* ── Chips ── */
.ann-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    flex-shrink: 0;
}
.ann-chip-primary { background: var(--primary); color: white; }
.ann-chip-white   { background: rgba(255,255,255,0.9); color: var(--primary); }
.ann-chip-expired { background: #f8d7da; color: #842029; }
.ann-chip-green   { background: #d1e7dd; color: #0f5132; }
.ann-chip-blue    { background: #cfe2ff; color: #084298; }
/* ── Cover Story ── */
.ann-top-grid {
    display: block;
    max-width: 680px;
}
.ann-top-grid.ann-top-grid-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    align-items: stretch;
    max-width: none;
}
.ann-cover {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-cover:hover .ann-cover-bg { transform: scale(1); }
.ann-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.5s ease;
}
.ann-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}
.ann-cover-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 30px;
    color: white;
}
.ann-cover-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ann-cover-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-excerpt {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0 0 14px;
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    opacity: 0.82;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 12px;
}
.ann-cover-meta span { display: flex; align-items: center; gap: 5px; }
.ann-cover-readmore {
    margin-left: auto;
    background: var(--primary);
    opacity: 1 !important;
    color: white;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.ann-cover:hover .ann-cover-readmore { background: var(--primary-dark); }
/* ── Secondary overlay cards ── */
.ann-secondary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ann-overlay-card {
    position: relative;
    flex: 1;
    min-height: 190px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}
.ann-overlay-card:hover .ann-overlay-bg { transform: scale(1.05); }
.ann-overlay-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    transition: transform 0.45s ease;
}
.ann-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.ann-overlay-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    color: white;
}
.ann-overlay-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 7px 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ann-overlay-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.73rem;
    opacity: 0.8;
}
.ann-overlay-meta span { display: flex; align-items: center; gap: 4px; }
/* ── Regular cards grid ── */
.ann-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.ann-card {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.ann-card:hover {
    box-shadow: 0 8px 28px rgba(22,178,220,0.14);
    transform: translateY(-3px);
}
.ann-card-img-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    flex-shrink: 0;
}
.ann-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: transform 0.4s ease;
}
.ann-card:hover .ann-card-img { transform: scale(1.04); }
.ann-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.ann-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ann-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}
.ann-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-excerpt {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
    margin-top: auto;
}
.ann-card-org {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ann-card-footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ann-card-footer-right span { display: flex; align-items: center; gap: 4px; }
/* ── Total count ── */
.ann-total {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}
/* ── Loading / Empty ── */
.ann-loading, .ann-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--gray);
}
.ann-loading i, .ann-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
    opacity: 0.45;
}
.ann-empty h3 { color: var(--text-color); margin-bottom: 6px; }
/* ── Responsive ── */
@media (max-width: 1024px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr 300px;
    }
    .ann-cover { height: 360px; }
    .ann-overlay-card { min-height: 165px; }
    .ann-cover-readmore { display: none; }
}
@media (max-width: 768px) {
    .ann-top-grid.ann-top-grid-split {
        grid-template-columns: 1fr;
    }
    .ann-secondary-col { flex-direction: row; }
    .ann-overlay-card { min-height: 150px; }

    .ann-cover { height: 300px; }
    .ann-cover-title { font-size: 1.2rem; -webkit-line-clamp: 2; }
    .ann-cover-excerpt { -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 16px 16px; }
    .ann-cover-readmore { display: none; }

    .ann-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ann-cover { height: 260px; }
    .ann-cover-excerpt { display: none; }
    .ann-cover-title { font-size: 1.1rem; -webkit-line-clamp: 2; }
    .ann-cover-body { padding: 14px 14px; }
    .ann-secondary-col { flex-direction: column; }
    .ann-grid { gap: 14px; }
}
/* ── Latest Announcements Grid ── */
.ann-carousel-wrap {
    width: 100%;
}
.ann-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ann-carousel .ann-card {
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .ann-carousel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ann-carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ann-carousel { grid-template-columns: 1fr; }
}
/* ── Announcement Detail Page ── */
.ann-detail {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    margin-bottom: 30px;
    overflow: hidden;
}
.ann-detail-hero {
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.ann-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ann-detail-body {
    padding: 36px 40px;
}
.ann-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ann-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}
.ann-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-detail-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}
.ann-detail-divider {
    border: none;
    border-top: 2px solid var(--light-gray);
    margin: 20px 0 28px;
}
.ann-detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-bottom: 32px;
}
.ann-detail-content p {
    margin-bottom: 1.2rem;
}
.ann-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ann-back-btn:hover { background: var(--primary-dark); }
@media (max-width: 768px) {
    .ann-detail-body { padding: 20px; }
    .ann-detail-title { font-size: 1.5rem; }
    .ann-detail-hero { height: 340px; }
}
@media (max-width: 480px) {
    .ann-detail-hero { height: 260px; }
}
/* ── Contact page ─────────────────────────────────────────────── */
.contact-page-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}
.contact-page-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-page-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--primary-light, #eef3ff);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}
.contact-page-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.contact-page-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.contact-page-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
a.contact-page-value:hover { color: var(--primary); }
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }
/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}
.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }
/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }
.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }
.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }
.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }
.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }
/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }
/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}
.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@keyframes pulse-fire {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}
.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}
.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }
/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}
.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}
@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }
/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }
/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }
/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }
.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }
/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}
.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}
/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}
.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}
.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}
.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}
.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.view-more-btn i {
    margin-right: 8px;
}
.sidebar-title-spacing {
    margin-top: 15px;
}
.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}
.contact-email:hover {
    color: #FFD700;
}
.support-title {
    margin-top: 30px;
}
.footer-quote i {
    color: #FFD700;
}
.footer-quote .fa-quote-left {
    margin-right: 8px;
}
.footer-quote .fa-quote-right {
    margin-left: 8px;
}
.footer-link:hover {
    color: #FFD700;
}
.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}
.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}
.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }
/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }
/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }
/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }
.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }
.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }
/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}
.language-options::-webkit-scrollbar {
    width: 6px;
}
.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }
@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }
/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }
@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }
/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}
.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }
/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
        font-style: italic;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
}
@media (max-width: 1024px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: 1fr; gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}
@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}
/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}
.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}
.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}
.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}
.modal-body {
    padding: 20px;
}
.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.feedback-modal {
    max-height: 80vh;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
/* Search error styling */
.search-error {
    color: red;
}
/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}
.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}
.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}
.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 60%;
}
.skeleton-text.medium {
    width: 80%;
}
.skeleton-text.long {
    width: 100%;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* Hidden content classes */
.hidden-content {
    display: none !important;
}
.visible-content {
    display: block !important;
}
.visible-grid {
    display: grid !important;
}
@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}
/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}
.security-indicator i {
    color: var(--success-color, #10b981);
}
.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}
.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}
.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.validation-error i {
    font-size: 0.7rem;
}
.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.security-badge i {
    font-size: 0.6rem;
}
/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.connect-modal.show {
    opacity: 1;
    visibility: visible;
}
.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}
.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}
.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}
.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.connect-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}
.connect-modal-body {
    padding: 30px 25px;
}
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
.social-btn:hover::before {
    left: 100%;
}
.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}
.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}
.social-btn-content {
    flex: 1;
}
.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}
.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}
.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}
.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}
.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}
.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}
.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}
/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}
.dark-theme .validation-error {
    color: #f87171;
}
.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}
.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}
/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-content {
        width: 95%;
        max-width: 350px;
    }
    
    .settings-header {
        padding: 15px 20px;
    }
    
    .settings-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-body {
        padding: 20px;
    }
    
    .settings-footer {
        padding: 15px 20px;
    }
    
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}
/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.settings-popup.show {
    opacity: 1;
    visibility: visible;
}
.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.settings-popup.show .settings-content {
    transform: scale(1);
}
.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.settings-body {
    padding: 25px;
}
.setting-group {
    margin-bottom: 20px;
}
.setting-group:last-child {
    margin-bottom: 0;
}
.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}
.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}
.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}
.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.settings-done:hover {
    background: var(--primary-dark);
}
.settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    font-size: 14px;
}
.settings-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}
.settings-link i {
    color: var(--primary);
    font-size: 16px;
}
.settings-link:hover i {
    color: white;
}
.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}
/* Dark theme adjustments */
.dark-theme .settings-content {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}
.dark-theme .setting-select {
    background: var(--header-bg);
    border-color: var(--header-border);
}
.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}
/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}
.security-badge i {
    font-size: 16px;
}
/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
.input-secure {
    border-color: #16a34a !important;
}
/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}
/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* About Us Hero Section */
.hero-section {
    background: var(--primary);
    color: white;
    padding: 55px 0 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: none;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.hero-text {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}
.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}
.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}
/* Services Content Styles */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
    padding: 0;
    justify-content: space-between;
}
.service-card {
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    position: relative;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(22, 178, 220, 0.15);
    border-color: var(--primary);
}
.service-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    height: 150px !important;
    min-height: 150px !important;
    cursor: pointer !important;
}
.service-title-small {
    font-size: 1rem !important;
}
.service-card-horizontal .service-image {
    width: 38% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}
.service-card-horizontal .service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
}
.service-card-horizontal .service-card-content {
    width: 62% !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--card-bg) !important;
    position: relative !important;
    overflow: hidden !important;
}
.service-card-horizontal .service-title-small {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.service-card-horizontal .service-excerpt {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
}
.blog-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    padding: 3px 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
    gap: 0.1rem;
}
.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}
.publish-date {
    color: var(--gray);
    font-size: 0.7rem;
}
.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}
.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 12px;
}
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}
.blog-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}
.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}
.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 0.9rem;
    display: block;
}
.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22, 178, 220, 0.2);
}
.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 178, 220, 0.4);
}
.read-more-btn i {
    transition: transform 0.3s ease;
}
.blog-card.expanded .read-more-btn i {
    transform: rotate(180deg);
}
.blog-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.full-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}
.share-section {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}
.share-section > span {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.share-btn.twitter {
    background: #1da1f2;
    color: white;
}
.share-btn.facebook {
    background: #4267b2;
    color: white;
}
.share-btn.linkedin {
    background: #0077b5;
    color: white;
}
.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.blog-card.expanded {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
}
.blog-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}
.blog-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}
.blog-title:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}
.blog-title i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}
.blog-item.active .blog-title {
    background: var(--primary);
    color: white;
}
.blog-item.active .blog-title i {
    color: white;
    transform: rotate(180deg);
}
.blog-excerpt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}
.blog-excerpt p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}
.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.no-blogs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}
.no-blogs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}
.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}
.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}
.retry-btn:hover {
    background: var(--primary-dark);
}
/* Dark theme adjustments for blogs */
.dark-theme .blog-item {
    background: var(--header-bg);
}
.dark-theme .blog-title {
    background: var(--header-bg);
    color: var(--text-color);
}
.dark-theme .blog-title:hover {
    background: rgba(255,255,255,0.05);
}
.dark-theme .blog-excerpt {
    background: var(--header-bg);
}
.dark-theme .blog-excerpt p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}
.dark-theme .loading-message,
.dark-theme .no-blogs,
.dark-theme .error-message {
    color: var(--text-color);
}
@media (max-width: 1024px) {
    .blog-content {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-meta {
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        margin: 0 0 0.1rem 0;
        padding: 1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .author-avatar,
    .author-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .author-placeholder {
        font-size: 1rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .blog-content {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .full-content {
        font-size: 0.95rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .author-section {
        gap: 10px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .publish-date {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
/* Service Card Specific Styles */
.service-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: none !important;
}
.service-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.service-card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    padding-right: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}
.service-excerpt {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--gray);
    gap: 8px;
}
.service-meta span {
    display: flex;
    align-items: center;
}
.service-meta i {
    margin-right: 4px;
    color: var(--primary);
    font-size: 0.7rem;
}
.request-service-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}
.request-service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.service-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}
.provider-section {
    display: flex;
    align-items: center;
    flex: 1;
}
.provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.provider-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--primary);
    margin-right: 8px;
    flex-shrink: 0;
}
.provider-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f1f1;
    margin-right: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.provider-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.provider-name {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}
.created-date {
    color: var(--gray);
    font-size: 0.75rem;
}
.no-services {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--light-gray);
}
.no-services i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}
.no-services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.no-services p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}
/* Service Request Modal Styles */
.service-request-modal {
    max-width: 600px;
    width: 95%;
}
.service-request-modal .modal-body-scroll {
    max-height: 70vh;
}
.service-request-modal .form-group {
    margin-bottom: 20px;
}
.service-request-modal .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}
.service-request-modal .form-group input,
.service-request-modal .form-group textarea,
.service-request-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}
.service-request-modal .form-group input:focus,
.service-request-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}
.service-request-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}
.service-request-modal .cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.service-request-modal .cancel-btn:hover {
    background: var(--gray);
    color: white;
}
.service-request-modal .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.service-request-modal .submit-btn:hover {
    background: var(--primary-dark);
}
.service-request-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}
@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 285px);
        justify-content: space-around;
    }
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 30px 0;
        padding: 0;
    }
    
    .service-card {
        width: 100%;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin: 30px 0;
        padding: 0;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}
/* Share Story Toggle Styles */
.share-story-toggle {
    text-align: center;
    margin-bottom: 2rem;
}
.ann-empty .toggle-form-btn,
.share-story-card .toggle-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    margin-top: 12px;
}
.ann-empty .toggle-form-btn:hover,
.share-story-card .toggle-form-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
.ann-empty .toggle-form-btn:active,
.share-story-card .toggle-form-btn:active {
    transform: translateY(0);
}
/* ── Story header actions ── */
.story-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.story-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 20px;
    white-space: nowrap;
}
.story-count-badge i {
    color: var(--primary);
    font-size: 0.75rem;
}
.share-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(22,178,220,0.25);
}
.share-story-btn i {
    font-size: 0.82rem;
    transition: transform 0.2s;
}
.share-story-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22,178,220,0.35);
}
.share-story-btn:hover i {
    transform: rotate(-10deg);
}
.share-story-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22,178,220,0.2);
}
@media (max-width: 560px) {
    .section-header:has(.story-header-actions) {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .story-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .share-story-btn {
        flex: 1;
        justify-content: center;
        padding: 11px 18px;
        font-size: 0.85rem;
        border-radius: 10px 3px 10px 3px;
    }
}
.hidden {
    display: none;
}
/* Share Story Modal */
.story-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.story-form-modal-inner {
  background: var(--card-bg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 3px solid var(--primary);
  position: relative;
}
.story-form-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  z-index: 1;
  transition: color 0.2s;
}
.story-form-modal-close:hover { color: var(--text-color); }
/* Share Story Form Styles */
.share-story-card {
    background: var(--card-bg);
    border-radius: 0;
    padding: 24px 28px;
    margin: 0;
    max-width: none;
    text-align: left;
    border: none;
}
.share-story-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--text-color);
}
.share-story-card .form-group {
    margin-bottom: 12px;
}
.share-story-card .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.share-story-card .form-group input,
.share-story-card .form-group textarea {
    font-size: 0.88rem;
    padding: 9px 12px;
}
.share-story-card .form-group textarea {
    rows: 4;
    min-height: 90px;
}
.share-story-card .form-group small {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}
.share-story-card .form-actions {
    margin-top: 16px;
}
.share-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.dark-theme .share-error {
    background: rgba(198, 40, 40, 0.15);
    border-color: rgba(198, 40, 40, 0.4);
    color: #ef9a9a;
}
.date-time-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.today-btn, .now-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.today-btn:hover, .now-btn:hover {
    background: var(--primary-dark);
}
.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.service-card-content {
        padding: 1.5rem;
    }
.service-title {
        font-size: 1.2rem;
    }
.service-image {
        height: 180px;
    }
.service-icon {
        font-size: 2.5rem;
    }
.service-request-modal {
        width: 98%;
        margin: 10px;
    }
.service-request-modal .form-actions {
        flex-direction: column;
    }
.service-request-modal .cancel-btn,
    .service-request-modal .submit-btn {
        width: 100%;
    }
/* FINAL TABLET FIX - HIGHEST PRIORITY */
@media screen and (max-width: 1280px) {
    .main-content-container .content-main .opportunities-grid,
    .opportunities-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        justify-content: stretch !important;
        width: 100% !important;
    }
    
    .main-content-container .content-main .opportunity-card,
    .opportunity-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
    
    .main-content-container .content-main .services-grid,
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        justify-content: stretch !important;
        width: 100% !important;
    }
    
    .main-content-container .content-main .service-card,
    .service-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }
/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* ═══════════════════════════════════════════════
   Story Hero — 3-equal-column layout (exactly 3 stories)
   ═══════════════════════════════════════════════ */
.story-hero-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.story-hero-3col .ann-overlay-card {
  height: 380px;
  min-height: 380px;
}
@media (max-width: 768px) {
  .story-hero-3col {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .story-hero-3col .ann-overlay-card {
    height: 260px;
    min-height: 260px;
  }
}
@media (max-width: 480px) {
  .story-hero-3col {
    grid-template-columns: 1fr;
  }
  .story-hero-3col .ann-overlay-card {
    height: 220px;
    min-height: 220px;
  }
}
/* ═══════════════════════════════════════════════
   Story List Cards (redesigned)
   ═══════════════════════════════════════════════ */
.story-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.story-list-card {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--light-gray);
  background: var(--card-bg);
  overflow: hidden;
  min-height: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.story-list-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(22, 178, 220, 0.13);
}
.story-list-img {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 200px;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.3s ease;
}
.story-list-card:hover .story-list-img { filter: brightness(0.93); }
.story-list-img.opp-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16b2dc 0%, #0e6fa3 100%) !important;
}
.story-list-img.opp-no-img i {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.story-list-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}
.story-list-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.story-list-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-color);
  margin: 0;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.story-list-title:hover { color: var(--primary); }
.story-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.7rem;
  color: var(--gray);
}
.story-list-meta span { display: flex; align-items: center; gap: 4px; }
.story-list-meta i { color: var(--primary); font-size: 0.62rem; }
.story-list-excerpt {
  font-size: 0.79rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.7rem;
  font-weight: 600;
}
.story-list-author {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.story-list-readmore {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}
.story-list-readmore:hover { text-decoration: underline; gap: 8px; }
/* Responsive */
@media (max-width: 768px) {
  .story-list-grid { grid-template-columns: 1fr; gap: 12px; }
  .story-list-card { grid-column: 1; grid-template-columns: 1fr; min-height: unset; }
  .story-list-img { min-height: 180px; }
  .story-list-img.opp-no-img i { font-size: 2rem; }
}
/* Services page CSS styles */

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: scale(1);
}

.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-body {
    padding: 25px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}

.dark-theme .setting-link {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.setting-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.setting-link i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1rem;
}

.setting-link:hover i {
    color: white;
}

.setting-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}

.done-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.done-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Services page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* About Us Hero Section */
.hero-section {
    background: var(--primary);
    color: white;
    padding: 55px 0 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.hero-notice i {
    font-size: 0.95rem;
}

/* ── Services Hero ── */
.svc-hero {
  background: var(--primary);
  border-radius: 20px 4px 20px 4px;
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.svc-hero-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 220px;
}

.svc-hero-main {
  padding: 36px 32px;
}

.svc-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 10px;
}

.svc-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0 0 12px;
}

.svc-hero-title em {
  font-style: normal;
  color: white;
}

.svc-hero-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
}

.svc-hero-divider {
  width: 1px;
  background: rgba(255,255,255,0.25);
  margin: 24px 0;
}

.svc-hero-offerings {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-hero-offerings-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 14px;
}

.svc-hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.svc-hero-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-hero-list li i {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

@media (max-width: 860px) {
  .svc-hero { border-radius: 16px 4px 16px 4px; }
  .svc-hero-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: unset;
  }
  .svc-hero-divider {
    width: auto;
    height: 1px;
    margin: 0 24px;
  }
  .svc-hero-main { padding: 22px 22px 16px; }
  .svc-hero-title { font-size: 1.2rem; }
  .svc-hero-desc { font-size: 0.84rem; }
  .svc-hero-offerings { padding: 16px 22px 22px; }
  .svc-hero-list { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
}

@media (max-width: 480px) {
  .svc-hero { border-radius: 12px 3px 12px 3px; }
  .svc-hero-main { padding: 18px 16px 14px; }
  .svc-hero-title { font-size: 1.1rem; }
  .svc-hero-eyebrow { font-size: 0.68rem; margin-bottom: 7px; }
  .svc-hero-desc { font-size: 0.81rem; line-height: 1.55; }
  .svc-hero-offerings { padding: 12px 16px 18px; }
  .svc-hero-offerings-label { margin-bottom: 10px; }
  .svc-hero-list { grid-template-columns: 1fr 1fr; gap: 7px 12px; font-size: 0.78rem; }
}

/* Services Content Styles */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
    align-items: stretch;
}

.service-card {
    background: var(--card-bg);
    border-radius: 0;
    border: 1px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--active-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}

.publish-date {
    color: var(--gray);
    font-size: 0.7rem;
}

.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 0.9rem;
    display: block;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22, 178, 220, 0.2);
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 178, 220, 0.4);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.blog-card.expanded .read-more-btn i {
    transform: rotate(180deg);
}

.blog-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

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

.full-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.share-section {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.share-section > span {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card.expanded {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
}

.blog-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-title:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}

.blog-title i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.blog-item.active .blog-title {
    background: var(--primary);
    color: white;
}

.blog-item.active .blog-title i {
    color: white;
    transform: rotate(180deg);
}

.blog-excerpt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}

.blog-excerpt p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

.no-blogs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.no-blogs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments for blogs */
.dark-theme .blog-item {
    background: var(--header-bg);
}

.dark-theme .blog-title {
    background: var(--header-bg);
    color: var(--text-color);
}

.dark-theme .blog-title:hover {
    background: rgba(255,255,255,0.05);
}

.dark-theme .blog-excerpt {
    background: var(--header-bg);
}

.dark-theme .blog-excerpt p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}

.dark-theme .loading-message,
.dark-theme .no-blogs,
.dark-theme .error-message {
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .blog-content {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-meta {
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        margin: 0 0 0.1rem 0;
        padding: 1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .author-avatar,
    .author-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .author-placeholder {
        font-size: 1rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .full-content {
        font-size: 0.95rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .author-section {
        gap: 10px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .publish-date {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Service Card Specific Styles */
.service-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image::before {
    content: none;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
}

.service-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.service-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.service-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(22, 178, 220, 0.08);
    padding: 4px 10px;
    border: 1px solid rgba(22, 178, 220, 0.2);
}

.service-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--gray);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border: 1px solid var(--light-gray);
}

.dark-theme .service-category-badge {
    background: rgba(255, 255, 255, 0.05);
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
    gap: 10px;
}

.request-service-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    margin-top: auto;
    align-self: flex-start;
}

.request-service-btn:hover {
    background: var(--primary-dark);
}

.provider-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.provider-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.provider-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.provider-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.created-date {
    color: var(--gray);
    font-size: 0.75rem;
}

.no-services {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--light-gray);
}

.no-services i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-services p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

/* Service Request Modal Styles */
.service-request-modal {
    max-width: 600px;
    width: 95%;
}

.service-request-modal .modal-body-scroll {
    max-height: 70vh;
}

.service-request-modal .form-group {
    margin-bottom: 20px;
}

.service-request-modal .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.service-request-modal .form-group input,
.service-request-modal .form-group textarea,
.service-request-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.service-request-modal .form-group input:focus,
.service-request-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.service-request-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.service-request-modal .cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .cancel-btn:hover {
    background: var(--gray);
    color: white;
}

.service-request-modal .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .submit-btn:hover {
    background: var(--primary-dark);
}

.service-request-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-request-modal {
        width: 98%;
        margin: 10px;
    }
    
    .service-request-modal .form-actions {
        flex-direction: column;
    }
    
    .service-request-modal .cancel-btn,
    .service-request-modal .submit-btn {
        width: 100%;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: var(--light-gray);
    color: var(--text-color);
}

.settings-popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.settings-link span {
    margin-left: 12px;
    margin-right: auto;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.settings-link i:first-child {
    color: var(--primary);
    font-size: 1.1rem;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    color: var(--gray);
    font-size: 0.9rem;
}

.settings-link:hover i:last-child {
    color: white;
}

.theme-select,
.language-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-select:focus,
.language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Dark theme adjustments */
.dark-theme .settings-popup-content {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .settings-popup-header {
    border-bottom-color: var(--header-border);
}

.dark-theme .settings-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--header-border);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
}

.dark-theme .theme-select,
.dark-theme .language-select {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .settings-popup-footer {
    border-top-color: var(--header-border);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        width: 95%;
        max-width: 350px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .setting-group {
        margin-bottom: 20px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .theme-select,
    .language-select {
        padding: 10px 12px;
    }
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* About Us Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 35px;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    line-height: 1.4;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.05rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* FAQ Content Styles */
.faq-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.faq-question {
    padding: 1.5rem;
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.faq-question:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question {
    background: var(--primary);
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

.no-faqs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.no-faqs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments for FAQ */
.dark-theme .faq-item {
    background: var(--header-bg);
}

.dark-theme .faq-question {
    background: var(--header-bg);
    color: var(--text-color);
}

.dark-theme .faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.dark-theme .faq-answer {
    background: var(--header-bg);
}

.dark-theme .faq-answer p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}

.dark-theme .loading-message,
.dark-theme .no-faqs,
.dark-theme .error-message {
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .faq-content {
        padding: 0 15px;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .faq-content {
        padding: 0 10px;
    }
    
    .faq-item {
        margin-bottom: 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}
/* ══════════════════════════════════════════
   FAQ PAGE — new styles
   ══════════════════════════════════════════ */
.faq-page-root {
  display: block !important;
  max-width: 860px;
  margin: 24px auto;
  padding: 0 20px;
}

/* ── Hero ── */
.faq-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-top: 4px solid var(--primary);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}
.faq-hero-left { flex: 1; min-width: 0; }
.faq-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 8px;
  line-height: 1.2;
}
.faq-hero-sub {
  font-size: 0.87rem;
  color: var(--gray);
  margin: 0 0 12px;
  line-height: 1.6;
  max-width: 440px;
}
.faq-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.faq-hero-right { flex-shrink: 0; width: 100%; max-width: 300px; }

/* ── Controls row ── */
.faq-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

/* ── Search ── */
.faq-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 11px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,178,220,0.1);
}
.faq-search > i {
  color: var(--gray);
  font-size: 0.88rem;
  flex-shrink: 0;
}
.faq-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.faq-search input::placeholder { color: var(--gray); opacity: 0.7; }
.faq-search-clear {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.78rem;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
}
.faq-search-clear:hover { color: var(--text-color); }

/* ── Filter dropdown ── */
.faq-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  flex-shrink: 0;
}
.faq-filter:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,178,220,0.1);
}
.faq-filter > i:first-child {
  color: var(--primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.faq-filter select {
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 4px;
  min-width: 160px;
}
.faq-filter-arrow {
  color: var(--gray);
  font-size: 0.72rem;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── Groups ── */
.faq-groups { display: flex; flex-direction: column; gap: 28px; }

.faq-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
}
.faq-group-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.72rem; flex-shrink: 0;
}
.faq-group-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  background: var(--light-gray, #eef1f4);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── FAQ items ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 11px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 2px 12px rgba(22,178,220,0.1); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
  line-height: 1.4;
}
.faq-q i { color: var(--primary); font-size: 0.75rem; flex-shrink: 0; }
.faq-item.open .faq-q { color: var(--primary); }

.faq-a {
  padding: 0 18px 16px;
  border-top: 1px solid var(--light-gray);
}
.faq-a p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ── Loading / empty ── */
.faq-loading {
  text-align: center;
  padding: 60px;
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.faq-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.faq-empty i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 12px; }
.faq-empty p { margin: 0 0 16px; font-size: 0.95rem; }
.faq-empty button {
  padding: 8px 20px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Contact strip ── */
.faq-contact-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}
.faq-contact-strip > i { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }
.faq-contact-strip strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-color); margin-bottom: 3px; }
.faq-contact-strip p { margin: 0; font-size: 0.83rem; color: var(--gray); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .faq-page-root { padding: 0 14px; }
  .faq-hero { padding: 20px 18px; flex-direction: column; align-items: flex-start; }
  .faq-hero-right { max-width: 100%; width: 100%; }
  .faq-hero-title { font-size: 1.3rem; }
  .faq-controls { flex-direction: column; align-items: stretch; }
  .faq-search { min-width: 0; }
  .faq-filter { width: 100%; }
  .faq-filter select { flex: 1; min-width: 0; }
  .faq-q { font-size: 0.87rem; padding: 14px 14px; }
  .faq-a { padding: 0 14px 14px; }
  .faq-contact-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Scholarships page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }
/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }
/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}

.header-container.scrolled .top-bar {
    display: none;
}

.donate-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #16b2dc 0%, #0e6fa3 100%);
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.donate-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.8), rgba(14, 143, 183, 0.6));
}

.donate-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 900px;
}

.donate-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.donate-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.donate-hero-icon {
    font-size: 4rem;
    color: #FFD700;
    margin-bottom: 20px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.donate-hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.donate-hero-btn:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

@media (max-width: 768px) {
    .donate-hero {
        height: 400px;
    }
    
    .donate-hero-title {
        font-size: 2rem;
    }
    
    .donate-hero-subtitle {
        font-size: 1rem;
    }
    
    .donate-hero-icon {
        font-size: 3rem;
    }
    
    .donate-hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

.donate-main-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper section {
    margin-bottom: 50px;
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-wrapper p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.impact-item {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

.impact-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.impact-item p {
    font-size: 1rem;
    color: var(--gray);
}

.kofi-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.kofi-section {
    padding: 60px 0;
}

.kofi-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.kofi-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.kofi-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.kofi-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .content-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .kofi-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper p {
        font-size: 1rem;
    }
    
    .impact-item h3 {
        font-size: 1.1rem;
    }
    
    .kofi-title {
        font-size: 1.8rem;
    }
}

.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }
/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }
/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    .footer-bottom-content p:last-child {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
        font-style: italic;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}
/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.search-error {
    color: red;
}

.search-result-item-style {
    cursor: pointer;
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light-gray);
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Coming Soon Section */
.coming-soon-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
}

.coming-soon-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 30px;
    animation: heartbeat 2s ease-in-out infinite;
}

.coming-soon-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.coming-soon-text {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.coming-soon-contact {
    margin-top: 30px;
}

.coming-soon-contact p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.coming-soon-email {
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coming-soon-email:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .coming-soon-icon {
        font-size: 3.5rem;
    }
    
    .coming-soon-title {
        font-size: 2rem;
    }
    
    .coming-soon-text {
        font-size: 1rem;
    }
    
    .coming-soon-email {
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════
   DONATE PAGE — Coming Soon styles
   ══════════════════════════════════════════ */
.donate-root {
  display: block !important;
  max-width: 900px;
  margin: 24px auto;
  padding: 0 20px;
}

/* ── Hero ── */
.donate-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 32px 44px;
  background: var(--primary);
  border-radius: 20px 4px 20px 4px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.donate-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.donate-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.donate-hero-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.donate-cs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.donate-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  line-height: 1.2;
  position: relative; z-index: 1;
}
.donate-hero-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 0 28px;
  position: relative; z-index: 1;
}

/* ── Notify form ── */
.donate-notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  position: relative; z-index: 1;
}
.donate-notify-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.donate-notify-form input::placeholder { color: rgba(255,255,255,0.6); }
.donate-notify-form input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.18); }
.donate-notify-form button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.donate-notify-form button:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.donate-notify-form button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.donate-notify-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative; z-index: 1;
}
.donate-notify-success i { font-size: 1.1rem; }

/* ── Section titles ── */
.donate-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 8px;
}
.donate-section-sub {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 640px;
}

/* ── Impact grid ── */
.donate-why {
  margin-bottom: 36px;
}
.donate-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.donate-impact-card {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 20px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.donate-impact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.donate-impact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.donate-impact-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 6px;
}
.donate-impact-card p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
}

/* ── Building section ── */
.donate-building {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: start;
}
.donate-building-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,178,220,0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.donate-building-left h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 16px;
}
.donate-building-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donate-building-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-color);
}
.donate-building-list li i { color: var(--primary); font-size: 0.75rem; flex-shrink: 0; }

/* ── Coming soon progress card ── */
.donate-cs-card {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.donate-cs-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-color);
}
.donate-cs-bar {
  height: 10px;
  background: var(--light-gray, #eef1f4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.donate-cs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #0E8FB7);
  border-radius: 10px;
  transition: width 0.8s ease;
}
.donate-cs-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.donate-cs-note i { color: var(--primary); }

/* ── Other ways ── */
.donate-other { margin-bottom: 16px; }
.donate-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.donate-other-card {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 22px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.donate-other-card:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(22,178,220,0.1); }
.donate-other-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.donate-other-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 6px;
}
.donate-other-card p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .donate-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-building { grid-template-columns: 1fr; gap: 20px; }
  .donate-other-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .donate-root { padding: 0 14px; }
  .donate-hero { padding: 36px 18px 32px; border-radius: 14px 3px 14px 3px; }
  .donate-hero-title { font-size: 1.5rem; }
  .donate-notify-form { flex-direction: column; }
  .donate-notify-form button { width: 100%; justify-content: center; }
  .donate-impact-grid { grid-template-columns: 1fr; }
  .donate-other-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   DONATE PAGE — redesign
   ══════════════════════════════════════════ */
.donate-content { max-width: 100%; }

/* ── Coming soon banner ── */
.donate-cs-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--primary);
  border-radius: 14px;
  padding: 28px 28px;
  margin-bottom: 32px;
  color: white;
}
.donate-cs-banner-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: white;
}
.donate-cs-banner-body { flex: 1; min-width: 0; }
.donate-cs-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.donate-cs-banner-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin: 0 0 8px;
}
.donate-cs-banner-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  margin: 0;
}

/* ── Content sections ── */
.donate-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--light-gray);
}
.donate-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.donate-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.donate-section p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 10px;
}
.donate-section p:last-child { margin-bottom: 0; }
.donate-section a { color: var(--primary); text-decoration: none; font-weight: 600; }
.donate-section a:hover { text-decoration: underline; }

/* ── Support grid ── */
.donate-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.donate-support-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.donate-support-card:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(22,178,220,0.1);
}
.donate-support-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
}
.donate-support-body { flex: 1; min-width: 0; }
.donate-support-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 5px;
}
.donate-support-body p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

/* ── Commitment list ── */
.donate-commit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.donate-commit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-color);
}
.donate-commit-item i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .donate-cs-banner { flex-direction: column; gap: 14px; padding: 20px 16px; }
  .donate-support-grid { grid-template-columns: 1fr; gap: 10px; }
  .donate-support-card { padding: 14px 12px; gap: 12px; }
  .donate-support-icon { width: 34px; height: 34px; font-size: 0.82rem; border-radius: 9px; }
  .donate-support-body h4 { font-size: 0.85rem; }
  .donate-support-body p { font-size: 0.78rem; }
  .donate-section { margin-bottom: 24px; padding-bottom: 24px; }
  .donate-section h2 { font-size: 1rem; }
  .donate-section p { font-size: 0.86rem; }
  .donate-commit-item { font-size: 0.84rem; }
}

/* ══════════════════════════════════════════
   DONATE HERO — professional split layout
   ══════════════════════════════════════════ */
.donate-hero-section {
  background: var(--primary);
  border-radius: 0 0 0 0;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}
.donate-hero-section::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.donate-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
  position: relative;
  z-index: 1;
}

/* Coming soon notice — replaces the hero */
/* ── Coming Soon Block ── */
.donate-hero-block {
  background: var(--primary);
  padding: 72px 40px 64px;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.donate-hero-icon {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.donate-hero-icon i {
  font-size: 2rem;
  color: #fff;
}

.donate-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 20px;
}

.donate-hero-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: donate-pulse 2s ease-in-out infinite;
}

@keyframes donate-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.donate-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0;
}

.donate-hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 400px;
  margin: 0;
}

@media (max-width: 600px) {
  .donate-hero-block { padding: 52px 20px 44px; }
  .donate-hero-title { font-size: 1.8rem; }
}

.donate-cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.donate-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin: 0 0 14px;
}

.donate-hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

.donate-hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.donate-hero-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 11px;
  padding: 12px 18px;
  min-width: 220px;
}
.donate-hero-stat > i {
  font-size: 1.05rem;
  color: white;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.donate-hero-stat div { display: flex; flex-direction: column; gap: 1px; }
.donate-hero-stat strong { font-size: 0.85rem; font-weight: 700; color: white; line-height: 1.2; }
.donate-hero-stat span { font-size: 0.74rem; color: rgba(255,255,255,0.75); }

@media (max-width: 780px) {
  .donate-hero-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 18px; }
  .donate-hero-title { font-size: 1.5rem; }
  .donate-hero-desc { font-size: 0.86rem; }
  .donate-hero-right { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .donate-hero-stat { min-width: 0; flex: 1 1 160px; padding: 10px 14px; }
}
@media (max-width: 480px) {
  .donate-hero-inner { padding: 22px 14px; gap: 16px; }
  .donate-hero-title { font-size: 1.25rem; }
  .donate-cs-badge { font-size: 0.66rem; padding: 4px 10px; }
  .donate-hero-desc { font-size: 0.82rem; }
  .donate-hero-right { flex-direction: column; gap: 8px; }
  .donate-hero-stat { min-width: 0; padding: 10px 12px; gap: 10px; }
  .donate-hero-stat strong { font-size: 0.82rem; }
  .donate-hero-stat span { font-size: 0.71rem; }
}

/* Hide back-to-top on donate page */
.page-donate .back-to-top-container { display: none; }

/* Big gap before footer on donate page */
.page-donate main { padding-bottom: 100px; }

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Share Opportunity page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
        text-align: center;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal .modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.share-modal.show .modal-content {
    transform: scale(1);
}

.cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: var(--gray);
    color: white;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* About Us Hero Section */
.hero-section {
    background: var(--primary);
    color: white;
    padding: 55px 0 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.hero-notice i {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

/* Share Opportunity Content Styles */
.share-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.opportunity-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(22, 178, 220, 0.15);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--active-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}

.publish-date {
    color: var(--gray);
    font-size: 0.7rem;
}

.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 0.9rem;
    display: block;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22, 178, 220, 0.2);
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 178, 220, 0.4);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.blog-card.expanded .read-more-btn i {
    transform: rotate(180deg);
}

.blog-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

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

.full-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.share-section {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.share-section > span {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card.expanded {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
}

.blog-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-title:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}

.blog-title i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.blog-item.active .blog-title {
    background: var(--primary);
    color: white;
}

.blog-item.active .blog-title i {
    color: white;
    transform: rotate(180deg);
}

.blog-excerpt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}

.blog-excerpt p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

.no-blogs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.no-blogs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments for blogs */
.dark-theme .blog-item {
    background: var(--header-bg);
}

.dark-theme .blog-title {
    background: var(--header-bg);
    color: var(--text-color);
}

.dark-theme .blog-title:hover {
    background: rgba(255,255,255,0.05);
}

.dark-theme .blog-excerpt {
    background: var(--header-bg);
}

.dark-theme .blog-excerpt p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}

.dark-theme .loading-message,
.dark-theme .no-blogs,
.dark-theme .error-message {
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .blog-content {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-meta {
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        margin: 0 0 0.1rem 0;
        padding: 1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .author-avatar,
    .author-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .author-placeholder {
        font-size: 1rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .full-content {
        font-size: 0.95rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .author-section {
        gap: 10px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .publish-date {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Service Card Specific Styles */
.service-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: transparent;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-image::before {
    content: none;
}

.service-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.service-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.service-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    display: block;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.85rem;
    padding: 6px 12px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 20px;
    font-weight: 500;
}

.service-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

.request-service-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.3);
    width: 100%;
    margin-top: 20px;
}

.request-service-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 178, 220, 0.4);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.provider-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.provider-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.created-date {
    color: var(--gray);
    font-size: 0.75rem;
}

.no-services {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--light-gray);
}

.no-services i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-services p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

/* Service Request Modal Styles */
.service-request-modal {
    max-width: 600px;
    width: 95%;
}

.service-request-modal .modal-body-scroll {
    max-height: 70vh;
}

.service-request-modal .form-group {
    margin-bottom: 20px;
}

.service-request-modal .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.service-request-modal .form-group input,
.service-request-modal .form-group textarea,
.service-request-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.service-request-modal .form-group input:focus,
.service-request-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.service-request-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.service-request-modal .cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .cancel-btn:hover {
    background: var(--gray);
    color: white;
}

.service-request-modal .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .submit-btn:hover {
    background: var(--primary-dark);
}

.service-request-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

/* Share Form Styles */
.share-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.share-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--light-gray);
}

.share-form h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.share-form h3:first-child {
    margin-top: 0;
}

.deadline-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.date-time-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-time-group label {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.today-btn, .now-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.today-btn:hover, .now-btn:hover {
    background: var(--primary-dark);
}

.form-group small {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

.share-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.dark-theme .share-error {
    background: rgba(198, 40, 40, 0.15);
    border-color: rgba(198, 40, 40, 0.4);
    color: #ef9a9a;
}

.share-success {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
}

.share-success i {
    font-size: 3.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 16px;
}

.share-success h2 {
    margin-bottom: 10px;
}

.share-success p {
    color: var(--gray);
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .share-form-container {
        padding: 15px;
    }
    
    .share-form {
        padding: 20px;
    }
    
    .deadline-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-time-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .service-card-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-request-modal {
        width: 98%;
        margin: 10px;
    }
    
    .service-request-modal .form-actions {
        flex-direction: column;
    }
    
    .service-request-modal .cancel-btn,
    .service-request-modal .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-card {
        padding: 40px 20px;
    }
    
    .share-card h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .share-card p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .primary-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: 160px;
        letter-spacing: 0.5px;
    }
}

/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: scale(1);
}

.settings-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-body {
    padding: 25px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments */
.dark-theme .settings-content {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .setting-select {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .settings-footer {
    border-top-color: var(--header-border);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    font-size: 14px;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.settings-link i {
    color: var(--primary);
    font-size: 16px;
}

.settings-link:hover i {
    color: white;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        align-items: center;
        justify-content: center;
    }
    
    .settings-content {
        width: 95%;
        max-width: 350px;
        position: relative;
        z-index: 10001;
    }
    
    .settings-header {
        padding: 15px 20px;
    }
    
    .settings-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-body {
        padding: 20px;
        position: relative;
        z-index: 10002;
    }
    
    .setting-select {
        position: relative;
        z-index: 10003;
        -webkit-appearance: menulist;
        appearance: menulist;
    }
    
    .settings-footer {
        padding: 15px 20px;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Settings Popup Styles */
.settings-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--light-gray);
}

.dark-theme .settings-popup {
    border: 1px solid var(--header-border);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--primary);
    color: white;
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.settings-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.settings-popup-content {
    padding: 25px;
}

.settings-section {
    margin-bottom: 20px;
    position: relative;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.settings-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    padding-right: 40px;
}

.dark-theme .settings-select {
    border: 1px solid var(--header-border);
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.2);
}

.settings-select:hover {
    border-color: var(--primary);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    font-size: 14px;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.settings-link i {
    color: var(--primary);
    font-size: 16px;
}

.settings-link:hover i {
    color: white;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

@media (max-width: 768px) {
    .settings-popup {
        max-width: 95%;
        margin: 10px;
    }

    .settings-popup-header {
        padding: 15px;
    }

    .settings-popup-header h3 {
        font-size: 1.1rem;
    }

    .settings-popup-content {
        padding: 20px;
    }

    .settings-section {
        margin-bottom: 18px;
    }

    .settings-select {
        padding: 12px;
        font-size: 16px;
    }
}

/* Opportunity Details Styles */
.opportunity-details {
    margin: 2rem 0;
    overflow: hidden;
}

.opportunity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .opportunity-meta {
    border-color: var(--header-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

.opportunity-header {
    padding: 0;
    margin-bottom: 2rem;
}

.opportunity-header .opportunity-title {
    font-size: 2rem !important;
    font-weight: 600;
    color: var(--gray);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.opportunity-content {
    padding: 2.5rem;
}

.opportunity-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 40px;
}

.opportunity-description p {
    margin-bottom: 1.5rem;
}

.opportunity-description h1,
.opportunity-description h2,
.opportunity-description h3,
.opportunity-description h4,
.opportunity-description h5,
.opportunity-description h6 {
    color: var(--primary);
    margin: 30px 0 15px 0;
}

.opportunity-description ul,
.opportunity-description ol {
    margin: 20px 0;
    padding-left: 30px;
}

.opportunity-description li {
    margin-bottom: 8px;
}

.opportunity-description strong,
.opportunity-description b {
    font-weight: 700;
    color: var(--text-color);
}

.opportunity-description em,
.opportunity-description i {
    font-style: italic;
}

.opportunity-description u {
    text-decoration: underline;
}

.opportunity-description a {
    color: var(--primary);
    text-decoration: underline;
}

.opportunity-description p {
    margin-bottom: 1rem;
}

.opportunity-section {
    margin-top: 20px;
    padding-top: 15px;
}

.dark-theme .opportunity-section {
}

.opportunity-section h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.opportunity-section ol {
    margin: 0;
    padding-left: 25px;
}

.opportunity-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.opportunity-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.dark-theme .opportunity-actions {
    border-top: 1px solid var(--header-border);
}

.apply-btn {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.apply-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.3);
}

.share-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
}

.share-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.3) !important;
}

/* Share Modal Styles */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-option:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.share-option[data-platform="facebook"] i   { color: #1877f2; }
.share-option[data-platform="x"] i          { color: #000; }
.share-option[data-platform="linkedin"] i   { color: #0077b5; }
.share-option[data-platform="whatsapp"] i   { color: #25d366; }
.share-option[data-platform="telegram"] i   { color: #0088cc; }
.share-option[data-platform="reddit"] i     { color: #ff4500; }
.share-option[data-platform="email"] i      { color: #ea4335; }
.share-option[data-platform="copy"] i       { color: var(--primary); }
.share-option[data-platform="sms"] i        { color: #34c759; }

@media (max-width: 600px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .share-option {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

/* Mobile Responsive for Opportunity Details */
@media (max-width: 1024px) {
    .opportunity-header .opportunity-title {
        font-size: 1.3rem;
    }
    
    .opportunity-header {
        padding: 0;
    }

    .opportunity-content {
        padding: 1rem 0;
    }
    
    .opportunity-image-container .opportunity-image {
        height: 250px;
    }
    

    
    .opportunity-meta {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
        margin-bottom: 20px;
        align-items: flex-start !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .opportunity-meta .meta-item {
        align-self: flex-start !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .opportunity-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .opportunity-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .apply-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 1.1rem;
        padding: 15px 30px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

/* Blogs page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; padding-left: 20px; }
.opp-detail-layout .content-sidebar { border-left: 1px solid var(--light-gray); }
.dark-theme .opp-detail-layout .content-sidebar { border-left-color: var(--header-border); }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal, .share-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show, .share-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; margin: 0 20px; }
.language-modal.show .modal-content, .search-modal.show .modal-content, .share-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

/* ── Switch to mobile nav at ≤1280px ────────────────────────────── */
@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }

    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }

    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; justify-content: stretch; }
    .opportunity-card { width: 100%; }

    /* Opportunity detail */
    .opportunity-header .opportunity-title { font-size: 1.5rem; }
    .opportunity-image-container .opportunity-image { height: 320px; }
    .opportunity-actions { flex-direction: row; gap: 12px; }
    .apply-btn, .share-btn { width: auto; flex: 1; font-size: 1rem; padding: 13px 20px; }

    /* Related: 2-column grid on tablet */
    .related-grid-desktop { grid-template-columns: repeat(2, 1fr); }

    /* Footer: single column, centered */
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    
    
    
    
    
}

/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }

    /* Taller cards in related section */
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

/* ── Desktop nav only above 1280px ─────────────────────────────── */
@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}

@media (max-width: 768px) {
    /* Phone-specific overrides */
    
    .main-content-container { padding: 0 12px; }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
        font-style: italic;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
}

@media (max-width: 1024px) {
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Opportunity Image Container */
.opportunity-image-container {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 320px;
}

.opportunity-image-placeholder {
    width: 100%;
    height: 320px;
    background: #16B2DC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.opportunity-image-placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
}

.opportunity-image-placeholder span {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .opportunity-image-placeholder { height: 220px; }
    .opportunity-image-placeholder i { font-size: 2.2rem; }
}

.opportunity-image-container .opportunity-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Services Content Styles */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
    padding: 0;
    justify-content: space-between;
}

.service-card {
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(22, 178, 220, 0.15);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    padding: 3px 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}

.publish-date {
    color: var(--gray);
    font-size: 0.7rem;
}

.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 0.9rem;
    display: block;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22, 178, 220, 0.2);
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 178, 220, 0.4);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.blog-card.expanded .read-more-btn i {
    transform: rotate(180deg);
}

.blog-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

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

.full-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.share-section {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.share-section > span {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blog-card.expanded {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
}

.blog-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-title:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}

.blog-title i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.blog-item.active .blog-title {
    background: var(--primary);
    color: white;
}

.blog-item.active .blog-title i {
    color: white;
    transform: rotate(180deg);
}

.blog-excerpt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}

.blog-excerpt p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

.no-blogs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.no-blogs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments for blogs */
.dark-theme .blog-item {
    background: var(--header-bg);
}

.dark-theme .blog-title {
    background: var(--header-bg);
    color: var(--text-color);
}

.dark-theme .blog-title:hover {
    background: rgba(255,255,255,0.05);
}

.dark-theme .blog-excerpt {
    background: var(--header-bg);
}

.dark-theme .blog-excerpt p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}

.dark-theme .loading-message,
.dark-theme .no-blogs,
.dark-theme .error-message {
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .blog-content {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-meta {
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        margin: 0 0 0.1rem 0;
        padding: 1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .author-avatar,
    .author-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .author-placeholder {
        font-size: 1rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .share-btn {
        width: 100% !important;
        height: auto !important;
        font-size: 1.1rem !important;
        padding: 15px 30px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .opportunity-image-container .opportunity-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .full-content {
        font-size: 0.95rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .author-section {
        gap: 10px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .publish-date {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Service Card Specific Styles */
.service-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.service-card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    padding-right: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.service-excerpt {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--gray);
    gap: 8px;
}

.service-meta span {
    display: flex;
    align-items: center;
}

.service-meta i {
    margin-right: 4px;
    color: var(--primary);
    font-size: 0.7rem;
}

.request-service-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.request-service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.service-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

.provider-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.provider-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f1f1;
    margin-right: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-name {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.created-date {
    color: var(--gray);
    font-size: 0.75rem;
}

.no-services {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--light-gray);
}

.no-services i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-services p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

/* Service Request Modal Styles */
.service-request-modal {
    max-width: 600px;
    width: 95%;
}

.service-request-modal .modal-body-scroll {
    max-height: 70vh;
}

.service-request-modal .form-group {
    margin-bottom: 20px;
}

.service-request-modal .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.service-request-modal .form-group input,
.service-request-modal .form-group textarea,
.service-request-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.service-request-modal .form-group input:focus,
.service-request-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.service-request-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.service-request-modal .cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .cancel-btn:hover {
    background: var(--gray);
    color: white;
}

.service-request-modal .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .submit-btn:hover {
    background: var(--primary-dark);
}

.service-request-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 285px);
        justify-content: space-around;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 30px 0;
        padding: 0;
    }
    
    .service-card {
        width: 100%;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin: 30px 0;
        padding: 0;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}

/* Share Story Toggle Styles */
.share-story-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.toggle-form-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-form-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Share Story Form Styles */
.share-story-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-time-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.today-btn, .now-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.today-btn:hover, .now-btn:hover {
    background: var(--primary-dark);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
    
    .service-card-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-request-modal {
        width: 98%;
        margin: 10px;
    }
    
    .service-request-modal .form-actions {
        flex-direction: column;
    }
    
    .service-request-modal .cancel-btn,
    .service-request-modal .submit-btn {
        width: 100%;
    }

/* ── Related Opportunities ─────────────────────────────────────── */
.related-section {
    border-top: 1px solid var(--light-gray);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.dark-theme .related-section {
    border-top-color: var(--header-border);
}

.related-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-title i {
    color: var(--primary);
}

/* Responsive card grid — 3 cols on desktop, 2 on tablet, 1 on phone */
.related-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .related-cards-grid {
        grid-template-columns: 1fr;
    }

    .related-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
        background: var(--card-bg);
        border: 1px solid var(--light-gray);
        border-radius: 0;
        overflow: hidden;
        cursor: pointer;
        transition: box-shadow 0.18s ease, transform 0.18s ease;
    }

    .dark-theme .related-row {
        border-color: var(--header-border);
    }

    .related-row:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .related-row-thumb {
        flex-shrink: 0;
        width: 54px;
        height: 54px;
        border-radius: 0;
        background: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .related-row-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .related-row-thumb i {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .related-row-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.7rem 0;
    }

    .related-row-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
    }

    .related-row-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.72rem;
        color: var(--gray);
    }

    .related-row-meta span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .related-row-arrow {
        flex-shrink: 0;
        font-size: 0.75rem;
        color: var(--gray);
        padding-right: 0.85rem;
    }
}

/* Sidebar related list — always-visible compact rows */
.related-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.content-sidebar .related-section {
    border-top: none;
    margin-top: 1.5rem;
    padding-top: 0;
}

.related-sidebar-list .related-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.dark-theme .related-sidebar-list .related-row {
    border-color: var(--header-border);
}

.related-sidebar-list .related-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.related-sidebar-list .related-row-thumb {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-sidebar-list .related-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-sidebar-list .related-row-thumb i {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.related-sidebar-list .related-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0;
}

.related-sidebar-list .related-row-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.related-sidebar-list .related-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.related-sidebar-list .related-row-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-sidebar-list .related-row-arrow {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--gray);
    padding-right: 0.75rem;
}

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunity-header .opportunity-title { font-size: 1.1rem; }
    .opportunity-image-container .opportunity-image { height: 180px; }
    .apply-btn, .share-btn { font-size: 0.95rem; padding: 12px 16px; }
}

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Opportunity Detail Page ─────────────────────────────────── */
.opp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.opp-chips .ann-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: capitalize;
}

.opp-detail-hero { height: 480px !important; }

.opp-detail-placeholder {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, var(--primary) 0%, #0e8fb7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.35);
}

/* Info cards row */
.opp-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0 24px;
}
.opp-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg, rgba(22,178,220,0.05));
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 14px 16px;
}
.opp-info-card > i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.opp-info-card > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.opp-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
}
.opp-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content sections */
.opp-section {
    margin-bottom: 28px;
}
.opp-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px;
}
.opp-section-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.opp-section-list li {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.75;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.opp-learn-more {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
}
.opp-learn-more a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}
.opp-learn-more a:hover { color: var(--primary-dark); }

/* Action buttons */
.opp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid var(--light-gray);
    align-items: center;
}
.opp-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}
.opp-apply-btn:hover { background: var(--primary-dark); color: #fff; }
.opp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.opp-share-btn:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
    .opp-info-row { grid-template-columns: 1fr 1fr; }
    .opp-actions { flex-direction: column; }
    .opp-apply-btn, .opp-share-btn, .opp-actions .ann-back-btn {
        width: 100%;
        justify-content: center;
    }
    .opp-detail-hero { height: 340px !important; }
    .opp-detail-placeholder { height: 340px; }
}
@media (max-width: 480px) {
    .opp-info-row { grid-template-columns: 1fr; }
    .opp-detail-hero { height: 260px !important; }
    .opp-detail-placeholder { height: 260px; }
}

/* ── Related Opportunity Cards (desktop) ─────────────────────── */
.related-card {
    border: 1px solid var(--light-gray);
    border-radius: 0;
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    display: flex;
    flex-direction: column;
}
.dark-theme .related-card { border-color: var(--header-border); }
.related-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.related-card-thumb {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #0e8fb7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-card-thumb i { font-size: 2.4rem; color: rgba(255, 255, 255, 0.35); }
.related-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.related-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.related-card-meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.related-card-meta span { display: flex; align-items: center; gap: 5px; }
.related-card-meta i { font-size: 0.72rem; color: var(--primary); }
.related-card-learn {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}
.related-card-learn span { text-decoration: underline; }
.related-card-learn:hover { color: var(--primary-dark); }
/* Story Details Styles */
.story-details {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.story-author-info {
    padding: 1.2rem 2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--light-gray);
}

.story-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.story-author-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.8rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.author-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.author-location {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.author-email {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    font-weight: 400;
}

.story-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    font-weight: 400;
}

.story-author-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 4px;
}

.story-author-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 400;
    white-space: nowrap;
}

.story-author-meta span i {
    font-size: 0.82rem;
    color: var(--primary);
    opacity: 0.9;
}

.story-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}

.story-back-link:hover {
    opacity: 0.7;
}

.story-header {
    padding: 2rem 2rem 1rem 2rem;
}

.story-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.story-hero {
    width: 100%;
    max-height: 520px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    overflow: hidden;
}

.story-hero-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: top center;
    display: block;
}

.story-content {
    padding: 2.5rem;
}

.story-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

.story-description p {
    margin-bottom: 1.5rem;
}

.story-description h2,
.story-description h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.story-description h2 {
    font-size: 1.5rem;
}

.story-description h3 {
    font-size: 1.3rem;
}

/* Mobile Responsive for Story Details */
@media (max-width: 1024px) {
    .story-title {
        font-size: 1.5rem;
    }
    
    .story-header,
    .story-content,
    .story-author-info {
        padding: 1.5rem;
    }
    
    .story-hero {
        max-height: 320px;
    }

    .story-hero-img {
        max-height: 320px;
    }
    
    .author-name {
        font-size: 1.4rem;
    }

    .story-author-meta span {
        font-size: 0.88rem;
    }
    
    .story-description {
        font-size: 0.95rem;
    }
    
    .story-description h2 {
        font-size: 1.3rem;
    }
    
    .story-description h3 {
        font-size: 1.1rem;
    }
}

/* Blogs page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    
    
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
        font-style: italic;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
}

@media (max-width: 1024px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }

    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* About Us Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 35px;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    line-height: 1.4;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.05rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-notice:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-notice i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Services Content Styles */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
    padding: 0;
    justify-content: space-between;
}

.service-card {
    background: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--light-gray);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(22, 178, 220, 0.15);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    padding: 3px 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}

.publish-date {
    color: var(--gray);
    font-size: 0.7rem;
}

.blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(22, 178, 220, 0.1);
    border-radius: 12px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin: 0.1rem 0 0.5rem 0;
    font-size: 0.9rem;
    display: block;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(22, 178, 220, 0.2);
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 178, 220, 0.4);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.blog-card.expanded .read-more-btn i {
    transform: rotate(180deg);
}

.blog-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

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

.full-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.share-section {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.share-section > span {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card.expanded {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
}

.blog-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.1rem 0;
    line-height: 1.4;
}

.blog-title:hover {
    background: var(--hover-bg, rgba(0,0,0,0.05));
}

.blog-title i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.blog-item.active .blog-title {
    background: var(--primary);
    color: white;
}

.blog-item.active .blog-title i {
    color: white;
    transform: rotate(180deg);
}

.blog-excerpt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--card-bg);
}

.blog-excerpt p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

.no-blogs {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.no-blogs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* Dark theme adjustments for blogs */
.dark-theme .blog-item {
    background: var(--header-bg);
}

.dark-theme .blog-title {
    background: var(--header-bg);
    color: var(--text-color);
}

.dark-theme .blog-title:hover {
    background: rgba(255,255,255,0.05);
}

.dark-theme .blog-excerpt {
    background: var(--header-bg);
}

.dark-theme .blog-excerpt p {
    color: var(--text-color);
    border-top-color: rgba(255,255,255,0.1);
}

.dark-theme .loading-message,
.dark-theme .no-blogs,
.dark-theme .error-message {
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .blog-content {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-meta {
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        margin: 0 0 0.1rem 0;
        padding: 1rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .author-avatar,
    .author-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .author-placeholder {
        font-size: 1rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-notice {
        padding: 15px 25px;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hero-notice i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .blog-title {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .full-content {
        font-size: 0.95rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .author-section {
        gap: 10px;
    }
    
    .author-info .author-name {
        font-size: 0.9rem;
    }

    .publish-date {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-notice {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Service Card Specific Styles */
.service-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.service-card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    padding-right: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.service-excerpt {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--gray);
    gap: 8px;
}

.service-meta span {
    display: flex;
    align-items: center;
}

.service-meta i {
    margin-right: 4px;
    color: var(--primary);
    font-size: 0.7rem;
}

.request-service-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.request-service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.service-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

.provider-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.provider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.provider-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f1f1;
    margin-right: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.provider-name {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.created-date {
    color: var(--gray);
    font-size: 0.75rem;
}

.no-services {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--light-gray);
}

.no-services i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-services p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
}

/* Service Request Modal Styles */
.service-request-modal {
    max-width: 600px;
    width: 95%;
}

.service-request-modal .modal-body-scroll {
    max-height: 70vh;
}

.service-request-modal .form-group {
    margin-bottom: 20px;
}

.service-request-modal .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.service-request-modal .form-group input,
.service-request-modal .form-group textarea,
.service-request-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.service-request-modal .form-group input:focus,
.service-request-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.service-request-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.service-request-modal .cancel-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .cancel-btn:hover {
    background: var(--gray);
    color: white;
}

.service-request-modal .submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-request-modal .submit-btn:hover {
    background: var(--primary-dark);
}

.service-request-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 285px);
        justify-content: space-around;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 30px 0;
        padding: 0;
    }
    
    .service-card {
        width: 100%;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin: 30px 0;
        padding: 0;
    }
    
    .main-content-container {
        padding: 0;
    }
    
    .services-content {
        padding: 40px 0;
    }
}

/* Share Story Toggle Styles */
.share-story-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.toggle-form-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-form-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Share Story Form Styles */
.share-story-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-time-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.today-btn, .now-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.today-btn:hover, .now-btn:hover {
    background: var(--primary-dark);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
    
    .service-card-content {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-request-modal {
        width: 98%;
        margin: 10px;
    }
    
    .service-request-modal .form-actions {
        flex-direction: column;
    }
    
    .service-request-modal .cancel-btn,
    .service-request-modal .submit-btn {
        width: 100%;
    }

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Scholarships page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }
/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }
/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}

.header-container.scrolled .top-bar {
    display: none;
}

.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }
/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }
/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    .footer-bottom-content p:last-child {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
        font-style: italic;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}
/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.search-error {
    color: red;
}

.search-result-item-style {
    cursor: pointer;
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light-gray);
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Jobs page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 1024px) {
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 1024px) {
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-header {
    border-bottom: 1px solid var(--header-border);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.settings-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

.dark-theme .settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-theme .settings-link {
    border: 1px solid var(--header-border);
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 178, 220, 0.2);
}

.settings-link i:first-child {
    margin-right: 12px;
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.settings-link span {
    flex: 1;
    font-weight: 500;
}

.setting-group .theme-select,
.setting-group .language-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .setting-group .theme-select,
.dark-theme .setting-group .language-select {
    border: 1px solid var(--header-border);
}

.setting-group .theme-select:focus,
.setting-group .language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.dark-theme .settings-popup-footer {
    border-top: 1px solid var(--header-border);
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .settings-link i:first-child {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .settings-link span {
        font-size: 0.9rem;
    }
    
    .setting-group .theme-select,
    .setting-group .language-select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .settings-done {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Fellowships page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 1024px) {
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-popup-content {
    transform: scale(1);
}

.settings-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.settings-popup-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: var(--light-gray);
    color: var(--text-color);
}

.settings-popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.settings-link span {
    margin-left: 12px;
    margin-right: auto;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.settings-link i:first-child {
    color: var(--primary);
    font-size: 1.1rem;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    color: var(--gray);
    font-size: 0.9rem;
}

.settings-link:hover i:last-child {
    color: white;
}

.theme-select,
.language-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-select:focus,
.language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 178, 220, 0.1);
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Dark theme adjustments */
.dark-theme .settings-popup-content {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .settings-popup-header {
    border-bottom-color: var(--header-border);
}

.dark-theme .settings-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--header-border);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
}

.dark-theme .theme-select,
.dark-theme .language-select {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .settings-popup-footer {
    border-top-color: var(--header-border);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        width: 95%;
        max-width: 350px;
    }
    
    .settings-popup-header {
        padding: 15px;
    }
    
    .settings-popup-body {
        padding: 15px;
    }
    
    .settings-popup-footer {
        padding: 15px;
    }
    
    .setting-group {
        margin-bottom: 20px;
    }
    
    .settings-link {
        padding: 10px 12px;
    }
    
    .theme-select,
    .language-select {
        padding: 10px 12px;
    }
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: var(--hover-bg);
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    padding-right: 40px;
    position: relative;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.settings-done {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-hover);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

.settings-link i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i {
    color: white;
}

:root {
    --border-color: var(--light-gray);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --input-bg: var(--card-bg);
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
}

.dark-theme {
    --border-color: var(--header-border);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: var(--header-bg);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
    color: white;
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: var(--hover-bg);
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    padding-right: 40px;
    position: relative;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.settings-done {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-hover);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

.settings-link i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i {
    color: white;
}

:root {
    --border-color: var(--light-gray);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --input-bg: var(--card-bg);
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
}

.dark-theme {
    --border-color: var(--header-border);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: var(--header-bg);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
    color: white;
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
    
    .settings-popup {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .settings-content {
        width: 95%;
        max-width: 350px;
    }
    
    .settings-header {
        padding: 15px;
    }
    
    .settings-header h3 {
        font-size: 1.1rem;
    }
    
    .settings-content {
        padding: 15px;
    }
    
    .settings-section {
        margin-bottom: 20px;
    }
    
    .settings-link {
        font-size: 0.85rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

@media (max-width: 480px) {
    .settings-popup {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }
    
    .settings-content {
        width: 98%;
        max-width: none;
    }
    
    .settings-header {
        padding: 12px;
    }
    
    .settings-header h3 {
        font-size: 1rem;
    }
    
    .settings-content {
        padding: 12px;
    }
    
    .settings-section h4 {
        font-size: 0.9rem;
    }
    
    .settings-link {
        font-size: 0.8rem;
        padding: 10px 0;
    }
    
    .settings-select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Settings popup scrollbar */
.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: var(--hover-bg);
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    padding-right: 40px;
    position: relative;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.settings-done {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-hover);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

.settings-link i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i {
    color: white;
}

:root {
    --border-color: var(--light-gray);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --input-bg: var(--card-bg);
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
}

.dark-theme {
    --border-color: var(--header-border);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: var(--header-bg);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
    color: white;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Grants page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.settings-popup.show .settings-content {
    transform: translateY(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.settings-close:hover {
    background: var(--hover-bg);
}

.settings-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    appearance: none;
    padding-right: 40px;
    position: relative;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.settings-done {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.settings-done:hover {
    background: var(--primary-hover);
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

.settings-link i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.settings-link:hover i {
    color: white;
}

:root {
    --border-color: var(--light-gray);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --input-bg: var(--card-bg);
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
}

.dark-theme {
    --border-color: var(--header-border);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --input-bg: var(--header-bg);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
    color: white;
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
/* Miscellaneous page CSS styles */
:root {
    --primary: #16B2DC;
    --primary-dark: #0E8FB7;
    --secondary: #1E27CE;
    --dark: #140808;
    --light: #F7F7F7;
    --gray: rgba(20, 8, 8, 0.7);
    --light-gray: rgba(20, 8, 8, 0.23);
    --border: 1px solid rgba(0, 0, 0, 0.18);
    --active-color: #FFD700;
    --bg-color: #F7F7F7;
    --text-color: #140808;
    --card-bg: white;
    --footer-bg: rgba(20, 8, 8, 0.8);
    --footer-bottom-bg: #16B2DC;
}

.dark-theme {
    --bg-color: #140808;
    --text-color: #F7F7F7;
    --card-bg: #222;
    --light: #222;
    --dark: #F7F7F7;
    --footer-bg: #222;
    --footer-bottom-bg: #0E8FB7;
    --gray: rgba(247, 247, 247, 0.7);
    --light-gray: rgba(247, 247, 247, 0.23);
    --header-bg: #1a1a1a;
    --header-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding-top: 180px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.container { max-width: 1920px; margin: 0 auto; position: relative; }

/* Header Styles */
.header-container { width: 100%; margin: 0 auto; background: var(--bg-color); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.dark-theme .header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.top-bar { height: 100px; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; background: var(--bg-color); position: relative; }
.dark-theme .top-bar { background: var(--header-bg); }
.logo-container { height: 80px; transition: transform 0.3s ease; display: flex; align-items: center; margin-left: 0; padding-left: 0; }
.logo { height: 100%; width: auto; max-height: 80px; object-fit: contain; }
.logo-container:hover { transform: scale(1.03); }
.donate-btn { background: #FF6B6B; color: white; padding: 10px 25px; border-radius: 6px; font-weight: 600; text-decoration: none; display: flex; align-items: center; transition: all 0.3s ease; position: absolute; right: 20px; font-size: 0.9rem; }
.donate-btn:hover { background: #FF5252; transform: translateY(-2px); }
.donate-btn i { margin-right: 8px; }
.upper-header-container { background: var(--bg-color); border-bottom: var(--border); width: 100%; }
.dark-theme .upper-header-container { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.upper-header { height: 60px; background: var(--bg-color); display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dark-theme .upper-header { background: var(--header-bg); }
.date { font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.5; margin-right: auto; color: var(--text-color); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-family: 'Open Sans', sans-serif; font-size: 0.9rem; line-height: 1.25; cursor: pointer; transition: all 0.3s ease; margin-left: 15px; text-decoration: none; }
.btn i { margin-right: 8px; font-size: 0.8rem; }
.btn-outline { border: 1px solid var(--primary); background: transparent; color: var(--text-color); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-solid { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-solid:hover { background: var(--primary-dark); }
.social-icons { display: flex; gap: 12px; margin-left: 25px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 0.875rem; text-decoration: none; }
.social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); text-decoration: none; }
.main-header-container { background: var(--primary); width: 100%; padding: 0; transition: all 0.3s ease; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.dark-theme .main-header-container { background: var(--header-bg); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.main-header { height: auto; display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 8px 20px; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0; }
.nav-link { color: white; text-decoration: none; font-size: 0.75rem; line-height: 1.2; white-space: nowrap; position: relative; padding: 16px 18px; transition: all 0.3s ease; border-radius: 8px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; background: rgba(255, 255, 255, 0.1); }

.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown .nav-link::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-dropdown-header { cursor: pointer; }

.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--card-bg); min-width: 200px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; backdrop-filter: blur(20px); }

.dark-theme .dropdown-menu { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

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

.dropdown-item:hover { background: var(--primary); color: white; transform: translateX(4px); }

.dropdown-item i { margin-right: 8px; width: 16px; color: var(--primary); }

.dropdown-item:hover i { color: white; }
.dark-theme .nav-link { color: var(--text-color); }
.nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.3); }
.nav-link:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); }
.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Main Content */
.main-content-container { width: 100%; max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; }
.content-main { flex: 1; margin-right: 20px; }
.content-sidebar { width: 300px; }

/* Hero Section */
.hero-section { position: relative; margin-bottom: 40px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dark-theme .hero-section { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-carousel { position: relative; height: 500px; overflow: hidden; }
.hero-carousel-inner { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
.hero-slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 35px 25px 60px; 
    color: white; 
    z-index: 2; 
    background: linear-gradient(transparent, rgba(0,0,0,0.92)); 
}
.hero-slide-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.8); 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    letter-spacing: -0.02em;
}
.hero-slide-meta { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 12px; 
    font-size: 0.8rem;
    font-weight: 500;
}
.hero-slide-meta span { 
    display: flex; 
    align-items: center;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide-meta i { 
    margin-right: 6px; 
    color: var(--active-color); 
    font-size: 0.7rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.news-ticker { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40px; 
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.95) 0%, rgba(14, 143, 183, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    z-index: 3;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
}

.ticker-label { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; 
    padding: 0 16px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 0.8rem; 
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-label::before {
    content: '🔥';
    margin-right: 8px;
    animation: pulse-fire 2s ease-in-out infinite;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3));
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

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

.ticker-content { 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 215, 0, 0.1) 100%);
}

.ticker-text { 
    color: white; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    animation: scroll-ticker 35s linear infinite;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 20px;
}

.ticker-text::before {
    content: '✨ ';
    color: #FFD700;
    margin-right: 5px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } }

/* Dark theme adjustments */
.dark-theme .news-ticker {
    background: linear-gradient(135deg, rgba(22, 178, 220, 0.9) 0%, rgba(14, 143, 183, 0.9) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.dark-theme .ticker-label {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .ticker-text {
        font-size: 0.75rem;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }
    
    .ticker-label::before {
        margin-right: 6px;
    }
    
    .ticker-text {
        font-size: 0.7rem;
        padding-left: 12px;
    }
}
.hero-slide-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.hero-slide-featured { position: absolute; top: 20px; left: 20px; color: var(--active-color); font-size: 1.5rem; z-index: 2; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 15px; z-index: 2; }
.hero-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.3); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1.2rem; }
.hero-nav-btn:hover { background: rgba(255,255,255,0.5); }
.hero-indicators { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 2; }
.hero-indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.hero-indicator.active { background: white; transform: scale(1.2); }

/* Horizontal Ad Cards */
.horizontal-ads { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.horizontal-ad-card { flex: 1; min-width: 200px; background: var(--card-bg); padding: 15px; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s ease; }
.horizontal-ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: var(--primary-dark); }
.horizontal-ad-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.horizontal-ad-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.horizontal-ad-text { font-size: 0.8125rem; color: var(--gray); margin-bottom: 12px; line-height: 1.4; }
.horizontal-ad-btn { background: var(--primary); color: white; border: none; padding: 6px 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 0.75rem; width: 100%; max-width: 120px; }
.horizontal-ad-btn:hover { background: var(--primary-dark); }

/* Opportunity Cards */
.opportunity-card { background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; width: 285px; display: flex; flex-direction: column; border: 1px solid var(--light-gray); position: relative; }
.dark-theme .opportunity-card { border: 1px solid var(--header-border); }
.opportunity-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.opportunity-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.opportunity-badge { position: absolute; top: 8px; right: 8px; background: var(--primary); color: white; padding: 3px 6px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; border-radius: 3px; }
.opportunity-featured { position: absolute; top: 8px; left: 8px; color: var(--active-color); font-size: 1.1rem; z-index: 1; }
.opportunity-status { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.status-icon { font-size: 0.9rem; margin-bottom: 1px; }
.status-text { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; }
.status-expired { color: #e74c3c; }
.status-active { color: #27ae60; }
.status-rolling { color: #3498db; }
.status-ongoing { color: #f39c12; }
.status-not_specified { color: #9b59b6; }
.status-no_deadline { color: #34495e; }

/* Status icon and text colors */
.status-icon-color-expired { color: #e74c3c !important; }
.status-icon-color-active { color: #27ae60 !important; }
.status-icon-color-rolling { color: #3498db !important; }
.status-icon-color-ongoing { color: #f39c12 !important; }
.status-icon-color-not_specified { color: #9b59b6 !important; }
.status-icon-color-no_deadline { color: #34495e !important; }

.status-text-color-expired { color: #e74c3c !important; }
.status-text-color-active { color: #27ae60 !important; }
.status-text-color-rolling { color: #3498db !important; }
.status-text-color-ongoing { color: #f39c12 !important; }
.status-text-color-not_specified { color: #9b59b6 !important; }
.status-text-color-no_deadline { color: #34495e !important; }

/* Posted date styling */
.posted-date-style {
    color: var(--gray);
    font-size: 0.75rem;
}

.posted-date-icon {
    color: var(--gray);
    font-size: 0.65rem;
    margin-right: 4px;
}

/* Additional CSS classes for inline style replacements */
.mobile-social-icons-spacing {
    margin-top: 5px;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

.view-more-container {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-more-btn i {
    margin-right: 8px;
}

.sidebar-title-spacing {
    margin-top: 15px;
}

.contact-email {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: italic;
}

.contact-email:hover {
    color: #FFD700;
}

.support-title {
    margin-top: 30px;
}

.footer-quote i {
    color: #FFD700;
}

.footer-quote .fa-quote-left {
    margin-right: 8px;
}

.footer-quote .fa-quote-right {
    margin-left: 8px;
}

.footer-link:hover {
    color: #FFD700;
}

.footer-link[data-action="connect"] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link[data-action="connect"]:hover {
    transform: translateX(3px);
}

.designer-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary) !important;
}
.opportunity-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.opportunity-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: var(--text-color); line-height: 1.3; font-family: 'Open Sans', sans-serif; position: relative; padding-right: 55px; }
.opportunity-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.75rem; color: var(--gray); gap: 8px; }
.opportunity-meta i { margin-right: 4px; color: var(--primary); font-size: 0.7rem; }
.opportunity-meta span { display: flex; align-items: center; }
.opportunity-deadline { background: var(--light); padding: 6px 10px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); margin-top: auto; }
.dark-theme .opportunity-deadline { background: var(--header-bg); }
.deadline-label { font-weight: 600; color: #e74c3c; }
.deadline-date { font-weight: 500; }
.opportunity-organization { display: flex; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.dark-theme .opportunity-organization { border-top: 1px solid var(--header-border); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: #f1f1f1; margin-right: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dark-theme .org-logo { background: #333; }
.org-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.org-name { font-size: 0.75rem; color: var(--gray); font-weight: 500; }

/* Grid and Sections */
.opportunities-grid { display: grid; grid-template-columns: repeat(3, 285px); gap: 20px; margin: 30px 0; padding: 0; justify-content: space-between; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 0 10px 0; border-bottom: 2px solid var(--primary); }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.view-all { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; font-size: 0.875rem; }
.view-all i { margin-left: 5px; font-size: 0.75rem; }

/* Sidebar */
.sidebar-card { background: var(--card-bg); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; border: 1px solid var(--light-gray); }
.dark-theme .sidebar-card { border: 1px solid var(--header-border); }
.sidebar-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--light-gray); font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.dark-theme .sidebar-title { border-bottom: 1px solid var(--header-border); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; padding-right: 40px; background: var(--card-bg); color: var(--text-color); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--primary); cursor: pointer; }
.language-select, .theme-select { width: 100%; padding: 8px 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 0.875rem; background-color: var(--card-bg); color: var(--text-color); cursor: pointer; margin-bottom: 15px; }

/* Footer */
.back-to-top-container { width: 100%; display: flex; justify-content: center; margin: 32px 0; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; min-width: 136px; height: 38px; border: 1px solid rgba(22, 178, 220, 0.36); background: transparent; color: rgba(22, 178, 220, 0.88); font-weight: 400; font-size: 1.125rem; line-height: 1.125rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.back-to-top:hover { background: rgba(22, 178, 220, 0.1); border-color: rgba(22, 178, 220, 0.8); color: rgba(22, 178, 220, 1); }
.back-to-top i { margin-right: 8px; }

.footer-section:first-child { display: flex; align-items: flex-start; justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-section h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25rem; color: rgba(255,255,255,0.95); margin-bottom: 1.5rem; font-family: 'Open Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-section p { font-weight: 400; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.footer-logo img { height: 100%; width: auto; max-height: 140px; object-fit: contain; filter: brightness(1.1); }
.footer-logo:hover { transform: scale(1.05); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; min-width: 20px; }
.contact-details { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.contact-value { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 500; line-height: 1.4; }
.social-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.social-link { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 1rem; padding: 7px 0; background: transparent; border: none; width: auto; height: auto; transition: color 0.2s; }
.social-link i { font-size: 1.15rem; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.social-link-label { font-size: 1rem; }
.social-link:hover { color: #fff; background: transparent; }
.social-link:hover i { color: var(--primary); }
.footer-btn:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-btn-feedback:hover { background: linear-gradient(135deg, #0E8FB7, #16B2DC); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 178, 220, 0.4); }

.footer-bottom p { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }
.footer-bottom i { margin-right: 5px; }

/* Modal Styles */
.language-modal, .search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.language-modal.show, .search-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--card-bg); border-radius: 12px; max-width: 500px; width: 90%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.7); transition: transform 0.3s ease; }
.language-modal.show .modal-content, .search-modal.show .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.modal-header h3 { margin: 0; color: var(--text-color); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); transition: color 0.3s ease; }
.modal-close:hover { color: var(--text-color); }
.language-options {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.language-options::-webkit-scrollbar {
    width: 6px;
}

.language-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.language-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 8px; }
.lang-option:hover { background: var(--primary); color: white; }
.search-form { padding: 20px; display: flex; gap: 10px; }
.modal-search-input { flex: 1; padding: 12px; border: 1px solid var(--light-gray); border-radius: 6px; font-size: 16px; background: var(--card-bg); color: var(--text-color); }
.modal-search-btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; }
.modal-search-btn:hover { background: var(--primary-dark); }
.search-results { padding: 0 20px 20px; overflow-y: auto; flex: 1; max-height: 400px; }

@media (max-width: 1024px) {
    .search-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 2px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .search-form {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-search-btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-results {
        padding: 0 15px 15px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-item h5 {
        font-size: 14px;
    }
    
    .search-result-item p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-modal {
        padding: 1px;
        align-items: flex-start;
        padding-top: 5px;
    }
    
    .search-modal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 4px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .search-form {
        padding: 12px;
    }
    
    .search-results {
        padding: 0 12px 12px;
        max-height: 250px;
    }
}
.search-result-item { padding: 15px; border: 1px solid var(--light-gray); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.search-result-item:hover { background: var(--light); transform: translateY(-2px); }
.search-result-item h5 { margin-bottom: 5px; color: var(--primary); }
.search-result-item p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Mobile Header */
.mobile-header { display: none; align-items: center; height: 70px; padding: 0 20px; justify-content: space-between; background: var(--bg-color); border-bottom: 1px solid var(--light-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-theme .mobile-header { background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mobile-header .date { font-size: 0.8rem; color: var(--text-color); font-weight: 500; min-width: 80px; }
.mobile-header .logo-container { height: 55px; flex: 1; display: flex; justify-content: flex-start; align-items: center; margin: 0 15px; }
.mobile-header .logo { height: 100%; width: auto; object-fit: contain; filter: brightness(1.1) contrast(1.1); }

@media (max-width: 1024px) {
    .mobile-header .date { display: none; }
    .mobile-header .logo-container { margin: 0; }
}
.mobile-header .nav-toggle { background: transparent; color: var(--text-color); border: none; padding: 10px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; border-radius: 8px; min-width: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-header .nav-toggle:hover { background: var(--light-gray); transform: scale(1.05); }
.dark-theme .mobile-header .nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* Navigation Menu */
.nav-menu { position: fixed; top: 80px; left: -100%; width: 320px; height: calc(100vh - 80px); background: var(--card-bg); transition: left 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 999; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.nav-menu-content { padding: 20px; min-height: 100%; padding-bottom: 150px; padding-top: 30px; }
.mobile-social-icons { display: flex; justify-content: space-evenly; align-items: center; margin-bottom: 25px; margin-top: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.mobile-social-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--primary); transition: all 0.3s ease; font-size: 1rem; text-decoration: none; }
.mobile-social-icon:hover { transform: translateY(-3px); background-color: var(--primary-dark); }
.nav-menu.active { left: 0; }
.nav-section { margin-bottom: 25px; }
.nav-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--light-gray); }
.nav-section-header { color: var(--primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding: 12px 15px; border-bottom: 1px solid var(--light-gray); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-radius: 6px; }
.nav-section-header:hover { background: var(--light-gray); }
.nav-section-header i { transition: transform 0.3s ease; }
.nav-section-header.active i { transform: rotate(180deg); }
.nav-section-content { display: none; padding: 0; margin-bottom: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.dark-theme .nav-section-content { background: rgba(34, 34, 34, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-section-content.active { display: block; }
.nav-section-content .nav-link { display: block; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-size: 0.85rem; font-weight: 400; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: var(--card-bg); border-radius: 0; font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.nav-section-content .nav-link:last-child { border-bottom: none; }
.nav-section-content .nav-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
.nav-section-content .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-section-content .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.nav-section-content .nav-link i { margin-right: 8px; width: 16px; color: var(--primary); }
.nav-section-content .nav-link:hover i { color: white; }
.dark-theme .nav-section-content .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(34, 34, 34, 0.95); }
.dark-theme .nav-section-content .nav-link:hover { background: var(--primary); color: white; }
.nav-single-link { text-decoration: none; }
.nav-single-link:hover { text-decoration: none; }
.dark-theme .nav-section-header { border-bottom: 1px solid var(--header-border); }
.dark-theme .nav-section-header:hover { background: rgba(255,255,255,0.1); }
.nav-menu .nav-link { display: block; color: var(--text-color); text-decoration: none; padding: 14px 15px; margin-bottom: 8px; border-radius: 6px; transition: all 0.3s ease; font-size: 0.95rem; font-weight: 500; }
.nav-menu .nav-link:hover { background: var(--primary); color: white; transform: translateX(5px); }
.nav-menu .nav-link.active { 
    background: transparent; 
    color: var(--text-color); 
    font-weight: 500;
    position: relative;
}

.nav-menu .nav-link.active::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid var(--light-gray); padding: 10px 0; z-index: 1000; }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gray); transition: all 0.3s ease; padding: 5px; }
.bottom-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); transform: translateY(-2px); }
.bottom-nav-item.donate { color: #FF6B6B; }
.bottom-nav-item.donate:hover { color: #FF5252; }

/* Overlay */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* Responsive Design */
@media (min-width: 1200px) {
    .opportunity-image { height: 130px; }
    .opportunity-content { padding: 10px; }
    .opportunity-title { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.25; }
    .opportunity-meta { margin-bottom: 6px; font-size: 0.7rem; gap: 6px; }
    .opportunity-deadline { padding: 5px 8px; font-size: 0.65rem; }
    .opportunity-organization { margin-top: 6px; padding-top: 6px; }
    .org-logo { width: 28px; height: 28px; margin-right: 6px; }
    .org-logo img { width: 28px; height: 28px; }
    .org-name { font-size: 0.7rem; }
}

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, 285px); justify-content: space-around; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (min-width: 1281px) {
    .mobile-header { display: none !important; }
    .mobile-bottom-nav { display: none !important; }
    .nav-menu { display: none !important; }
    
    
    
}
/* ── Tablet only (769px–1280px): bigger header + taller cards ──── */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-header { height: 85px !important; }
    .mobile-header .logo-container { height: 65px; }
    .nav-menu { top: 85px !important; height: calc(100vh - 85px) !important; }
    body { padding-top: 85px !important; }
    .opportunity-image { height: 200px !important; }
    .opportunity-card { width: 100%; }
}

@media (max-width: 1280px) {
    body { padding-top: 70px !important; padding-bottom: 70px; }
    .upper-header-container, .top-bar, .main-header-container { display: none !important; }
    .mobile-header { display: flex !important; }
    .mobile-bottom-nav { display: block !important; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    
    
    
    
    .footer-section:first-child { order: -1; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
    .footer-section:nth-child(2) { order: 1; }
    .footer-section:nth-child(3) { order: 2; }
    .footer-section:nth-child(4) { order: 3; }
    .footer-section:nth-child(5) { order: 4; }
    .footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.95); text-align: center; position: relative; }
    .footer-section h3::after { width: 60px; left: 50%; transform: translateX(-50%); }
    .footer-section p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; text-align: center; }
    
    
    
    .contact-info { gap: 15px; align-items: center; }
    .contact-item { justify-content: center; text-align: center; gap: 8px; align-items: center; }
    .contact-item i { font-size: 1.1rem; min-width: 18px; display: flex; justify-content: center; }
    .contact-details { align-items: center; text-align: center; flex: 1; }
    .contact-value { font-size: 0.9rem; }
    .social-links { display: flex; justify-content: space-evenly; align-items: center; margin-top: 20px; max-width: 100%; margin-left: 0; margin-right: 0; }
    .social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; justify-content: center; align-items: center; font-size: 0; padding: 0; min-width: unset; gap: 0; border: none; }
    .social-link-label { display: none; }
    .social-link:hover { background: transparent; }
    .social-link i { color: white; font-size: 1.1rem; width: auto; min-width: unset; display: flex; align-items: center; justify-content: center; }
    .main-content-container { flex-direction: column; padding: 0 16px; }
    .content-main { margin-right: 0; }
    .content-sidebar { display: none; }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opportunity-card { width: 100%; }
}
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 1024px) {
    
    .footer-bottom-content p { 
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .footer-bottom-content p:first-child {
        order: 1;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
    }
    .footer-bottom-content p:nth-child(2) {
        order: 3;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .footer-bottom-content p:last-child {
        order: 2;
        font-size: 0.75rem;
        opacity: 0.8;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        width: 100%;
    }
    
    
    
    
    
    
    .footer-section:first-child {
        order: -1;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section:nth-child(2) {
        order: 1;
    }
    
    .footer-section:nth-child(3) {
        order: 2;
    }
    
    .footer-section:nth-child(4) {
        order: 3;
    }
    
    .footer-section:nth-child(5) {
        order: 4;
    }
    
    
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #FFD700;
        position: relative;
    }
    
    .footer-section h3::after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .contact-info {
        gap: 15px;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        gap: 8px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        min-width: 18px;
        display: flex;
        justify-content: center;
    }
    
    .contact-details {
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .social-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; max-width: 100%; margin-left: 0; margin-right: 0; }
    
    .social-link { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0; border: 1px solid rgba(255,255,255,0.18); transition: background 0.2s, transform 0.2s; }
    
    .social-link i { font-size: 0.88rem; color: rgba(255,255,255,0.85); width: auto; }
    
    .social-link:hover { background: transparent; }
    
    
    
    
    
    .footer-bottom-content p:nth-child(2) {
        font-style: italic;
    }
    .upper-header-container, .top-bar, .main-header-container { display: none; }
    .mobile-header { display: flex; }
    .mobile-bottom-nav { display: block; }
    .nav-menu { top: 70px; height: calc(100vh - 70px); }
    .main-content-container { flex-direction: column; margin-top: 20px; }
    .content-main { margin-right: 0; margin-bottom: 20px; }
    .content-sidebar { display: none; }
    .hero-carousel {
        height: 300px;
    }
    
    .hero-slide-content {
        padding: 22px 18px 50px;
    }
    
    .hero-slide-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .hero-slide-meta {
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .hero-slide-meta span {
        padding: 3px 7px;
        font-size: 0.65rem;
        max-width: 130px;
        border-radius: 12px;
    }
    
    .hero-slide-meta i {
        margin-right: 4px;
        font-size: 0.6rem;
    }
    .opportunities-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .opportunity-card { width: 100%; }
    .horizontal-ads { flex-direction: column; }
    .horizontal-ad-card { min-width: 100%; }
}

@media (max-width: 600px) {
    .opportunities-grid { grid-template-columns: 1fr; }
    .hero-carousel {
        height: 280px;
    }
    
    .hero-slide-content {
        padding: 18px 12px 45px;
    }
    
    .hero-slide-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-slide-meta {
        gap: 6px;
        font-size: 0.65rem;
    }
    
    .hero-slide-meta span {
        padding: 2px 6px;
        font-size: 0.6rem;
        max-width: 110px;
        border-radius: 10px;
    }
    
    .hero-slide-meta i {
        margin-right: 3px;
        font-size: 0.55rem;
    }
}

/* Sticky header on scroll */
.header-container.scrolled .top-bar {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

.form-actions button[type="button"]:hover {
    background: var(--gray);
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body-scroll {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-modal {
    max-height: 80vh;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Search error styling */
.search-error {
    color: red;
}

/* Search result item styling */
.search-result-item-style {
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item-style:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.search-result-title {
    margin-bottom: 5px;
    color: var(--primary);
}

.search-result-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
}

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

.skeleton-card {
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-hero {
    height: 400px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Hidden content classes */
.hidden-content {
    display: none !important;
}

.visible-content {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skeleton-card {
        height: 250px;
    }
    
    .skeleton-hero {
        height: 300px;
    }
}

/* Security Enhancement Styles */
.honeypot {
    position: absolute !important;
    left: -5000px !important;
    top: -5000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--success-color, #10b981);
    margin-top: 5px;
}

.security-indicator i {
    color: var(--success-color, #10b981);
}

.rate-limit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-warning i {
    color: #dc2626;
    font-size: 1rem;
}

.security-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.security-notice i {
    color: #1d4ed8;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error i {
    font-size: 0.7rem;
}

.input-secure {
    border-color: var(--success-color, #10b981) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badge i {
    font-size: 0.6rem;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Connect Modal Styles */
.connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.connect-modal.show {
    opacity: 1;
    visibility: visible;
}

.connect-modal-card {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
}

.connect-modal.show .connect-modal-card {
    transform: scale(1) translateY(0);
}

.connect-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.connect-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.connect-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.connect-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 8px 0 0;
    font-weight: 400;
}

.connect-modal-body {
    padding: 30px 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 178, 220, 0.15);
}

.social-btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.social-btn-content {
    flex: 1;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-color);
}

.social-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.email-btn .social-btn-icon {
    background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.linkedin-btn .social-btn-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.twitter-btn .social-btn-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.github-btn .social-btn-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.facebook-btn .social-btn-icon {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

/* Dark theme styles */
.dark-theme .rate-limit-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.dark-theme .security-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.dark-theme .form-security-footer {
    border-top-color: var(--header-border);
    color: rgba(247, 247, 247, 0.6);
}

.dark-theme .validation-error {
    color: #f87171;
}

.dark-theme .security-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark-theme .connect-modal-card {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
}

.dark-theme .social-btn {
    background: var(--header-bg);
    border-color: var(--header-border);
}

.dark-theme .social-btn:hover {
    border-color: var(--primary);
    background: rgba(22, 178, 220, 0.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .connect-modal-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .connect-modal-header {
        padding: 20px;
    }
    
    .connect-modal-title {
        font-size: 1.3rem;
    }
    
    .connect-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .connect-modal-body {
        padding: 25px 20px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1.1rem;
    }
    
    .social-title {
        font-size: 0.9rem;
    }
    
    .social-desc {
        font-size: 0.75rem;
    }
}

/* Settings Popup Styles */
.settings-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.settings-popup.show {
    opacity: 1;
    visibility: visible;
}

.settings-popup-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--light-gray);
}

.dark-theme .settings-popup-content {
    border: 1px solid var(--header-border);
}

.settings-popup.show .settings-popup-content {
    transform: scale(1) translateY(0);
}

.settings-popup-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.settings-popup-body {
    padding: 25px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.settings-popup-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
}

.settings-done {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.settings-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.dark-theme .settings-popup-footer {
    border-top-color: var(--header-border);
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.settings-link span {
    margin-left: 12px;
    margin-right: auto;
}

.settings-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.settings-link i:first-child {
    color: var(--primary);
    font-size: 1.1rem;
}

.settings-link:hover i:first-child {
    color: white;
}

.settings-link i:last-child {
    color: var(--gray);
    font-size: 0.9rem;
}

.settings-link:hover i:last-child {
    color: white;
}

.dark-theme .settings-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--header-border);
}

.dark-theme .settings-link:hover {
    background: var(--primary);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .settings-popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .settings-popup-header {
        padding: 18px;
    }
    
    .settings-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .settings-popup-body {
        padding: 20px;
    }
    
    .settings-account-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-account-link {
        margin-left: 0;
        justify-content: center;
    }
}

/* Security-related styles for forms and notifications */
.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 15px;
}

.security-badge i {
    font-size: 16px;
}

/* Input validation styles */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.input-secure {
    border-color: #16a34a !important;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Honeypot field hiding */
.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Sidebar typography consistency - LinkedIn-style fonts */
.search-input,
.sidebar-title,
.language-select,
.theme-select,
.search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* Additional specificity for sidebar elements */
.sidebar-card .search-input,
.sidebar-card .sidebar-title,
.sidebar-card .language-select,
.sidebar-card .theme-select {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.sidebar-card .search-input::placeholder {
    font-family: 'Source Sans Pro', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* ── Prevent horizontal overflow ─────────────────────────────── */
html { overflow-x: hidden; }
.main-content-container { box-sizing: border-box; }

/* ── Small phones ≤420px ──────────────────────────────────────── */
@media (max-width: 420px) {
    .main-content-container { padding: 0 10px; }
    .opportunities-grid { grid-template-columns: 1fr; gap: 12px; }
    .opportunity-card { width: 100%; }
    .section-title { font-size: 1.1rem; }
}
