/* ===== THEME ===== */
    :root { 
        --bg: #f9fafb; 
        --nav: #ffffff; 
        --text: #111; 
        --muted: #6b7280; 
        --accent: #f5c400; 
        --card: #ffffff; 
        --border: #e5e7eb; 
    }
    
    * {
        box-sizing:border-box; 
        margin:0; 
        font-family:Inter, sans-serif;
    }
    
    body { 
        background: var(--bg); 
        color: var(--text); 
    }

/* ===== NAVBAR ===== */
    
    .nav-wrap { 
        position:sticky; 
        top:16px; 
        display:flex; 
        justify-content:center; 
        z-index:1000; }
    
    .navbar { 
        width:min(1200px,92%); 
        background:rgba(20,20,20,58%); 
        backdrop-filter:blur(12px); 
        border-radius:18px; 
        padding:14px 20px; 
        display:flex; 
        justify-content:space-between; 
        align-items:center; 
        /*box-shadow:0 20px 60px rgba(0,0,0,0.59); */
    }
    
    .logo {
        height: 45px;
    }
    
    .search-desktop, .search-mobile { 
        display: flex; 
        align-items: center; 
        gap: 10px;  
        border: 1px solid #222; 
        border-radius: 18px; 
        padding: 10px 14px; 
        background: #fff; 
        border: 1px solid var(--border);
    }
    
    .search-desktop input { 
        background: none; 
        border: none; 
        outline: none; 
        color: #111; 
        width: 100%; 
        font-size: 14px; 
    }
    
    .search-desktop i { 
        color: var(--accent); 
    }
    
    .search-desktop { 
        flex: 1; 
        max-width: 400px; 
    }
    
    .search-mobile { 
        display: none; 
    }
    
    .search-desktop { 
        position: relative; 
    }

/* RESULTS BOX */
    .search-results {
        position: absolute;
        top: 120%;
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        overflow: hidden;
        display: none;
        z-index: 999;
    }

    /* Desktop only */
    @media (min-width: 768px) {
        .search-results {
            width: 500px; /* or 550px / 600px depending on taste */
            left: 50%;
            transform: translateX(-50%);
        }
    }

    .search-mobile {
        position: sticky;
        top: 100px;
        z-index: 999;
    }

/* Make results float nicely on mobile */
    .search-mobile .search-results {
        position: absolute;
        top: 110%;
        left: 0;
        width: 100%;
    }

/* EACH ITEM */
    .search-item {
        display: flex;
        gap: 12px;
        padding: 10px 12px;
        cursor: pointer;
        transition: 0.2s;
        align-items: center;
    }

    .search-item:hover {
        background: #f5f5f5;
    }

    .search-thumb {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        object-fit: cover;
    }

    .search-info {
        display: flex;
        flex-direction: column;
        font-size: 14px;
    }

    .search-info strong {
        color: #111;
    }

    .search-info small {
        color: #777;
    }

    .search-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
    }

        /* Text */
    .search-item span {
        font-size: 14px;
        color: #222;
    }

        /* "More results" */
    .search-item.more-results {
        text-align: center;
        font-weight: 600;
        color: var(--accent);
    }

    .nav-actions { 
        display:flex; 
        gap:10px; 
    }

    .toggle { 
        display: none; 
    }

    .offcanvas { 
        background: #111; 
        color: white; 
    } 

    .offcanvas a { 
        color: #ccc; 
        padding: 10px 0; 
    }

    .offcanvas a:hover { 
        color: var(--accent); 
    }

