/* ==================================================
   Variables
   ================================================== */
:root {
    --primary-gold: #E8BA00;
    --primary-green: #345830;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light-gray: #6B7280;
    --bg-color: #F8F8F8;
}


/* ==================================================
   Base / Reset
   ================================================== */
html {
    overflow-x: hidden;

}

body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}


/* ==================================================
   Background Blobs
   ================================================== */
.background-container {
    position: absolute;
    width: 100%;
    height: calc(100% - 150px);
    /* Stops exactly where the curve separates the sections */
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background-color: #F8F8F8;
    /* Restored off-white, now bounded securely by the curve */
}

.blur-ellipse-1 {
    position: absolute;
    width: 1228px;
    height: 303px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    /* Anchors exactly to the new height constraint of background-container */
    /* Anchors the intense part of the glow exactly at the curve line */
    background: rgba(232, 186, 0, 0.3);
    filter: blur(125px);
}

.blur-ellipse-2 {
    position: absolute;
    width: 389px;
    height: 279px;
    left: 1215px;
    top: 0;
    background: rgba(232, 186, 0, 0.55);
    filter: blur(200px);
}


/* ==================================================
   Navigation
   ================================================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 80px;
    height: 82px;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    gap: 8px;
    width: 143px;
    height: 62px;
    direction: rtl;
}

.logo-icon-wrapper {
    position: relative;
    width: 50px;
    height: 56px;
    flex: none;
    order: 1;
}

.logo-ellipse {
    position: absolute;
    width: 15.83px;
    height: 15.83px;
    left: 13.33px;
    top: 21px;
    background: rgba(94, 114, 26, 0.4);
    border-radius: 50%;
}

.logo-img {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 0;
    top: 6px;
    background-image: url('/new_design/images/logo3.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.logo-text {
    width: 85px;
    height: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #000;
    text-align: left;
    flex: none;
    order: 0;
}

/* --- Nav Links --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 400;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-item-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    height: 40px;
}

.nav-item-wrapper.active {
    border-bottom: 2px solid var(--primary-gold);
    background: transparent;
}

.nav-item-wrapper.active .nav-item-text {
    color: #E8BA00;
}

.nav-item-text {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    text-align: left;
    color: var(--text-gray);
    transition: color 0.3s;
}

.nav-links li:hover .nav-item-text {
    color: var(--primary-gold);
}

.nav-dropdown-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-links li:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 15px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.nav-links li:hover .nav-dropdown {
    display: flex;
}

.nav-dropdown-item {
    padding: 10px 15px;
    font-family: 'Rubik';
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(232, 186, 0, 0.1);
    color: var(--primary-gold);
}

/* --- Nav Actions --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Language Selector Dropdown --- */
.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-toggle:hover {
    background: rgba(232, 186, 0, 0.1);
    color: var(--primary-gold);
}

.lang-dropdown-icon {
    font-size: 18px;
}

.lang-chevron {
    transition: transform 0.3s;
}

.lang-dropdown.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(232, 186, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 8px;
    min-width: 120px;
    display: none;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    gap: 4px;
    z-index: 1050;
    margin-top: 10px;
}

.lang-dropdown.active .lang-dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lang-dropdown-item {
    padding: 8px 12px;
    font-family: 'Rubik';
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-item:hover {
    background: rgba(232, 186, 0, 0.1);
    color: var(--primary-gold);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(180deg, #fff -38.46%, #E8BA00 80.77%);
    border: none;
    border-radius: 20px;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 18px;
    color: var(--text-gray);
    cursor: pointer;
    width: 90px;
    height: 52px;
}

.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-family: 'Rubik';
    font-size: 18px;
    color: var(--text-gray);
    cursor: pointer;
}

/* --- User Profile Dropdown --- */
.user-profile-dropdown {
    position: relative;
    margin-right: 15px;
    z-index: 1050;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(232, 186, 0, 0.3);
    border-radius: 20px;
    padding: 5px 15px 5px 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.user-dropdown-toggle:hover {
    box-shadow: 0 4px 15px rgba(232, 186, 0, 0.15);
}

.user-chevron {
    transition: transform 0.3s;
}

.user-profile-dropdown.active .user-chevron,
.user-dropdown-toggle.show .user-chevron {
    transform: rotate(180deg);
}

.user-profile-dropdown.active .user-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform: scale(1) !important;
}

.user-info-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name-mini {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 16px;
    color: #111827;
    line-height: 1.2;
}

.user-id-mini {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
}

.user-avatar-mini {
    position: relative;
    width: 36px;
    height: 36px;
    background: #E8BA00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.user-edit-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8BA00;
    font-size: 8px;
}

/* User Dropdown Menu Body */
.user-dropdown-menu {
    border: 1px solid rgba(232, 186, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    min-width: 260px;

    margin-top: 3.8125rem !important;
    z-index: 1050;
}

html[dir="ltr"] .user-dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

.dropdown-header-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.user-info-large {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name-large {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 18px;
    color: #111827;
}

.user-id-large {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 16px;
    color: #6B7280;
}

.user-avatar-large {
    position: relative;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 24px;
}

.user-edit-icon-large {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8BA00;
    font-size: 10px;
}

.dropdown-separator {
    height: 1px;
    background: rgba(107, 114, 128, 0.1);
    margin: 15px 0;
}

.vp-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
}

.dropdown-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 12px;
    padding: 10px 15px;
    transition: border-color 0.2s;
    text-decoration: none !important;
}

.stat-pill:hover {
    border-color: rgba(232, 186, 0, 0.4);
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik';
    font-size: 14px;
    color: #6B7280;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 18px;
    color: #111827;
}

.stat-icon {
    color: #E8BA00;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-dropdown-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 16px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-dropdown-action.fill {
    background: linear-gradient(180deg, #FDF3C8 0%, #E8BA00 100%);
    color: #111827;
    border: none;
    box-shadow: 0 4px 10px rgba(232, 186, 0, 0.2);
}

.btn-dropdown-action.fill:hover {
    transform: translateY(-2px);
}

.btn-dropdown-action.outline {
    background: #fff;
    color: #E8BA00;
    border: 1px solid #E8BA00;
}

.btn-dropdown-action.outline:hover {
    background: #fdfdfd;
}

/* --- Mobile Menu (Hidden on Desktop) --- */
.mobile-menu-checkbox {
    display: none;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-auth-panel {
    display: none;
}

.mobile-auth-card {
    width: 100%;
    border: 1px solid rgba(232, 186, 0, 0.2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    padding: 18px;
}

.mobile-user-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-dropdown-stats {
    margin-top: 0;
}

@media (min-width: 1151px) {
    .mobile-sidebar-header {
        display: none !important;
    }
}

/* ==================================================
   Hero Section
   ================================================== */
.hero {
    text-align: center;
    padding-top: 180px;
    padding-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-curve-separator {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.hero-curve-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-title-group h1 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(26px, 4vw, 48px);
    color: var(--text-dark);
    margin: 0 0 20px;
}

.hero-title-group p {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 32px);
    color: var(--text-light-gray);
    margin: 0 0 60px;
}

.hero-actions-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 350px;
    /* Ensures plenty of space above the curve when logged in */
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    padding: 23px 20px 0px 20px;
}

.hero-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px 20px 10px 10px;
    /* padding-right 20px, padding-left 10px */
    border-radius: 20px;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Rubik', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    color: #111827;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(107, 114, 128, 0.12);
}

.hero-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 1px 8px 15px rgba(0, 0, 0, 0.15);
    color: #111827;
}

.hero-action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #FDF3C8 0%, #E8BA00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.hero-spacing-empty {
    height: 400px;
}


