/*=================================================================================================================================================================*/

/* ================= HEADER ================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d1d5db;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* CONTAINER */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.header-logo a {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

/* NAV */
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #2563eb;
}

/* CTA */
.btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ================= HOMEPAGE HERO TYPOGRAPHY ================= */

.homepage-hero h1 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.homepage-hero h2 {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: #555;
    max-width: 700px;
}

@media (max-width: 768px) {

    .homepage-hero h1 {
        font-size: 24px;
    }

    .homepage-hero h2 {
        font-size: 14.5px;
    }

}

.hero-description {
    font-size: 14px !important;
    line-height: 1.6;
    color: #6b7280;
    margin-top: 10px;
    max-width: 800px;
}

.homepage-hero h1 {
    margin-bottom: 20px;
}

.homepage-hero h3 {
    margin-bottom: 16px;
}


/* ===================== HOMEPAGE INTRO ===================== */

.homepage-highlights {
    margin: 40px 0;
}

.highlight-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
}

.highlight-card {
    flex: 0 0 85%;
    background: #ebfcfb;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #baeff5;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.highlight-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.highlight-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Hide scrollbar */
.highlight-grid::-webkit-scrollbar {
    display: none;
}

/* Desktop */
@media (min-width: 769px) {
    .highlight-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: visible;
        padding: 0;
    }

    .highlight-card {
        flex: unset;
    }
}


/*=================================================================================================================================================================*/

/* MOBILE */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f1f1f1;
}

/* WHATSAPP */
@media (max-width: 768px) {

    .mobile-toggle {
        display: block;
    }

    .mobile-whatsapp {
        display: block;
    }

}

/* PAGE WRAPPER (controls width globally) */
.custom-page-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

/* GRID (only layout, NOT width) */
.opportunities-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
    .custom-page-wrapper .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .custom-page-wrapper .opportunities-grid {
        grid-template-columns: 1fr;
    }
}


/*===================================================================WHATSAPP CHIP ON MOBILE HEADER===============================================================*/
.mobile-whatsapp {
    display: none;
}

.mobile-whatsapp a {
    background: #22c55e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.mobile-whatsapp {
    display: block;
    flex-shrink: 0;
}

/*===================================================================FOOTER SECTION==============================================================================*/

/* FOOTER BASE */
.site-footer {
    background: #0f172a;
    color: #cbd5f5;
    margin-top: 60px;
}

/* CONTAINER */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* COLUMN TEXT */
.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

/* LINKS */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: #ffffff;
}

/* CTA */
.footer-cta {
    text-align: center;
    padding: 20px;
}

.footer-btn {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-cta {
        padding: 30px 20px;
    }
}

/*================================================================MOBILE DRAWER - LEFT SLIDER======================================================================*/

/* 🔥 MOBILE DRAWER STYLE */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%); /* 👈 instead of right */
    
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 20px;

    box-shadow: -4px 0 20px rgba(0,0,0,0.15);

    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    z-index: 1000;
    will-change: transform;
}

/* ACTIVE */
.mobile-menu.active {
    transform: translateX(0);
}

/* ACTIVE STATE */
.mobile-menu.active {
    right: 0;
}

/*======================================================*/
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease;

    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/*======================================================*/
/* SEPARATION OF OPTIONS IN SLIDER */
.mobile-section {
    margin-bottom: 20px;
}

.mobile-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