/* ===== BUTTONS ===== */
    .btn { 
        padding:10px 18px; 
        border-radius:999px; 
        font-weight:600; 
        cursor:pointer; 
        border:none; 
        transition:.3s; 
    }

    .btn-primary { 
        background:var(--accent); 
        color:#000; 
    }

    .btn-primary:hover { 
        transform:translateY(-2px); 
        background:var(--accent); 
        color: #000;
        box-shadow:0 10px 25px rgba(245,196,0,.3); 
    }

    .btn-outline { 
        border:1px solid var(--accent); 
        color:var(--accent); 
        background:transparent; 
    }

    .btn-outline:hover { 
        background:var(--accent); 
        color:#000; 
    }

      /* ===== HERO ===== */
    .hero { 
        max-width:1200px; 
        margin:50px auto; 
        padding:0 20px; 
    }

    .hero-box { 
        height:520px; 
        border-radius:28px; 
        overflow:hidden; 
        position:relative; 
        background:url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4') center/cover; 
        box-shadow:0 7px 30px rgba(0,0,0,.9); 
    }

    .hero-overlay { 
        position:absolute; 
        inset:0; 
        background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent); 
    }

    .hero-content { 
        position:absolute; 
        bottom:50px; 
        left:50px; 
        max-width:450px; 
    }

    .hero h1 { 
        color: #fff; 
    }

    .hero p { 
        color: #e5e7eb; 
    }


/* ===== ABOUT ===== */
    .about { 
        max-width:900px; 
        margin:60px auto; 
        text-align:center; 
        color:var(--muted); 
    }

    
    .about button {
        margin-top:20px;
    }

/* ===== CATEGORIES ===== */
    .categories { 
        max-width:1200px; 
        margin:80px auto; 
        padding:0 20px; 
    }

    .cat-row { 
        display: flex; 
        gap: 20px; 
        margin-top: 30px; 
        padding-bottom: 10px; 
        justify-content: center; 
    }

    .cat-row::-webkit-scrollbar { 
        display: none; 
    }

    .cat-pill { 
        display: flex; 
        align-items: center; 
        gap: 14px; 
        background: #fff; 
        padding: 14px 22px; 
        border-radius: 50px; 
        border: 1px solid var(--border); 
        cursor: pointer; 
        white-space: nowrap; 
        transition: all 0.3s ease; 
        box-shadow: 0 6px 20px rgba(0,0,0,0.06); 
    }

    .cat-pill:hover { 
        transform: translateY(-3px); 
        box-shadow: 0 12px 30px rgba(0,0,0,0.12); 
    }

    .cat-pill .icon { 
        width: 40px; 
        height: 40px; 
        border-radius: 50%; 
        background: rgba(245,196,0,0.15); 
        display: flex; 
        align-items: center; justify-content: center; 
    }

    .cat-pill i { 
        color: var(--accent); 
        font-size: 18px; 
    }

    .cat-pill span { 
        font-weight: 600; 
        color: var(--text); 
    }


/* ===== EVENTS ===== */
    .section { 
        max-width:1200px; 
        margin:80px auto; 
        padding:0 20px;
        background: transparent; 
    }

    .badge {
  position: absolute;
    top: 245px;
    left: 15px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 15px;
  color: #fff;
}