/* ==================================================
   Search
   ================================================== */
.search-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 70px auto;
    position: relative;
    z-index: 50;
    width: calc(100% - 40px);
    /* Flexible spacing for mobile */
    max-width: 625px;
    /* Restrict to user requested scale */
}

.search-box {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 11px;
    background: #fff;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    z-index: 2;
    /* Ensure search bar always stays above dropdown visually */
    box-sizing: border-box;
    /* Crucial for internal padding on flexible widgets */
}

/* Removed the .search-container:hover .search-box override to keep bottom rounded */

.search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: 'Rubik';
    font-weight: 300;
    font-size: 18px;
    color: var(--text-dark);
    text-align: left;
    background: transparent;
}

.search-box input::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

.search-icon-wrapper {
    width: 41px;
    height: 41px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.search-icon-wrapper img {
    width: 60%;
    object-fit: contain;
}

.search-dropdown-trigger {
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.search-dropdown-trigger svg {
    transition: transform 0.3s ease;
}

.search-container:hover .search-dropdown-trigger svg {
    transform: rotate(180deg);
}

.search-dropdown-menu {
    position: absolute;
    top: 50px;
    /* Moves dropdown slightly under the 60px search box */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 1px 12px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.12);
    border-radius: 0 0 20px 20px;
    padding: 25px 20px 20px;
    /* Extra top padding to account for overlap */
    display: none;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
    z-index: 1;
    /* Dropdown renders strictly beneath the input bar */
}

.search-container:hover .search-dropdown-menu {
    display: flex;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.search-dropdown-item:hover {
    background-color: #f9f9f9;
}

.search-dropdown-item span {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(14px, 1.6vw, 20px);
    color: #111827;
}

.search-dropdown-item svg {
    color: #4B5563;
}


/* ==================================================
   Role Selection & Cards
   ================================================== */
.role-selection-text {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--text-light-gray);
    margin-bottom: 40px;
    text-align: center;
}

.cards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    perspective: 1000px;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.card-container {
    width: 100%;
    max-width: 310px;
    flex: 1 1 310px;
    height: 400px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-container:hover .card-inner,
.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-image-container {
    position: relative;
    width: 310px;
    height: 275px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-image-container::before {
    content: '';
    position: absolute;
    width: 310px;
    height: 275px;
    left: 0;
    top: 0;
    filter: blur(22.5px);
    border-radius: 30px 30px 80px 80px;
    z-index: 0;
}

/* Green gradient cards */
.card-container:nth-child(1) .card-image-container::before,
.card-container:nth-child(3) .card-image-container::before {
    background: linear-gradient(180deg, #fff 7.82%, #38592E 327.64%);
    box-shadow: 0 20px 40px -10px rgba(94, 114, 26, 0.3);
}

/* Gold gradient cards */
.card-container:nth-child(2) .card-image-container::before,
.card-container:nth-child(4) .card-image-container::before {
    background: linear-gradient(180deg, #fff 19.27%, rgba(232, 186, 0, 0.44) 374%);
    box-shadow: 0 20px 40px -10px rgba(232, 186, 0, 0.2);
}

.card-image-container img {
    position: absolute;
    width: 299px;
    height: 275px;
    left: 6px;
    top: 0;
    object-fit: contain;
}

.card-front h3 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--text-dark);
    margin-top: 20px;
}

/* --- Card Back --- */
.card-back {
    transform: rotateY(180deg);
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    direction: ltr;
    text-align: left;
}

.card-back::after {
    content: '';
    position: absolute;
    bottom: -34px;
    left: -61px;
    width: 200px;
    height: 200px;
    background-image: url(new_design/images/logo3.png);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.card-back h3 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(16px, 2vw, 26px);
    color: #111827;
    margin: 0 0 15px;
    text-align: center;
}

.service-list {
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(14px, 1.4vw, 18px);
    color: #111827;
    text-align: left;
}

.service-list li svg {
    color: #E8BA00;
    fill: rgba(232, 186, 0, 0.2);
}

.card-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-card-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #fff -20.45%, #E8BA00 100%);
    border: none;
    border-radius: 15px;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: clamp(14px, 1.6vw, 20px);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(232, 186, 0, 0.2);
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-card-register:hover {
    background: #E8BA00;
}

.btn-card-register.green {
    background: linear-gradient(180deg, #fff -28.41%, #345830 83.96%, #345830 100%);
    box-shadow: 0 4px 10px rgba(52, 88, 48, 0.2);
}

.btn-card-register.green:hover {
    background: #345830;
}

.btn-card-login {
    background: transparent;
    border: none;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: clamp(14px, 1.6vw, 20px);
    color: #111827;
    cursor: pointer;
    border-bottom: 1px solid #111827;
    padding-bottom: 2px;
}


/* ==================================================
   General Services Section
   ================================================== */
.general-services {
    position: relative;
    width: 100%;
    min-height: 494px;
    background: #F8F8F8;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 70px 0; */
    /* margin-top: 100px; */
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.services-header h2 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 3.5vw, 48px);
    line-height: 57px;
    color: #111827;
    margin: 0;
}

.services-header p {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 32px);
    line-height: 38px;
    color: #6B7280;
    margin: 0;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.service-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    flex: 1 1 272px;
    height: 199px;
    background: #fff;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    background-color: #E8BA00;
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(232, 186, 0, 0.3);
}

.service-icon-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    width: 50px;
    height: 50px;
}

.service-icon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 10px;
    background: #fff;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    z-index: 2;
}

