/* ========== Reset ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    background: #fff;
}

/* ========== Growth Hero Section ========== */
.growth-hero {
    width: 100%;
    background: #ef4c48;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 86px;
    padding-bottom: 60px;
}

/* ========== Navbar ========== */
.growth-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    z-index: 100;
    direction: ltr; /* Logo Left, Menu Right */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 76, 72, 0.75);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.growth-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 40px;
}

.growth-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.growth-navbar.menu-open .growth-nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    z-index: 1001 !important;
}

.growth-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.growth-nav-link:hover,
.growth-nav-link.active {
    opacity: 1;
}

.growth-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .growth-navbar {
        padding: 15px 20px;
    }

    .growth-navbar.scrolled {
        padding: 10px 20px;
    }

    .growth-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: column;
        background: rgba(239, 76, 72, 0.98);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.growth-logo img {
    height: 38px;
    width: auto;
}

.growth-menu-btn {
    width: 40px;
    height: 24px;
    background-image: url('YS/M6.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: background-image 0.2s ease;
    position: relative;
}

.growth-menu-btn:hover {
    background-image: url('YS/M5.png');
}

.growth-menu-btn.active {
    background-image: none !important;
}

.growth-menu-btn.active::before,
.growth-menu-btn.active::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background-color: #fff;
    right: 0;
    top: 50%;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.growth-menu-btn.active::before {
    transform: translateY(-50%) rotate(45deg);
}

.growth-menu-btn.active::after {
    transform: translateY(-50%) rotate(-45deg);
}

.growth-menu-btn.active::before,
.growth-menu-btn.active::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background-color: #fff;
    inset-inline-end: 0;
    top: 50%;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.growth-menu-btn.active::before {
    transform: translateY(-50%) rotate(45deg);
}

.growth-menu-btn.active::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* ========== Hero Content Layout ========== */
.growth-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px 0;
    position: relative;
}

/* ========== Text Side ========== */
.growth-hero-text {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

/* Subtitle Row: — GROWTH SPACE */
.growth-subtitle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.growth-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #aefaff;
    opacity: 1;
}

.growth-subtitle-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #aefaff;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 1;
}

/* Main Title */
.growth-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 22px;
    text-align: start;
    animation: fadeInUp 0.7s ease-out 0.1s backwards;
}

/* Description */
.growth-desc {
    font-size: clamp(14px, 1.2vw, 17px);
    color: #fff;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: start;
    animation: fadeInUp 0.7s ease-out 0.2s backwards;
}

/* ========== Stats Row ========== */
.growth-stats {
    display: flex;
    gap: 50px;
    animation: fadeInUp 0.7s ease-out 0.35s backwards;
}

.growth-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.growth-stat-number {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.growth-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== Decorative Circle ========== */
.growth-hero-visual {
    position: absolute;
    inset-inline-start: -80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.growth-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

/* ========== Animation ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Search & Filter Section ========== */
.growth-filter-section {
    background: #fff;
    padding: 25px 0;
    border-top: 1px solid #eee;
}

.growth-filter-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Bar */
.growth-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.growth-search-bar:focus-within {
    border-color: #ef4c48;
    box-shadow: 0 0 0 3px rgba(239, 76, 72, 0.08);
}

.growth-search-icon {
    width: 20px;
    height: 20px;
    color: #999;
    flex-shrink: 0;
}

.growth-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    /* Removed hardcoded direction: rtl */
}

.growth-search-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Filter Row — alongside search */
.growth-filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.growth-filter-select-wrap {
    position: relative;
}

.growth-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 40px 10px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    /* Removed hardcoded direction: rtl */
    transition: border-color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: inline-start 14px center;
}

.growth-filter-select:focus {
    border-color: #ef4c48;
}