.badge-event { background: #f5c400; color:#6a6a6a; }
.badge-conference { background: #28a745; }
.badge-fundraiser { background: #007bffcc; }

    .cards { 
        display:grid; 
        grid-template-columns:repeat(4,1fr); 
        gap:20px; 
        margin-top: 30px; 
        width: max-content;
    }
    
    /* ===== TEXT TRUNCATION ===== */
    .truncate-1 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .truncate-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card:hover { 
        transform: translateY(-6px) scale(1.02); 
    }

    .card img { 
        width:100%; 
        height:200px; 
        object-fit:cover; 
    }

    .card-body {
        padding:16px 16px 30px 16px;
    }

    .card p {
        color:var(--muted); 
        font-size: 15px;
        margin: 0;
    }

    .card a {
        color:#000; 
        text-decoration: none !important;
    }

    .card h4 {
        font-size: 15px;
    }

    .carousel { 
        position: relative; 
        display: flex; 
        align-items: center; 
    }

    .carousel-viewport { 
        position: relative; 
        overflow: hidden; 
        width: 100%; 
        background: transparent; 
        padding: 30px 40px 30px 20px;
    }

    .carousel-viewport::after { 
        content: ""; 
        position: absolute; 
        top: 0; 
        right: 0; 
        width: 80px; 
        height: 100%; 
        background: linear-gradient(to right, transparent, var(--bg)); 
        pointer-events: none;
    }

    .carousel-viewport::before { 
        content: ""; 
        position: absolute; 
        top: 0; 
        left: 0; 
        width: 80px; 
        height: 100%; 
        background: linear-gradient(to left, transparent, var(--bg)); 
        pointer-events: none;
    }

    .carousel-track { 
        display: flex; 
        gap: 20px; 
        transition: transform 0.4s ease;
    }

    .card { 
        flex: 0 0 calc(25% - 15px); 
        background: var(--card); 
        border-radius: 20px; 
        overflow: hidden; 
        border: 1px solid var(--border); 
        transition: transform 0.3s ease, box-shadow 0.3s ease; 
    }

    .carousel-btn { 
        position: absolute; 
        top: 50%; 
        transform: translateY(-50%); 
        width: 48px; 
        height: 48px; 
        border-radius: 50%; 
        border: none; 
        background: rgba(255,255,255,0.9); 
        backdrop-filter: blur(10px); 
        color: #111; 
        cursor: pointer; 
        z-index: 5; 
        box-shadow: 0 8px 25px rgba(0,0,0,0.12); 
        transition: all 0.25s ease; 
    }

    .carousel-btn.left { 
        left: 10px; 
    }

    .carousel-btn.right { 
        right: 10px; 
    }

    .carousel-btn:hover { 
        transform: translateY(-50%) scale(1.08); 
        background: var(--accent); 
        color: #000; 
        box-shadow: 0 12px 30px rgba(245,196,0,0.35); 
    }

    .carousel-btn:active { 
        transform: translateY(-50%) scale(0.95); 
    }


/* ===== CTA ===== */
    .cta { 
        text-align: center; 
        padding: 90px 20px; 
        background: linear-gradient( 135deg, rgba(245,196,0,0.15), rgba(245,196,0,0.05) ); 
        border-top: 1px solid var(--border); 
        border-bottom: 1px solid var(--border); 
    }

    .cta h2 {
        font-size:38px; 
        margin-bottom:10px;
    }

    .cta p {
        color:var(--muted); 
        margin-bottom:25px;
    }


      /* ===== COUNTERS ===== */
    .section-counter { 
        max-width: 1200px; 
        margin: 80px auto; 
        padding: 0 20px; 
    }

    .section-counter h2 { 
        text-align: center; 
        font-size: 38px; 
    }

    .trust { 
        display: flex; 
        justify-content: space-around; 
        text-align: center; 
        margin-top: 40px;
    }

    .counter { 
        font-size: 42px; 
        font-weight: 700; 
        color: var(--accent); 
    }

    .trust p { 
        color: var(--muted); 
    }


      /* ===== FOOTER ===== */
    .footer { 
        margin-top: 80px; 
        padding: 40px 20px 15px; 
        background: rgba(20, 20, 20, .85); 
        border-top: 1px solid #222; 
    }

    .footer-inner { 
        max-width: 1200px; 
        margin: auto; 
        display: grid; 
        grid-template-columns: 1.2fr 2fr; 
        gap: 40px; 
    }

    .footer-logo { 
        height: 50px; 
        margin-bottom: 12px; 
    }
    
    .location{
        margin: 0;
    }

    .contact-info{
        margin: 0;
        color: var(--nav);
        text-decoration: none;
    }

    .footer-brand > .social-links {
        margin-top: 15px;
        padding: 0;
    }

    .footer-brand > .social-links > li {
        display: inline-block;
        margin-right: 10px;
        /*margin-bottom: 10px;*/
        line-height: 32px;
    }

    .footer-brand > .social-links > li:last-child {
        margin-right: 0;
    }

    .footer-brand > .social-links li > .social-link {
        font-size: 18px;
        width: 40px;
        height: 40px;
        display: block;
        border: 2px solid rgba(255,255,255,.7);
        border-radius: 100%;
        text-align: center;
        line-height: 39px;
        color: rgba(255,255,255,.7);
    }

    .footer-brand > .social-links li > .social-link:hover {
        color: #fff !important;
        border: 2px solid #ffab00;
        background-color: #ffab00;
    }
    
    .footer-brand p { 
        color: var(--nav); 
        font-size: 14px; 
        max-width: 320px; 
    }

    .footer-links { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px; 
        margin-top: 20px;
    }

    .footer-links h4 { margin: 0 0 10px; 
        font-size: 14px; 
        color: var(--accent); 
    }

    .footer-links a { 
        display: block; 
        color: var(--nav); 
        font-size: 14px; 
        margin-bottom: 6px; 
        text-decoration: none; 
        transition: color .2s ease; 
    }

    .footer-links a:hover { 
        color: var(--text); 
    }

    .footer-bottom { 
        /*margin-top: 40px; */
        padding-top: 15px; 
        border-top: 1px solid #222; 
        text-align: center; 
        font-size: 13px; 
        color: var(--nav); 
    }


      /* ===== RESPONSIVE ===== */
    @media(max-width:1000px){
        .cat-grid {
            grid-template-columns:repeat(2,1fr);
        }

        .cards {
            grid-template-columns:1fr 1fr;
        }

    }

    @media(max-width:600px){
        .nav-actions { 
            display:flex; 
            gap:10px; 
            display: none; 
        }

        .search-desktop { 
            display: none; 
        }

        .search-mobile input { 
            background: none; 
            border: none; 
            outline: none; 
            color: #fff; 
            width: 100%; 
            font-size: 14px; 
        }

        .search-mobile { 
            display: flex; 
            position: sticky; 
            top: 95px; 
            z-index: 999; 
            margin: 10px 20px; 
            background: rgba(20, 20, 20, 0.74); 
            backdrop-filter: blur(10px); 
            border: none; 
        }

        .toggle { 
            display: block; 
            font-size: 15px; 
            display: block; 
            background: none; 
            border: 1px solid var(--accent); 
            color: var(--accent); 
            border-radius: 7px; 
        }

        .cards {
            grid-template-columns:1fr; 
            width: 100%; 
            padding: 0 25px;
        }

        .cat-row { 
            display: flex; 
            gap: 20px; 
            margin-top: 30px; 
            overflow-x: auto; 
            padding-bottom: 10px; 
            justify-content: left; 
        }

        .cat-row { 
            scroll-snap-type: x mandatory; 
        }

        .cat-pill { 
            scroll-snap-align: start;     
            padding: 14px 14px;
        }

        .hero { 
            max-width:1200px; 
            margin:30px auto; 
            padding:0 20px; 
        }

        .hero-content {
            left:20px; 
            bottom:30px;
            right:20px;
        }

        .hero h1 {
            font-size:32px;
        }

        .about { 
            max-width: 900px; 
            margin: 40px; 
            text-align: center; 
            color: var(--muted); 
            padding-top: 30px;
        }

        .categories { 
            max-width:1200px; 
            margin:80px auto; 
            padding:0 20px; 
            text-align: center;
        }

        .stats {
            flex-direction:column;
        }

        .section-counter h2 { 
            font-size: 30px; 
        }

        .section h2 { 
            text-align: center; 
        }

        .trust { 
            display: flex; 
            justify-content: space-around; 
            text-align: center; 
            flex-direction: column;
            gap: 30px; 
        }

        .search { 
            display: none; 
        }

        .search-mobile i { 
            color: var(--nav); 
        }

        .footer-inner { 
            grid-template-columns: 1fr; 
        }

        .footer-links { 
            grid-template-columns: 1fr 1fr; 
        }

        .card { 
            flex: 0 0 85%; 
        }

        .carousel-btn { 
            width: 38px; 
            height: 38px; 
        }

        .carousel-btn.left { 
            left: 5px; 
        }

        .carousel-btn.right { 
            right: 5px; 
        }

    }