.service-content {
    position: absolute;
    top: 90px;
    left: 13px;
    right: auto;
    width: 230px;
    text-align: left;
}

.service-title {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 26px;
    color: #111827;
    margin-bottom: 10px;
}

.service-desc {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(13px, 1.4vw, 18px);
    line-height: 21px;
    color: #6B7280;
}


/* ==================================================
   Educational Opportunities Section
   ================================================== */
.educational-opportunities {
    position: relative;
    width: 100%;
    background: #F8F8F8;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opportunities-header {
    text-align: center;
    margin-bottom: 60px;
}

.opportunities-header h2 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 3.5vw, 48px);
    line-height: 57px;
    color: #111827;
    margin: 0;
}

.opportunities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Spreads items to the container edges */
    gap: 40px;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.opp-card {
    width: 100%;
    flex: 1 1 306px;
    max-width: 420px;
    /* Allows cards to flex enough to fill row width elegantly */
    height: 200px;
    background: #fff;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.opp-card:hover {
    transform: translateY(-5px);
}

.opp-card.green-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 100%, #38592E 129.59%), #fff;
}

.opp-card.green-card:hover {
    background: linear-gradient(180deg, #fff 0%, #345830 161%, #345830 100%);
    color: white;
}

.opp-card.gold-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 100%, #E8BA00 129.59%), #fff;
}

.opp-card.gold-card:hover {
    background: linear-gradient(180deg, #fff 0%, #E8BA00 161%, #E8BA00 100%);
    color: white;
}

.opp-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.green-card .opp-icon-box {
    background: rgba(56, 89, 46, 0.15);
}

.gold-card .opp-icon-box {
    background: rgba(232, 186, 0, 0.15);
}

.opp-card:hover .opp-icon-box {
    background: rgba(255, 255, 255, 0.2);
}

.opp-icon-box img,
.opp-icon-box svg {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

.opp-card:hover .opp-icon-box img,
.opp-card:hover .opp-icon-box svg {
    filter: brightness(0) invert(1);
}

.opp-title {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 32px);
    line-height: 38px;
    text-align: center;
    color: #111827;
    transition: color 0.3s ease;
}

.opp-card:hover .opp-title {
    color: #ffffff;
}


/* ==================================================
   Jobs Section
   ================================================== */
.jobs-section {
    position: relative;
    width: 100%;
    background: #F8F8F8 url('new_design/images/vector-bg.png');
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.job-bg-vector-right,
.job-bg-vector-left {
    position: absolute;
    width: 593px;
    height: 593px;
    z-index: 0;
}

.job-bg-vector-right {
    right: -100px;
    top: 400px;
    background: radial-gradient(circle, rgba(232, 186, 0, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.job-bg-vector-left {
    left: -295px;
    top: 25px;
    background: radial-gradient(circle, rgba(232, 186, 0, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.jobs-header {
    text-align: center;
    margin-bottom: 50px;
    z-index: 1;
}

.jobs-header h2 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 3.5vw, 48px);
    line-height: 57px;
    color: #111827;
    margin: 0 0 10px;
}

.jobs-header p {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 32px);
    line-height: 38px;
    color: #6B7280;
    margin: 0;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}

.job-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    height: 224px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-id-tag {
    position: absolute;
    top: 20px;
    left: 0;
    width: 108px;
    height: 47px;
    background: linear-gradient(180deg, #fff -36.17%, #E8BA00 100%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 15px rgba(0, 0, 0, 0.1), inset 4px 4px 15px rgba(232, 186, 0, 0.3);
    border-radius: 0 10px 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 18px;
    color: #111827;
}

.job-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    direction: ltr;
    gap: 10px;
    margin-right: 20px;
    width: 100%;
    padding-right: 20px;
    padding-left: 230px;
}

.job-title {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 2.5vw, 32px);
    color: #000;
    text-align: left;
}

.job-desc {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 30px;
    color: #6B7280;
    text-align: left;
    max-width: 800px;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: flex-end;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6B7280;
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(14px, 1.6vw, 20px);
}

.meta-icon {
    width: 24px;
    height: 24px;
    fill: #E8BA00;
}

.job-action {
    position: absolute;
    left: 30px;
    top: auto;
    bottom: 30px;
}

.btn-view-details {
    width: 200px;
    height: 60px;
    background: linear-gradient(178.83deg, #fff -36.69%, #E8BA00 99.01%);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1), inset 4px 4px 15px rgba(232, 186, 0, 0.3);
    border-radius: 15px;
    border: none;
    font-family: 'Rubik';
    font-size: 18px;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Jobs Footer / Pagination --- */
.jobs-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    z-index: 1;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-link {
    font-family: 'Rubik';
    font-size: 18px;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-num {
    width: 30px;
    height: 41px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: 1px solid rgba(107, 114, 128, 0.12);
    background: #fff;
    cursor: pointer;
}

.page-num.active {
    border: 1px solid rgba(232, 186, 0, 0.45);
    color: #E8BA00;
}

.btn-view-all {
    width: 266px;
    height: 70px;
    background: linear-gradient(178.83deg, #fff -36.69%, #E8BA00 99.01%);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: none;
    font-family: 'Rubik';
    font-size: 18px;
    color: #111827;
    cursor: pointer;
}


/* ==================================================
   EduAds Section
   ================================================== */
.ads-section {
    position: relative;
    width: 100%;
    min-height: 852px;
    background: #F8F8F8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 0;

}

.ads-bg-logo {
    position: absolute;
    width: 748.54px;
    height: 748.54px;
    right: 0;
    top: -171px;
    background: url('new_design/images/Logo.png') no-repeat center center;
    background-size: contain;
    transform: rotate(-21.11deg);
    opacity: 0.1;
    z-index: 0;
}

.ads-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    margin-bottom: 60px;
    width: 570px;
    max-width: 90%;
}

.ads-header h2 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(22px, 3.5vw, 48px);
    line-height: 57px;
    text-align: center;
    color: #111827;
    margin: 0;
}

.ads-header p {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 32px);
    line-height: 38px;
    text-align: center;
    color: #6B7280;
    margin: 0;
}

/* --- Carousel --- */
.ads-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
    box-sizing: border-box;
}

.ads-nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 118px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10;
    transform: scaleX(-1);
}

.ads-nav-btn.prev,
.ads-nav-btn.next {
    margin-left: 40px;
    margin-right: 40px;
}

.ads-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 20px;
    width: 100%;
    max-width: 1340px;
    min-width: 0;
    justify-content: flex-start;
    box-sizing: border-box;
}

.ads-carousel::-webkit-scrollbar {
    display: none;
}

/* --- Ad Card --- */
.ad-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 362px;
    height: 439px;
    background: #fff;
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    flex: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 1px 8px 15px rgba(0, 0, 0, 0.15);
}

.ad-image {
    width: 332px;
    height: 326px;
    border-radius: 20px;
    background-color: #E6E8EA;
    background-size: cover;
    background-position: center;
}

.ad-title {
    width: 285px;
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 28px);
    line-height: 33px;
    text-align: center;
    color: #111827;
}