.growth-results-count {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== Directory Cards ========== */
.growth-cards-section {
    background: #fff;
    padding: 40px 0 60px;
}

.growth-cards-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Card */
.growth-dir-card {
    background: #fff;
    border: 1px solid rgba(239, 76, 72, 0.15);
    border-radius: 12px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    cursor: pointer;
}

/* Badges Row */
.growth-dir-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-government {
    background: #19747a;
    color: #fff;
}

.badge-lab {
    background: #6c5ce7;
    color: #fff;
}

.badge-accelerator {
    background: #ef4c48;
    color: #fff;
}

.badge-incubator {
    background: #fff;
    color: #ef4c48;
    border: 1px solid #ef4c48;
}

.badge-support {
    background: #fde8e7;
    color: #ef4c48;
}

.badge-active {
    background: #aefaff;
    color: #19747a;
}

.badge-open {
    background: rgba(239, 76, 72, 0.1);
    color: #ef4c48;
}

/* Card Link Wrapper */
.growth-dir-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.growth-dir-card-link:hover .growth-dir-card {
    transform: translateY(-6px);
    border-color: rgba(239, 76, 72, 0.4);
    box-shadow: 0 12px 30px rgba(25, 116, 122, 0.08);
}

.growth-dir-card-link:hover .growth-dir-link-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Visit Website Hint */
.growth-dir-link-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ef4c48;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(239, 76, 72, 0.1);
}

.growth-dir-link-hint svg {
    stroke: #ef4c48;
    flex-shrink: 0;
}

/* Card Title */
.growth-dir-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Card Description */
.growth-dir-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #666;
}

/* Location Row */
.growth-dir-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4c48;
    font-size: 0.82rem;
    font-weight: 600;
}

.growth-dir-location svg {
    flex-shrink: 0;
    stroke: #ef4c48;
}

/* Tags */
.growth-dir-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.growth-tag {
    background: #fde8e7;
    color: #ef4c48;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== Submit Resource CTA ========== */
.growth-submit-cta {
    padding: 40px 0 80px;
    background: #fde8e7; /* Light shade of primary */
}

.growth-submit-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    padding: 45px 30px;
    text-align: center;
}

.growth-submit-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.growth-submit-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

.growth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ef4c48;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.growth-submit-btn:hover {
    background: #d83c38;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 76, 72, 0.2);
}

.growth-submit-arrow {
    transition: transform 0.3s ease;
}

.growth-submit-btn:hover .growth-submit-arrow {
    transform: translateX(-5px); /* Move left because RTL */
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .growth-hero-content {
        padding: 0 30px 50px;
    }

    .growth-hero-visual {
        inset-inline-start: -150px;
    }

    .growth-circle {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .growth-navbar {
    direction: ltr !important;
        padding: 18px 25px;
    }

    .growth-hero-content {
        padding: 0 25px 40px;
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .growth-hero-text {
        text-align: start !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* flex-start in physical but helps align block */
    }

    .growth-title, .growth-desc {
        text-align: start !important;
    }

    .growth-subtitle-row {
        justify-content: flex-start;
    }

    .growth-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    .growth-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .growth-stats {
        gap: 30px;
    }

    .growth-stat-number {
        font-size: clamp(24px, 4vw, 34px);
    }

    .growth-hero-visual {
        inset-inline-start: -180px;
        top: 40%;
    }

    .growth-circle {
        width: 280px;
        height: 280px;
    }

    .growth-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .growth-cards-section {
        padding: 30px 0 45px;
    }

    .growth-submit-cta {
        padding: 30px 0 50px;
    }

}

@media (max-width: 480px) {
    .growth-navbar {
    direction: ltr !important;
        padding: 14px 18px;
    }

    .growth-logo img {
        height: 30px;
    }

    .growth-hero-content {
        padding: 0 18px 30px;
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .growth-hero-text {
        text-align: start !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .growth-title, .growth-desc {
        text-align: start !important;
    }

    .growth-subtitle-row {
        justify-content: flex-start;
    }

    .growth-title {
        font-size: clamp(24px, 7vw, 34px);
    }

    .growth-desc {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .growth-stats {
        gap: 22px;
    }

    .growth-stat-number {
        font-size: 22px;
    }

    .growth-stat-label {
        font-size: 0.65rem;
    }

    .growth-hero-visual {
        display: none;
    }

    .growth-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .growth-dir-card {
        padding: 22px 18px;
    }

    .growth-cards-section {
        padding: 25px 0 35px;
    }

    .growth-submit-cta {
        padding: 25px 0 40px;
    }

    .growth-submit-container {
        padding: 30px 20px;
    }

    .growth-submit-title {
        font-size: 1.3rem;
    }

    .growth-filter-section {
        padding: 20px 0;
    }

    .growth-search-bar {
        padding: 12px 14px;
    }

    .growth-search-input {
        font-size: 0.85rem;
    }

    .growth-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .growth-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .growth-filter-select {
        width: 100%;
    }

    .growth-results-count {
        text-align: end;
    }
}

/* Removed legacy override */

/* Growth Menu Appearance Lock handled in base classes */