.mobile-section a {
    display: block;
    padding: 10px 0;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-toggle {
    position: relative;
    z-index: 1100;
}

/* ================================================================== HEADER SEPARATION ========================================================== */

.desktop-header {
    display: block;
}

.mobile-header {
    display: none;
}

.mobile-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* MOBILE VIEW */
@media (max-width: 768px) {

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

}

/* ============================================================== LOADER EFFECT ON ALL PAGES ================================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*=================================================================================================================================================================*/

/* ================================================================= CARD UI ===================================================================================== */

.opportunity-card {
    border: 2px solid #9ca3af; /* 👈 stronger but still soft */
    border-radius: 14px;         /* 👈 slightly smoother */

    padding: 22px;
    background: #ffffff;

    transition: all 0.25s ease;

    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 320px;
}

.opportunity-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Push tags to bottom */
.card-tags {
    margin-top: auto;
}

/* HEADER (title + status) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 75%;
}

.card-title a {
    text-decoration: none;
    color: #111;
}

/* STATUS BADGE */
/* ==========================================================================STATUS========================================================================= */

.card-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* DOT BASE */
.card-status::before {
    content: "●";
    font-size: 12px;
}

/* ACTIVE */
.card-status.active {
    color: #16a34a;
}

.card-status.active::before {
    color: #16a34a;
    animation: pulse-green 1.5s infinite;
}

/* CLOSING SOON */
.card-status.closing {
    color: #f97316;
}

.card-status.closing::before {
    color: #f97316;
    animation: pulse-orange 1s infinite;
}

/* EXPIRED */
.card-status.expired {
    color: #dc2626;
}

.card-status.expired::before {
    color: #dc2626;
}

/* ANIMATIONS */
@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes pulse-orange {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* BADGES */
.card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge.funding {
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

/* =======================================================OPPORTUNITY TYPE BADGE COLORS ================================================================ */

/* Incubation */
.badge.type-incubation {
    background: #FDDA0D;
    color: #080808;
}

/* Funding */
.badge.type-funding {
    background: #F54927;
    color: #ffffff;
}

/* Accelerator */
.badge.type-accelerator {
    background: #7c3aed;
    color: #ffffff;
}

/* Grant */
.badge.type-grant {
    background: #111827;
    color: #ffffff;
}

/* Competition */
.badge.type-competition {
    background: #16a34a;
    color: #ffffff;
}

/* Women Entrepreneurship */
.badge.type-women-entrepreneurship {
    background: #ec4899;
    color: #ffffff;
}

/* Fellowship */
.badge.type-fellowship {
    background: #16a34a;
    color: #ffffff;
}

/* Debt Financing */
.badge.type-debt-financing {
    background: #0627A1;
    color: #ffffff;
}

/* ============================================================================================================================================================= */

/* META */
.card-meta p {
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

/* DESCRIPTION */
.card-desc {
    font-size: 13px;
    color: #555;
    margin: 10px 0;

    display: -webkit-box;
    -webkit-line-clamp: 4;   /* limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================================================================SECTOR CHIPS================================================================================ */

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.card-tags span {
    font-size: 12px;
    font-weight: 500;

    background: #C1F5F5;
    color: #0369a1;

    padding: 6px 12px;
    border-radius: 999px;

    line-height: 1;
}

/* CLEAN ARCHIVE BASE */
.custom-archive {
    width: 100%;
}


/* ============================================================== PAGINATION BUTTONS========================================================================= */

.custom-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* UL */
.custom-pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

/* ITEMS */
.custom-pagination li {
    display: inline-block;
}

/* LINKS */
.custom-pagination a,
.custom-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border-radius: 8px;
    border: 1px solid #e5e7eb;

    text-decoration: none;
    font-size: 14px;
    color: #333;

    transition: all 0.2s ease;
}

/* HOVER */
.custom-pagination a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.custom-pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* PREV / NEXT */
.custom-pagination .prev,
.custom-pagination .next {
    font-weight: 600;
}

/* ======================================================== VIEW ALL OPPORTUNITIES BUTTON ON HOMEPAGE======================================================= */

.view-all-wrapper {
    text-align: center;
    margin: 20px 0 10px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.view-all-btn:hover {
    background: #333;
}

.view-all-btn,
.view-all-btn:visited {
    color: #fff;
}

.view-all-btn:hover,
.view-all-btn:focus {
    color: #fff;
}

.view-all-btn:active {
    color: #fff;
}

/* ===== SECTION DIVIDER ===== */

.section-divider {
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 60px auto;
}


/* ============================================================ FULL CARD CLICK EFFECT====================================================================== */

/* FULL CARD CLICK UX */
.opportunity-card {
    cursor: pointer;
}

/* Hover */
.opportunity-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Click press effect */
.opportunity-card:active {
    transform: scale(0.98);
}


/* ========================================================= OPPORTUNITIES DETAILS PAGE========================================================================= */

/* ===== CENTERED LAYOUT ===== */
.single-centered {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

/* TITLE */
.single-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ===== PROVIDER - INITIATIVE BY ===== */
.provider-line {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
}

.provider-line strong {
    font-weight: 600;
    color: #222;
}


/* ==============CARD=============== */
.detail-card {
    border: 2px solid #cbd5e1; /* slightly stronger */
    border-radius: 14px;
    padding: 22px;
    background: #fff;
    margin-bottom: 20px;
    position: relative;
}

/* STATUS PILL */
.status-pill {
    position: absolute;
    top: 16px;
    right: 16px;

    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* STATUS COLORS */
.status-pill.active {
    background: #dcfce7;
    color: #166534;
}

.status-pill.closing {
    background: #ffa500;
    color: #ffffff;
}

.status-pill.expired {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== DETAIL ROW STRUCTURE (FIXES YOUR ISSUE) ===== */
.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
}

/* LABEL */
.detail-label {
    font-weight: 600;
    min-width: 90px; /* keeps alignment consistent */
    color: #374151;
}

/* VALUE TEXT */
.detail-value {
    color: #374151;
}

/* ===== TAGS (FIXED PROPERLY) ===== */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================ SECTOR CHIPS ======================================================================== */
.detail-tags span,
.detail-tags a {
    background: #C1F5F5;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 550;
    white-space: normal;
}

/* 🔥 Make sectors stack vertically */
.detail-row-block {
    flex-direction: column;
}

/* Remove label width restriction for this case */
.detail-row-block .detail-label {
    min-width: auto;
}

/* Full width chips */
.full-width {
    width: 100%;
}

.detail-row-block + .detail-row {
    margin-top: 24px;
}

/* ======================================== + BUTTON IN BETWEEN MULTIPLE SECTORS ============================================== */
.type-separator {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;

    font-weight: 700;
    color: #000;
    font-size: 16px;

    align-self: center;
}

/* ===== TYPE ALIGN ===== */
.type-wrapper {
    margin-top: 12px;
}


/* ========================================== OPPORTUNITY TYPE BADGE ON DETAILS PAGE ===================================================================== */

.single-centered .badge.type {
    padding: 8px 16px;
    font-size: 15px;
}

/* ===== APPLY BUTTON ===== */
.apply-section {
    text-align: center;
    margin-top: 30px;
}

.apply-btn {
    background: #2563eb;
    color: #fff;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.apply-btn:hover {
    background: #1d4ed8;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== ABOUT CONTENT ===== */
.about-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* COLLAPSED STATE */
.about-content.collapsed {
    max-height: 120px; /* controls preview height */
}

/* FADE EFFECT */
.about-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;

    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* =======================================================READ MORE BUTTON in ABOUT PROGRAM SECTION==================================================== */
.read-more-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* =================================================================== OFFERINGS SECTION =============================================================== */
.offerings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.offering-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #374151;
}

.offering-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.section-intro {
    font-size: 14px;   /* reduce from default */
    line-height: 1.5;
    color: #666;       /* lighter than main text */
    margin-bottom: 10px;
}

.section-note {
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .section-intro {
        font-size: 13.5px;
    }

    .section-note {
        font-size: 12.5px;
    }
}

.offering-text strong {
    font-weight: 600;
    color: #222; /* slightly darker for contrast */
}

/* ================================================================SHARE THIS OPPORTUNITY BUTTON=========================================================== */

.share-section {
    text-align: center;
    margin-top: 16px;
}

.share-btn {
    background: transparent;
    color: #111;
    border: 2px solid #111;

    padding: 12px 22px;
    border-radius: 10px;

    font-weight: 600;
    cursor: pointer;

    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #111;
    color: #fff;
}

.share-btn:active {
    transform: scale(0.96);
}

/* ====================================================================FAQS ON OPPORTUNITY DETAILS PAGE========================================================= */
.faq-item {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;

    /* subtle shadow */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    transition: all 0.2s ease;
}

/* Slight lift on open */
.faq-item.active {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Question */
.faq-question {
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 35px;
    display: block;
    width: 100%;
}

/* Answer */
.faq-answer {
    display: none;
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}

/* Show answer */
.faq-item.active .faq-answer {
    display: block;
}

/* Arrow */
.faq-question::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* Rotate arrow */
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-accordion {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 12px;
}


/* ============================================================== SOURCE URLs ============================================================================= */

.source-section-plain {
    margin-top: 30px;
}

.source-list {
    list-style: none;
    padding-left: 0;
}

.source-list li {
    margin-bottom: 6px;
}

.source-list a {
    color: #0073aa;
    text-decoration: underline;
}


/* =============================================================== DISCLAIMER POPUP ================================================================== */

.disclaimer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.disclaimer-box {
  background: #fff;
  max-width: 400px;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

.disclaimer-trigger {
  color: #555;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

.disclaimer-trigger:hover {
  color: #000;
}

/* ======================================================== SIMILAR OPPORTUNITIES ============================================================================= */

.similar-label-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.similar-label-card {
    display: block;
    padding: 14px;
    border: 1px solid #000000;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
    transition: 0.2s ease;
}

.similar-label-card:hover {
    border-color: #2b6cb0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.label-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.label-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    line-height: 1.4;
}

.label-status {
    font-size: 12px;
    color: #dd6b20;
    white-space: nowrap;
}

.label-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.label-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
}

.label-badge.funding {
    background: #e6f4ea;
    color: #2f855a;
}

.label-badge.type {
    background: #e0f2fe;
    color: #0369a1;
}

/* SECTOR CHIPS */
.label-sectors {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.sector-chip {
    font-size: 11.5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
}

/* META */
.label-meta {
    font-size: 12.5px;
    color: #555;
    margin-top: 6px;
}

.related-opportunities {
    border-color: #2b6cb0;
    box-shadow: 0 4px 14px rgba(43, 108, 176, 0.08);
}

/* ===== FIX OPEN SECTION SPACING ===== */

.share-section {
    margin-top: 20px;
    margin-bottom: 20px; /* 🔥 this was missing */
}

.detail-row {
    margin-top: 12px;
    margin-bottom: 20px; /* 🔥 this was missing */
}

/* ===== ALTERNATING BACKGROUND COLORS FOR SIMILAR CARDS ===== */

.similar-label-list .similar-label-card:nth-child(1) {
    background: #f0f9ff; /* light blue */
}

.similar-label-list .similar-label-card:nth-child(2) {
    background: #f0fdf4; /* light green */
}

.similar-label-list .similar-label-card:nth-child(3) {
    background: #fff7ed; /* light orange */
}

.similar-label-list .similar-label-card:nth-child(4) {
    background: #faf5ff; /* light purple */
}


/* Explore More (Similar Opportunities footer link) */

.explore-all-wrapper {
    text-align: center;
    margin-top: 18px;
}

.explore-text {
    font-size: 14px;
    color: #444;
}

.explore-text a {
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.explore-text a:hover {
    text-decoration: underline;
    color: #1a4f8b;
}


/* =================================================================== EXPLORE MORE GRANTS ==================================================================== */

.explore-more {
    border-color: #0f766e; /* slight variation from similar section */
}

.explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.explore-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    color: #1e293b;
    transition: 0.2s ease;
}

.explore-link:hover {
    background: #e2e8f0;
}

/* ==========================================================BROWSE BY SECTORS - SECTION ON HOME PAGE=========================================================== */

.sector-section {
    margin-top: 60px;
}

/* GRID */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.sector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 18px;

    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;

    text-decoration: none;
    color: #111;

    transition: all 0.2s ease;
}

/* HOVER */
.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ICON */
.sector-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

/* TITLE */
.sector-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* COUNT */
.sector-card p {
    font-size: 12px;
    color: #6b7280;
}

.section-subtitle {
    text-align: left;
    font-size: 15px;
    color: #666;
    margin-top: -8px;
    margin-bottom: 25px;
}


/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sector-card {
        padding: 14px;
    }

    .sector-card img {
        width: 34px;
        height: 34px;
    }
}

/* ====================================================================FAQS ON HOMEPAGE========================================================================== */

.homepage-faqs {
  padding: 50px 20px;
  background: #fafafa;
}

.homepage-faqs h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}


/* ===================================================================LAST UPDATED ON - MONTH=================================================================== */

.last-updated {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}


/* ==========================================================EXPLORE MORE SECTORS - ON SECTOR TAXONOMY PAGES=================================================== */

.explore-more-taxonomy {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.explore-more-taxonomy h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.explore-more-taxonomy ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.explore-more-taxonomy li a {
    font-size: 13px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

.explore-more-taxonomy li a:hover {
    background: #e2e8f0;
}

.view-all-taxonomy {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.view-all-chip {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    color: #ffffff !important;
    background: #22c55e;
    display: inline-block;
    transition: all 0.2s ease;
}

.view-all-chip:hover {
    background: #16a34a;
    color: #ffffff !important;
}

/* ================================================================ VIEW ALL SECTORS - PAGE ==================================================================== */

.simple-sectors-list {
    margin-top: 20px;
}

.simple-sector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

/* Title */
.simple-sector-item h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* Arrow */
.simple-sector-item::after {
    content: "→";
    font-size: 18px;
    color: #64748b;
    text-decoration: none !important;
}

/* Hover */
.simple-sector-item:hover {
    transform: translateY(-2px);
    filter: brightness(0.98);
}

/* 🎨 Color variations */
.sector-color-0 { background: #f0f9ff; border: 1px solid #bae6fd; }
.sector-color-1 { background: #f0fdf4; border: 1px solid #bbf7d0; }
.sector-color-2 { background: #fefce8; border: 1px solid #fde68a; }
.sector-color-3 { background: #fff7ed; border: 1px solid #fed7aa; }
.sector-color-4 { background: #faf5ff; border: 1px solid #e9d5ff; }
.sector-color-5 { background: #fdf2f8; border: 1px solid #fbcfe8; }

.simple-sector-item {
    text-decoration: none !important;
}

.simple-sector-item::after {
    text-decoration: none !important;
}

/* ================================================================ GUIDES PAGE (/GUIDES) ==================================================================== */

/* ============================= /
/ HERO /
/ ============================= */

.guides-hero {
margin-bottom: 25px;
max-width: 720px;
}

.guides-hero h1 {
font-size: 30px;
font-weight: 600;
margin-bottom: 8px;
color: #111827;
}

.guides-hero p {
font-size: 15px;
color: #6b7280;
line-height: 1.6;
}

/* ============================= /
/ SEARCH BAR /
/ ============================= */

.guides-search {
margin: 25px 0 30px;
}

.guides-search input {
width: 100%;
padding: 14px 18px;
font-size: 15px;
border: 1px solid #e5e7eb;
border-radius: 12px;
outline: none;
transition: all 0.2s ease;
}

.guides-search input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

/* ============================= /
/ MAIN LAYOUT /
/ ============================= */

.guides-layout {
display: grid;
grid-template-columns: 220px 1fr;
gap: 30px;
}

/* ============================= /
/ SIDEBAR /
/ ============================= */

.guides-sidebar {
padding-right: 15px;
border-right: 1px solid #f0f0f0;
}

.guides-categories {
list-style: none;
padding: 0;
margin: 0;
}

.guides-categories li {
margin-bottom: 8px;
}

.guides-categories a {
display: block;
padding: 10px 12px;
border-radius: 8px;
text-decoration: none;
font-size: 14px;
color: #374151;
transition: all 0.2s ease;
}

/* Hover */
.guides-categories a:hover {
background: #f3f4f6;
color: #111827;
}

/* ACTIVE STATE */
.guides-categories a.active {
background: #000000;
color: #ffffff;
font-weight: 500;
}

/* ============================= /
/ CONTENT AREA /
/ ============================= */

.guides-content {
}

/* ============================= /
/ GUIDE CARDS /
/ ============================= */

.guide-row {
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 16px 18px;
margin-bottom: 14px;
background: #ffffff;
transition: all 0.25s ease;
cursor: pointer;
position: relative;
}

/* Hover effect */
.guide-row:hover {
border-color: #d1d5db;
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
transform: translateY(-2px);
}

/* Title */
.guide-row a {
text-decoration: none;
font-size: 16px;
font-weight: 500;
color: #111827;
display: block;
transition: color 0.2s ease;
}

.guide-row a:hover {
color: #2563eb;
}

/* Arrow icon */
.guide-row::after {
content: "→";
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
color: #9ca3af;
font-size: 16px;
}

/* ============================= /
/ RESPONSIVE /
/ ============================= */

@media (max-width: 768px) {

.guides-layout {
    grid-template-columns: 1fr;
}

.guides-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

}


/* =============================================================== SUBMIT OPPORTUNITIES - FORM ================================================================== */

/* ===== FORM CONTAINER ===== */
.submit-opportunity-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== LABELS ===== */
.submit-opportunity-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #222;
}

/* ===== INPUTS & SELECT ===== */
.submit-opportunity-form input,
.submit-opportunity-form select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 18px;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Focus effect */
.submit-opportunity-form input:focus,
.submit-opportunity-form select:focus {
    border-color: #f4a640;
    outline: none;
    box-shadow: 0 0 0 2px rgba(244,166,64,0.2);
}

/* ===== PROGRAM TYPE (checkbox pills) ===== */
.program-type {
    margin-bottom: 20px;
}

.program-type label {
    display: inline-block;
    margin: 6px 8px 6px 0;
    cursor: pointer;
}

.program-type span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
    transition: all 0.2s ease;
}

/* hide checkbox */
.program-type input {
    display: none;
}

/* selected state */
.program-type input:checked + span {
    background: #f4a640;
    color: #ffffff;
    border-color: #f4a640;
}

/* hover effect */
.program-type span:hover {
    border-color: #f4a640;
}

/* ===== BUTTON ===== */
.submit-opportunity-form button {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    background: #f4a640;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* button hover */
.submit-opportunity-form button:hover {
    background: #e6952f;
    transform: translateY(-1px);
}

/* ===== SUCCESS MESSAGE ===== */
.submit-opportunity-form p {
    padding: 12px;
    border-radius: 8px;
    background: #e6f9ed;
    color: #1a7f37;
    font-weight: 500;
}


/* =========================================================== FILTRATION ON OPPORTUNITIES PAGE ============================================================= */


/* =========================
   FILTER FORM BASE
========================= */
.filters-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* FILTER ROW */
.filters-row {
    display: flex;
    gap: 12px;
    flex: 1;
}

/* DROPDOWNS */
.filters-row select {
    flex: 1;
    min-width: 110px;
    height: 38px;
    padding: 0 10px;

    border: 1.5px solid #2c2c2c; /* darker + cleaner */
    border-radius: 6px;
    background: #fff;

    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* subtle depth */
}

/* BUTTON BASE */
.filters-form button {
    height: 38px;
    padding: 0 28px;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;

    color: #1a1a1a;
    background: linear-gradient(135deg, #FFD65A, #F4B400);

    border: none;
    cursor: pointer;

    /* 🔥 premium feel */
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition: all 0.2s ease;
}

.filters-form button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.filters-form button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* =========================
   MOBILE (STACKED)
========================= */
@media (max-width: 767px) {

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-row {
        width: 100%;
    }

    .filters-row select {
        flex: 1;
    }

    .filters-form button {
        width: 100%;
        margin-top: 10px;
    }
}

/* =========================
   DESKTOP (BALANCED LAYOUT)
========================= */
@media (min-width: 768px) {

    .filters-form {
        flex-wrap: nowrap;
    }

    /* 🔹 Make filters slightly smaller */
    .filters-row {
        flex: 0.75;
    }

    /* 🔹 Make button more dominant */
    .filters-form button {
        flex: 0.25;
        min-width: 160px;
    }
}