/* --- Browse Button --- */
.ads-btn-container {
    width: 100%;
    max-width: 1340px;
    margin: 60px auto 0;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn-browse-ads {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    width: 225px;
    height: 58px;
    background: rgba(56, 89, 46, 0.15);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Rubik';
    transition: background 0.3s ease;
}

.btn-browse-ads:hover {
    background: rgba(56, 89, 46, 0.25);
}

.btn-browse-ads span {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    color: #345830;
}

.btn-browse-ads svg {
    transform: scaleX(-1);
}


/* ==================================================
   About EduJordan Section
   ================================================== */
.about-edu-section {
    max-width: 1340px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;
}


.about-edu-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 682px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    perspective: 1200px;
}

.about-bg-panel {
    position: absolute;
    width: 870px;
    height: 682px;
    left: 0;
    top: 0;
    background: #E8BA00;
    opacity: 0.1;
    border: 1px solid #000;
    box-shadow: 9px 9px 10px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    transform: rotateY(14deg);
    transform-origin: left center;
}

.about-content {
    position: absolute;
    top: 172px;
    left: 110px;
    right: auto;
    width: 536px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    /* direction: rtl; */
}

.about-content h2 {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(24px, 3.5vw, 48px);
    line-height: 1.2;
    text-align: left;
    color: #111827;
    margin: 0;
}

.about-content p {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: clamp(16px, 2.2vw, 32px);
    line-height: 1.3;
    text-align: left;
    color: #6B7280;
    margin: 0;
}

.btn-about-edu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 225px;
    height: 60px;
    background: linear-gradient(180.73deg, #fff -53.68%, #E8BA00 133.93%);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    color: #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-about-edu:hover {
    transform: translateY(-2px);
    box-shadow: 1px 6px 15px rgba(0, 0, 0, 0.15);
}

.about-image {
    position: absolute;
    left: auto;
    right: 0;
    top: 76px;
    width: 570px;
    height: 530px;
    border-radius: 30px;
    overflow: hidden;
    z-index: 3;
}

.about-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}


/* ==================================================
   Responsive: Desktop/Tablet (≤1400px)
   ================================================== */
@media (max-width: 1400px) {
    nav {
        padding: 10px 40px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-item-wrapper {
        padding: 8px;
        height: auto;
    }

    .cards-grid,
    .services-grid,
    .opportunities-grid {
        justify-content: center;
    }

    .ads-nav-btn.prev,
    .ads-nav-btn.next {
        margin-left: 20px;
        margin-right: 20px;
    }

    .ads-btn-container {
        padding: 0 50px;
    }
}


/* ==================================================
   Responsive: About Section (≤1300px)
   ================================================== */
@media (max-width: 1300px) {

    .about-bg-panel {
        width: 100%;
        height: 77%;
    }

    .about-content {
        left: 85px;
        width: 45%;
        max-width: 450px;
    }

    .about-content h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .about-content p {
        font-size: 24px;
        line-height: 32px;
    }

    .about-image {
        width: 45%;
        max-width: 450px;
        height: auto;
        aspect-ratio: 570 / 530;
    }
}


/* ==================================================
   Responsive: Mobile Sidebar (≤1150px)
   ================================================== */
@media (max-width: 1150px) {
    nav {
        flex-wrap: nowrap;
        height: 82px;
        padding: 10px 20px;
        position: relative;
    }

    .mobile-menu-btn {
        display: flex;
        order: 4;
        z-index: 1002;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 50px;
        padding-right: 30px;
        padding-left: 30px;
        box-sizing: border-box;
        gap: 15px;
        z-index: 1000;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1), visibility 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        margin: 0;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-item-wrapper {
        justify-content: space-between;
        width: 100%;
        display: flex;
    }

    .mobile-menu-checkbox:checked~.nav-links {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-checkbox:checked~.mobile-menu-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-checkbox:checked~.mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-checkbox:checked~.mobile-menu-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-section {
        order: 1;
        width: auto;
    }

    .nav-actions {
        order: 3;
        margin-left: auto;
        margin-right: 20px;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 10px 20px 0 0;
        margin-top: 0;
        display: none;
        min-width: 100%;
        border-radius: 0;
    }

    .nav-links li:hover .nav-dropdown {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-sidebar-header {
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .mobile-sidebar-header .logo-section.mobile-only-logo {
        display: flex;
        margin: 0;
        padding: 0;
    }

    .mobile-auth-panel {
        margin-top: auto;
        padding-top: 20px;
    }
}


/* ==================================================
   Responsive: Tablet (≤1024px)
   ================================================== */
@media (max-width: 1024px) {
    .ads-bg-logo {
        left: 50%;
        margin-left: -374px;
    }

    .about-edu-container {
        height: auto;
        perspective: none;
    }

    .about-bg-panel {
        width: 100%;
        transform: none;
        padding: 60px 40px 40px;
        box-sizing: border-box;
    }

    .about-content {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        padding: 10px 0px;
        align-items: center;
    }

    .about-content h2,
    .about-content p {
        text-align: center;
    }

    .about-image {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 570 / 530;
        margin: 30px auto 0;
        display: block;
    }

    /* --- Tablet Text Scaling --- */
    .hero-title-group h1 {
        font-size: 36px;
    }

    .hero-title-group p {
        font-size: 24px;
    }

    .section-header h2,
    .general-services h2,
    .educational-opportunities>h2,
    .jobs-section>h2,
    .ads-header h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .section-header p,
    .general-services>p,
    .educational-opportunities>p,
    .jobs-section>p {
        font-size: 20px;
        line-height: 28px;
    }

    .service-title,
    .opp-title {
        font-size: 18px;
    }

    .service-subtitle,
    .opp-desc {
        font-size: 15px;
    }

    .about-content h2 {
        font-size: 30px;
        line-height: 38px;
    }

    .about-content p {
        font-size: 20px;
        line-height: 28px;
    }
}


/* ==================================================
   Responsive: Mobile (≤768px)
   ================================================== */
@media (max-width: 768px) {

    /* --- Global Mobile Padding --- */
    .hero {
        padding-top: 100px;
    }

    /* --- Mobile Text Scaling --- */
    .hero-title-group h1 {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 12px;
    }

    .hero-title-group p {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 30px;
    }

    .section-header h2,
    .general-services>h2,
    .educational-opportunities>h2,
    .jobs-section>h2,
    .ads-header h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .section-header p,
    .general-services>p,
    .educational-opportunities>p,
    .jobs-section>p {
        font-size: 16px;
        line-height: 24px;
    }

    .service-title,
    .opp-title {
        font-size: 16px;
    }

    .service-subtitle,
    .opp-desc {
        font-size: 14px;
    }

    .service-list li {
        font-size: 15px;
    }

    .about-content h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 24px;
    }

    .btn-browse-ads span,
    .btn-card-register,
    .btn-card-login {
        font-size: 15px;
    }

    .hero,
    .general-services,
    .educational-opportunities,
    .jobs-section,
    .ads-section {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .cards-grid,
    .services-grid,
    .opportunities-grid,
    .jobs-list {
        padding-left: 0;
        padding-right: 0;
    }

    /* --- Navigation Scaling --- */
    nav {
        padding: 10px;
    }

    .nav-actions {
        gap: 10px;
    }

    .btn-login {
        width: 70px;
        height: 40px;
        font-size: 14px;
        padding: 5px 10px;
    }

    .btn-register {
        font-size: 14px;
        gap: 4px;
    }

    .btn-register svg {
        width: 18px;
        height: 18px;
    }

    .lang-selector {
        font-size: 16px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-icon-wrapper {
        width: 40px;
    }

    .logo-ellipse {
        width: 12px;
        height: 12px;
        top: 17px;
        left: 10px;
    }

    .logo-text {
        font-size: 14px;
        width: auto;
    }

    /* --- Job Cards Mobile --- */
    .job-card {
        height: auto;
        padding-top: 80px;
        padding-bottom: 100px;
        flex-direction: column;
        align-items: stretch;
    }

    .job-info {
        margin-right: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .job-title {
        font-size: 24px;
    }

    .job-desc {
        font-size: 16px;
        line-height: 1.6;
    }

    .job-action {
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
    }

    .btn-view-details {
        width: 100%;
    }

    .job-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* --- Grids Mobile --- */
    .cards-grid,
    .services-grid,
    .opportunities-grid {
        justify-content: center;
        gap: 20px;
    }

    .card-container,
    .service-card,
    .opp-card {
        max-width: 100%;
    }

    /* --- Ads Mobile --- */
    .ads-section {
        padding-bottom: 40px;
    }

    .ads-nav-btn.prev,
    .ads-nav-btn.next {
        margin-left: 10px;
        margin-right: 10px;
    }

    .ads-carousel {
        padding: 10px 0;
    }

    .ads-header h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .ads-header p {
        font-size: 24px;
        line-height: 30px;
    }

    .ad-card {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .ad-image {
        width: 100%;
        height: 275px;
    }

    .ad-title {
        width: 100%;
        font-size: 24px;
    }

    .ads-bg-logo {
        width: 500px;
        height: 500px;
        left: 50%;
        margin-left: -250px;
        top: 0;
    }

    .ads-btn-container {
        justify-content: center;
        padding: 0;
        margin-top: 40px;
    }

    .ads-nav-btn {
        width: 30px;
        height: 60px;
    }

    .ads-nav-btn svg {
        width: 15px;
        height: 30px;
    }



    .about-bg-panel {
        padding: 40px 20px 30px;
        border-radius: 20px;
    }

    .about-content h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .about-content p {
        font-size: 20px;
        line-height: 28px;
    }

    .btn-about-edu {
        width: 200px;
        height: 50px;
        font-size: 16px;
    }

    .about-image {
        position: relative;
        right: auto;
        top: auto;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 570 / 530;
        margin: 30px auto 0;
        border-radius: 20px;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
}

@media (max-width: 400px) {
    nav {
        padding: 10px 12px;
    }

    .logo-section {
        gap: 6px;
    }

    .logo-text {
        font-size: 14px;
    }

    .nav-actions {
        gap: 8px;
        margin-right: 10px;
    }

    .lang-dropdown-toggle {
        gap: 4px;
        padding: 6px 8px;
        font-size: 14px;
    }

    .lang-dropdown-icon {
        font-size: 16px;
    }

    .nav-register-link,
    .nav-actions .user-profile-dropdown {
        display: none !important;
    }

    .mobile-auth-user {
        display: block;
    }
}

@media (max-width: 340px) {
    nav {
        padding: 10px 8px;
    }

    .logo-text {
        font-size: 12px;
    }

    .logo-icon-wrapper,
    .logo-img {
        width: 34px;
        height: 34px;
    }

    .lang-dropdown-toggle {
        padding: 6px;
    }

    .lang-dropdown-toggle .lang-chevron {
        display: none;
    }

    .nav-actions {
        gap: 6px;
        margin-right: 6px;
    }

    .mobile-menu-btn {
        width: 26px;
        height: 18px;
    }

    .nav-login-link {
        display: none !important;
    }

    .mobile-auth-guest {
        display: block;
    }
}


/* ==================================================
   Footer
   ================================================== */
.site-footer {
    position: relative;
    width: 100%;
    background: #5C5C5C;
    overflow: hidden;
    padding: 0;
}

.footer-watermark {
    position: absolute;
    left: 0;
    bottom: 100px;
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 175px;
    line-height: 90%;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 70px 40px;
    gap: 40px;
    z-index: 1;
    /* direction: rtl; */
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-brand {
    max-width: 302px;
    gap: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    direction: ltr;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.1;
    color: #fff;
    text-align: left;
    direction: ltr;
}

.footer-desc {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 20px);
    line-height: 1.5;
    text-align: left;
    color: #fff;
    margin: 0;
}

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 100px 80px rgba(0, 0, 0, 0.07),
        0 41.78px 33.42px rgba(0, 0, 0, 0.05),
        0 22.34px 17.87px rgba(0, 0, 0, 0.04),
        0 12.52px 10.02px rgba(0, 0, 0, 0.035);
    transition: background 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-nav {
    gap: 18px;
}

.footer-nav a {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 23px;
    line-height: 28px;
    text-align: left;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-services {
    gap: 30px;
}

.footer-services h4 {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 23px;
    line-height: 28px;
    text-align: left;
    color: #fff;
    margin: 0;
}

.footer-services a {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    text-align: left;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-services a:hover {
    opacity: 0.7;
}

.footer-contact {
    gap: 30px;
}

.footer-contact h4 {
    font-family: 'Rubik';
    font-weight: 500;
    font-size: 23px;
    line-height: 28px;
    text-align: left;
    color: #fff;
    margin: 0;
}

.contact-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.contact-item span {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    text-align: left;
    color: #fff;
}

.footer-divider {
    width: 1300px;
    max-width: calc(100% - 140px);
    height: 2px;
    background: #D9D9D9;
    border-radius: 5px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 70px 40px;
    /* direction: rtl; */
}

.footer-copyright {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: 20px;
    line-height: 90%;
    color: #fff;
}

.footer-legal {
    font-family: 'Rubik';
    font-weight: 300;
    font-size: 20px;
    line-height: 90%;
    color: #fff;
    cursor: pointer;
}

.footer-legal:hover {
    opacity: 0.7;
}

/* Footer Responsive (Tablet) */
@media (max-width: 1024px) {
    .footer-content {
        flex-wrap: wrap;
        padding: 60px 40px 30px;
        gap: 50px 40px;
    }

    .footer-brand {
        max-width: 100%;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .footer-desc {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-divider {
        max-width: calc(100% - 80px);
    }

    .footer-bottom {
        padding: 30px 40px 40px;
    }

    .footer-watermark {
        font-size: 100px;
    }
}

/* Footer Responsive (Mobile) */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 50px 20px 30px;
        gap: 40px;
    }

    .footer-col {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-nav a,
    .footer-services h4,
    .footer-services a,
    .footer-contact h4 {
        text-align: left;
    }

    .footer-desc {
        text-align: left;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .footer-divider {
        max-width: calc(100% - 40px);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 25px 20px 30px;
        text-align: left;
    }

    .footer-copyright,
    .footer-legal {
        font-size: 16px;
    }

    .footer-watermark {
        font-size: 60px;
        bottom: 60px;
    }
}

/* Ensure the modal parent ignores default padding/headers for a sleek image design */
#adInfoModal .modal-body {
    padding: 0 !important;
}

#adInfoModal .modal-header {
    display: none !important;
}

#adInfoModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ad-modal-custom {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
}

/* Floating beautiful close button */
.ad-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: none;
    transition: all 0.2s ease-in-out;
}

.ad-modal-close:hover {
    transform: scale(1.05);
}

.ad-modal-image {
    width: 100%;
    height: 430px;
    /* High enough to show the beautiful poster format */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.ad-modal-content {
    padding: 10px 24px 20px 24px;
}

.ad-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    font-family: inherit;
}

.ad-modal-desc {
    font-size: 18px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.ad-modal-date {
    font-size: 16px;
    color: #8C98A4;
    margin-top: 10px;
}

/* ==================================================
   Job Swal Modal
   ================================================== */
.job-swal-popup {
    border-radius: 20px !important;
    padding: 40px 30px 30px !important;
    max-width: 420px !important;
    font-family: 'Rubik', sans-serif !important;
}

.job-swal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.job-swal-text {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 400;
    color: #111827;
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.5;
}

.job-swal-html {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.job-swal-actions {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 14px !important;
    justify-content: center !important;
    margin-top: 24px !important;
    width: 100% !important;
}

.job-swal-confirm {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(180deg, #fff -20.45%, #E8BA00 100%);
    border: none;
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.4vw, 18px);
    color: #111827;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(232, 186, 0, 0.25);
}

.job-swal-confirm:hover {
    background: #E8BA00;
}

.job-swal-cancel {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid #E8BA00;
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.4vw, 18px);
    color: #111827;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.job-swal-cancel:hover {
    border-color: #c9a000;
    color: #c9a000;
}

/* View Count Modal */
#viewCountModal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Rubik', sans-serif;
    padding: 20px;
}

#viewCountModal .modal-header {
    border-bottom: none;
    padding: 10px 15px 20px;
}

#viewCountModal .modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    width: 100%;
    text-align: center;
}

#viewCountModal .btn-close-modal {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

#viewCountModal .btn-close-modal:hover {
    background: #E5E7EB;
    color: #111827;
}

[dir="ltr"] #viewCountModal .btn-close-modal {
    right: 20px;
    left: auto;
}

.vc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 15px;
}

.vc-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(232, 186, 0, 0.05);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 25px;
    min-height: 200px;
}

.vc-stat-card.mid-card {
    background: rgba(56, 89, 46, 0.05);
}

.vc-stat-icon {
    font-size: 40px;
    margin-bottom: auto;
}

.vc-stat-icon.gold {
    color: #E8BA00;
}

.vc-stat-icon.green {
    color: #38592E;
}

.vc-stat-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    /* margin-top: 35px; */
}

.vc-stat-value {
    font-size: 40px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: start;
}

.vc-stat-label {
    font-size: 18px;
    font-weight: 400;
    color: #7D7C6E;
    text-align: start;
}

.vc-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 15px;
}

.vc-viewer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.vc-viewer-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
}

.vc-viewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vc-viewer-avatar {
    width: 55px;
    height: 55px;
    background: #FFFFFF;
    box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.vc-viewer-avatar.school {
    color: #38592E;
}

.vc-viewer-avatar.teacher,
.vc-viewer-avatar.parent {
    color: #E8BA00;
}

.vc-viewer-avatar.supplier,
.vc-viewer-avatar.default {
    color: #6B7280;
}

.vc-viewer-details h6 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.vc-viewer-details p {
    margin: 0;
    font-size: 13px;
    color: #9CA3AF;
}

.vc-role-badge {
    position: absolute;
    top: 0;
    min-width: 89px;
    text-align: center;
    justify-content: center;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

[dir="ltr"] .vc-role-badge {
    right: 0;
    border-bottom-left-radius: 12px;
}

.vc-role-badge.school {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(56, 89, 46, 0.6) 100%);
}

.vc-role-badge.teacher,
.vc-role-badge.parent {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(232, 186, 0, 0.6) 100%);
}

.vc-role-badge.supplier,
.vc-role-badge.default {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.12) 0%, rgba(107, 114, 128, 0.6) 100%);
}

.vc-progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vc-progress-item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.vc-progress-label-wrap {
    min-width: 80px;
}

.vc-progress-role {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.vc-progress-count-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.vc-progress-count-number {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.vc-progress-count-label {
    font-size: 13px;
    color: #6B7280;
}

.vc-progress-track-wrap {
    flex: 1;
    position: relative;
    padding: 20px 0;
}

.vc-progress-track {
    position: relative;
    height: 8px;
    background: #FDF3C8;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
}

.vc-progress-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #E8BA00;
    border-radius: 4px;
}

[dir="ltr"] .vc-progress-fill {
    left: 0;
    right: auto;
}

.vc-progress-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3.5px solid #E8BA00;
    border-radius: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

[dir="ltr"] .vc-progress-thumb {
    transform: translate(-50%, -50%);
}

.vc-progress-tooltip {
    position: absolute;
    top: -30px;
    background: #E8BA00;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

[dir="ltr"] .vc-progress-tooltip {
    transform: translateX(-50%);
}

.vc-footer-action {
    margin-top: 30px;
    text-align: right;
}

.vc-btn-close {
    padding: 10px 30px;
    min-width: 120px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #FDF3C8 0%, #E8BA00 100%);
    color: #111827;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(232, 186, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.vc-btn-close:hover {
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .vc-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Voucher Pages (Global/LTR)
   ================================================== */
.vp-root {
    font-family: 'Rubik', sans-serif;
    background: #F8F8F8;
    direction: ltr;
    /* Default */
    overflow-x: hidden;
}

.vp-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #FFFFFF;
    box-shadow: 1px 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.vp-hero::after {
    content: '';
    position: absolute;
    width: 389px;
    height: 280px;
    right: -60px;
    top: -73px;
    background: rgba(232, 186, 0, 0.4);
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.vp-hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.vp-hero-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 40px;
    color: #111827;
    margin: 0 0 10px;
}

.vp-hero-subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: #6B7280;
    margin: 0;
}

.vp-hero-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
    opacity: 0.9;
}

.vp-main {
    padding: 0 0 60px;
}

.vp-filters-bar {
    margin-bottom: 24px;
}

.vp-filters-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4B5563;
}

.vp-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3F4F6;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #374151;
}

.vp-chip-x {
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    margin-right: 4px;
}

.vp-chip-x:hover {
    color: #EF4444;
}

.vp-clear-all {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    text-decoration: none;
}

.vp-clear-all:hover {
    color: #E8BA00;
}

.vp-results-count {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #9CA3AF;
}

.vp-sidebar {
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.vp-sidebar-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #111827;
    text-align: center;
    /* Default for search, overridden for My Vouchers summary */
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}

.vp-field-label {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #111827;
    margin-bottom: 10px;
    text-align: left;
}

.vp-select {
    width: 100%;
    height: 48px;
    background: #FCFBFB;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 8px;
    padding: 0 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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: right 12px center;
    cursor: pointer;
    text-align: left;
}

.vp-select:focus {
    outline: none;
    border-color: #E8BA00;
}

.vp-grades-wrap {
    padding-right: 5px;
}

.vp-grades-wrap::-webkit-scrollbar {
    width: 4px;
}

.vp-grades-wrap::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

.vp-grade-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px 0;
    cursor: pointer;
}

.vp-grade-row label {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.vp-grade-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #E8BA00;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #fff;
    flex-shrink: 0;
    margin: 0;
}

.vp-grade-row input[type="checkbox"]:checked {
    background: #E8BA00;
}

.vp-grade-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vp-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(107, 114, 128, 0.05);
}

.vp-collapsible-header label {
    margin: 0;
    cursor: pointer;
}

.vp-toggle-icon {
    font-size: 14px;
    color: #6B7280;
    transition: transform 0.2s;
    margin-right: 4px;
}

.vp-collapsible-section.active .vp-toggle-icon {
    transform: rotate(180deg);
}

.vp-collapsible-content {
    display: none;
    margin-top: 10px;
}

.vp-collapsible-section.active .vp-collapsible-content {
    display: block;
}

.vp-btn-apply {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #FDE68A 0%, #E8BA00 100%);
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(232, 186, 0, 0.3);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-btn-apply:hover {
    opacity: 0.9;
}

.vp-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #374151;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    font-family: 'Rubik', sans-serif;
}

.vp-btn-secondary i {
    color: #E8BA00;
    font-size: 16px;
}

.vp-btn-secondary:hover {
    background: #F9FAFB;
    border-color: #E8BA00;
    color: #E8BA00;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vp-btn-clear {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #E8BA00;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.vp-btn-clear:hover {
    background: #FFFDF0;
    color: #111827;
}

.vp-card {
    position: relative;
    width: 100%;
    min-height: 160px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.vp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vp-card-badge {
    width: 180px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    /* For My Vouchers */
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-right: 2px dashed rgba(107, 114, 128, 0.2);
    padding: 15px;
}

.vp-card-badge::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -13px;
    top: -13px;
    background: #F8F8F8;
    border-radius: 50%;
    border: 1px solid rgba(107, 114, 128, 0.15);
    clip-path: inset(50% 0 0 0);
    z-index: 2;
}

.vp-card-badge::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -13px;
    bottom: -13px;
    background: #F8F8F8;
    border-radius: 50%;
    border: 1px solid rgba(107, 114, 128, 0.15);
    clip-path: inset(0 0 50% 0);
    z-index: 2;
}

.vp-card-code {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.vp-card-details {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.vp-card-school,
.vp-school-name {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    margin: 0 0 12px;
}

.vp-voucher-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
    margin: 0 0 16px;
}

.vp-card-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #6B7280;
    font-size: 14px;
}

.vp-card-info-row i {
    color: #E8BA00;
    width: 16px;
    text-align: center;
}

.vp-card-actions {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-btn-copy,
.vp-btn-details {
    padding: 10px 20px;
    background: #38592E;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.vp-btn-details {
    width: 140px;
    height: 44px;
    background: linear-gradient(180deg, #FDE68A 0%, #E8BA00 100%);
    color: #111827;
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(232, 186, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-btn-copy:hover,
.vp-btn-details:hover {
    opacity: 0.9;
    color: inherit;
}

.vp-btn-expired {
    padding: 10px 20px;
    background: #F3F4F6;
    color: #EF4444;
    border: 1px solid #FEE2E2;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-summary-content {
    text-align: center;
}

.vp-empty {
    text-align: center;
    padding: 60px 20px;
}

.vp-empty p {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #9CA3AF;
}

@media (max-width: 768px) {
    .vp-card {
        flex-direction: column;
    }

    .vp-card-badge {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 2px dashed rgba(107, 114, 128, 0.2);
        padding: 20px;
    }

    .vp-card-badge::before {
        left: 50%;
        top: -13px;
        transform: translateX(-50%);
        clip-path: inset(50% 0 0 0);
    }

    .vp-card-badge::after {
        left: 50%;
        bottom: -13px;
        transform: translateX(-50%);
        clip-path: inset(0 0 50% 0);
    }

    .vp-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .vp-btn-details {
        width: 100%;
        margin-top: 8px;
    }
}

/* SELECT2 overrides */
.select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid rgba(107, 114, 128, 0.2) !important;
    border-radius: 8px !important;
    background: #FCFBFB !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #4B5563;
    padding-left: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 10px;
    height: 100%;
}

/* ==================================================
   Voucher Grid Layout
   ================================================== */
.vp-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 1200px) {
    .vp-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Adjust card behavior inside grid if needed */
.vp-grid-container .vp-card {
    height: 100%;
    margin-bottom: 0;
    /* Gap handles this */
}

/* ==================================================
   Class Card Page Styles
   ================================================== */
.cc-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

@media (min-width: 1200px) {
    .cc-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cc-card {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cc-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #FDFBF7 0%, #FFF9E3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cc-card:hover .cc-card-image img {
    transform: scale(1.05);
}

.cc-card-details {
    flex: 1;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cc-card-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
}

.cc-card-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-store-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-store-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.cc-store-name {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
}

.cc-category-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.cc-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 114, 128, 0.1);
}

.cc-card-price {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #111827;
}

.cc-btn-buy {
    padding: 10px 24px;
    background: linear-gradient(180deg, #FDE68A 0%, #E8BA00 100%);
    color: #111827;
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(232, 186, 0, 0.3);
}

.cc-btn-buy:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cc-btn-buy.cc-btn-disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

.cc-btn-buy.cc-btn-disabled:hover {
    opacity: 1;
    transform: none;
}

/* Price Range Slider */
.cc-range-wrapper {
    position: relative;
    padding-top: 10px;
    margin-bottom: 20px;
}

.cc-range-track {
    position: relative;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    margin: 0 4px;
    overflow: visible;
}

.cc-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #E8BA00;
    border-radius: 4px;
    z-index: 1;
}

.cc-range-input {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    width: 100%;
    height: 18px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
    box-sizing: border-box;
    padding: 0;
}

.cc-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E8BA00;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: all;
    margin-top: -1px;
}

.cc-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E8BA00;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: all;
}

.cc-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .cc-card-image {
        height: 160px;
    }

    .cc-card-action {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .cc-btn-buy {
        width: 100%;
        text-align: center;
    }

    .cc-card-price {
        text-align: center;
    }
}

/* ==================================================
   Global Button Hover Fix
   ================================================== */
a[class*="btn"]:hover,
a.btn:hover,
a.school-btn-details:hover,
a.sd-back-hero-link:hover,
a.sd-footer-back-btn:hover,
a.back-link:hover,
.nav-dropdown-item:hover,
.lang-dropdown-item:hover {
    text-decoration: none !important;
}
