:root {
    --primary-green: #1a5e20;
    --secondary-green: #4caf50;
    --gold: #d4af37;
    --light-gold: #f9e79f;
    --white: #ffffff;
    --dark: #212121;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f8f9fa;
    color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
}

.home-body {
    background:
        radial-gradient(1100px 500px at 10% -10%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 60%),
        radial-gradient(900px 450px at 95% 15%, rgba(26, 94, 32, 0.16) 0%, rgba(26, 94, 32, 0) 60%),
        linear-gradient(180deg, #f8fbf8 0%, #f8f9fa 40%, #ffffff 100%);
}

.navbar {
    background-color: var(--primary-green);
    border-bottom: 3px solid var(--gold);
}

.themar-nav-stack {
    z-index: 1030;
}

.themar-news-ticker {
    --ticker-duration: 45s;
    background: linear-gradient(90deg, rgba(26, 94, 32, 1) 0%, rgba(46, 125, 50, 1) 55%, rgba(212, 175, 55, 0.95) 120%);
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.themar-news-ticker--nav {
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.themar-news-ticker--below {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ticker-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    direction: rtl;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: themarTicker var(--ticker-duration) linear infinite;
    will-change: transform;
    padding: 4px 0;
}

.themar-news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.themar-news-ticker.is-paused .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 800;
    opacity: 0.95;
    direction: rtl;
    cursor: pointer;
    user-select: none;
}

.ticker-item:hover {
    opacity: 1;
    text-decoration: none;
}

.ticker-item-muted {
    opacity: 0.85;
    font-weight: 800;
}

.ticker-source {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 900;
    font-size: 0.85rem;
}

@keyframes themarTicker {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.nav-link {
    color: var(--white) !important;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2e7d32 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #f8f9fa;
    transform: skewY(-2deg);
}

.hero-carousel {
    padding: 0;
}

.hero-carousel::after {
    z-index: 3;
}

.home-hero {
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(46, 125, 50, 1) 55%, rgba(212, 175, 55, 0.65) 130%);
    padding: 0;
    text-align: initial;
}

.home-hero .hero-content {
    padding: 120px 0;
}

.home-hero .hero-overlay {
    background: radial-gradient(900px 500px at 10% 10%, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 60%),
        radial-gradient(900px 520px at 90% 10%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

.hero-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-photo-1 {
    grid-column: 1 / 3;
    height: 260px;
}

.hero-photo-2 {
    grid-column: 1 / 3;
    height: 210px;
}

.hero-dynamic-carousel {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-dynamic-img {
    height: 460px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero-dynamic-img {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .home-hero .hero-content {
        padding: 90px 0 120px;
    }

    .hero-photo {
        height: 170px;
    }

    .hero-photo-1 {
        height: 210px;
    }
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
    height: 560px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 94, 32, 0.78) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 110px 0;
}

@media (max-width: 992px) {

    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-slide {
        height: 520px;
    }

    .hero-content {
        padding: 90px 0;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.home-category-card {
    position: relative;
    overflow: hidden;
}

.home-category-card::after {
    content: '';
    position: absolute;
    inset: -30px -40px;
    background-repeat: no-repeat;
    background-size: 420px auto;
    background-position: left bottom;
    opacity: 0;
    animation: widgetFloat 12s ease-in-out infinite;
    pointer-events: none;
}

.home-engineers::after {
    background-image: url('../images/cover-engineers.svg');
}

.home-farmers::after {
    background-image: url('../images/cover-farmers.svg');
}

.home-investors::after {
    background-image: url('../images/cover-investors.svg');
}

.home-category-card>* {
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.category-icon {
    font-size: 4rem;
    color: #fff;
    margin: 0 auto 24px;
    width: 108px;
    height: 108px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(212, 175, 55, 0.95) 100%);
    box-shadow: 0 20px 42px rgba(26, 94, 32, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.category-title {
    font-family: 'Cairo', sans-serif;
    color: var(--primary-green);
    font-weight: 900;
    margin-bottom: 15px;
}

.btn-custom {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--gold);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--gold);
    color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a5e20 50%, var(--gold) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.login-body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    z-index: 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.auth-split {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.auth-images {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}



.auth-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.auth-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-image-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .auth-images-col {
        display: none;
    }

    .login-card {
        max-width: 520px;
    }
}

.login-logo {
    max-width: 150px;
    margin-bottom: 30px;
}

.login-brand-gradient {
    background: linear-gradient(135deg, #1a5e20 0%, #2e7d32 45%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.login-title {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-control-login {
    border-radius: 50px;
    padding: 12px 25px;
    border: 2px solid #eee;
    margin-bottom: 0;
    transition: all 0.3s ease;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0;
}

.form-control-login {
    padding-right: 45px;
}

.form-control-login:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.1);
}

.btn-gold {
    background-color: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background-color: #c5a028;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.login-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 15px auto;
}

.grayscale {
    filter: grayscale(1);
}

.disabled {
    cursor: not-allowed !important;
}

.themar-toast-container {
    z-index: 2000;
}

.themar-toast-container .toast {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Enhanced Farmers Page Styles */
.bg-light-green {
    background: linear-gradient(180deg, #f8fcf8 0%, #e8f5e9 100%);
    position: relative;
    padding: 100px 0;
}

.bg-light-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #f8f9fa;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-tab {
    padding: 12px 25px;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-tab:hover,
.search-tab.active {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-3px);
}

.search-tab.active {
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(26, 94, 32, 0.2);
}

.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 60px;
    padding: 8px;
    display: flex;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-green);
}

.search-input {
    border: none;
    padding: 15px 30px;
    width: 100%;
    border-radius: 60px;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0 40px;
    border-radius: 60px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--gold);
    color: var(--primary-green);
}

/* Tool Containers */
.mixing-tool-container,
.phi-tool-container {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mixing-tool-container:hover,
.phi-tool-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.academy-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.mixing-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.plus-icon {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
}

/* Result Cards */
.result-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border-right: 5px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: scale(1.02);
}

.result-badge {
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.badge-pest {
    background: #fee2e2;
    color: #dc2626;
}

.badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.badge-product {
    background: #fef9c3;
    color: #ca8a04;
}

/* Plant Clinic Styles */

.plant-clinic-section {
    background: linear-gradient(rgba(26, 94, 32, 0.05), rgba(212, 175, 55, 0.05));
    padding: 80px 0;
}

.clinic-container {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(26, 94, 32, 0.1);
}

.clinic-header {
    margin-bottom: 40px;
}

.clinic-icon-lg {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--light-gold);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    text-align: center;
}

.upload-box {
    border: 3px dashed #cbd5e0;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--primary-green);
    background: #f1f5f9;
}

.upload-box i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.upload-box.active {
    border-color: var(--secondary-green);
    background: #e8f5e9;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-green);
    box-shadow: 0 0 15px var(--secondary-green);
    animation: scan 2s linear infinite;
    display: none;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.diagnosis-result {
    display: none;
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

.diagnosis-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.diagnosis-header {
    background: var(--primary-green);
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confidence-badge {
    background: var(--gold);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
}

.diagnosis-body {
    padding: 30px;
    background: #fff;
}

.treatment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.treatment-item i {
    color: var(--gold);
    margin-left: 15px;
    margin-top: 5px;
}

.btn-retry {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: #e2e8f0;
}

/* Footer override for specific pages if needed */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 40px 0;
    margin-top: 0;
}

.footer-logo {
    color: var(--gold);
    font-weight: bold;
    font-size: 2rem;
}

/* Search Engine Styles */
.search-container {
    max-width: 800px;
    margin: 50px auto;
}

.search-box-wrapper {
    position: relative;
    background: #fff;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    padding: 15px 30px;
    width: 100%;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--gold);
    color: var(--primary-green);
}

.search-hints {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.search-hints span {
    color: var(--primary-green);
    font-weight: 600;
}

.result-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-right: 5px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: none;
    /* Hidden by default */
}

.result-card:hover {
    transform: translateX(-5px);
}

.result-title {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.result-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
    flex-wrap: wrap;
}

.result-meta i {
    color: var(--gold);
    margin-left: 5px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    display: none;
}

/* Enhanced Search UI */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-tab {
    padding: 8px 25px;
    border-radius: 30px;
    border: 2px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #666;
}

.search-tab.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pest {
    background: #ffebee;
    color: #c62828;
}

.badge-active {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-product {
    background: #e8f5e9;
    color: #2e7d32;
}

.detail-btn {
    border: none;
    background: none;
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
}

.source-tag {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: var(--primary-green);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 700;
}

.technical-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item h6 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 5px;
}

.phi-badge {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
}

.phi-table {
    width: 100%;
    margin-top: 15px;
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
}

.phi-table th {
    background: #f5f5f5;
    padding: 10px;
    text-align: right;
    border-bottom: 2px solid var(--primary-green);
}

.phi-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.phi-high {
    color: #d32f2f;
    font-weight: 700;
}

.phi-low {
    color: #388e3c;
    font-weight: 700;
}

/* PHI Tool Styles */
.phi-tool-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-top: 50px;
}

.phi-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 15px;
    border: 1px solid #eee;
    padding: 10px;
}

.phi-item {
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 5px;
    font-weight: 600;
}

.phi-item:hover {
    background: #f8f9fa;
    border-color: var(--gold);
}

.phi-item.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.phi-details-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    /* Reduced padding from 25px */
    height: auto;
    /* Changed from 100% to fit content better */
    min-height: 120px;
    border: 1px dashed #ccc;
    /* Thinner border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.phi-details-content {
    display: none;
    width: 100%;
}

/* Custom PHI Select Styling */
#phiSelect {
    width: auto;
    min-width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

/* Section Container Styles */
.feature-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.feature-section:last-child {
    border-bottom: none;
}

.section-tag {
    font-family: 'Cairo', sans-serif;
    display: inline-block;
    background: var(--light-gold);
    color: var(--primary-green);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-main-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.section-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Enhanced Academy Card */
.academy-card-new {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.academy-card-new:hover {
    transform: translateY(-10px);
}

.academy-card-digital {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(145deg, #f7fff8 0%, #eef8f1 52%, #fff9ea 100%);
    border: 1px solid rgba(11, 102, 35, 0.09);
}

.academy-card-digital .card-img-wrapper {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 78% 24%, rgba(212, 175, 55, 0.22), transparent 20%),
        linear-gradient(135deg, #0e5f31 0%, #198443 56%, #d4af37 100%);
}

.academy-card-digital .card-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.academy-card-digital .card-img-wrapper::after {
    content: '\f19d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 24px;
    bottom: 18px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.digital-academy-icon {
    background: linear-gradient(135deg, #0d7a3b 0%, #1f9a4a 58%, #d4af37 100%);
    box-shadow: 0 14px 32px rgba(13, 122, 59, 0.28);
    width: 64px;
    height: 64px;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
}

.digital-academy-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.55rem;
    line-height: 1;
}

.library-card .card-img-wrapper {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 20%),
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(135deg, #8d1010 0%, #d72626 52%, #ff9a3c 100%);
    position: relative;
}

.library-card .card-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
}

.library-card .card-img-wrapper::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    left: 26px;
    bottom: 18px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.22);
}

.certificate-card .card-img-wrapper {
    background:
        radial-gradient(circle at 22% 24%, rgba(255, 244, 200, 0.28), transparent 18%),
        radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.12), transparent 16%),
        linear-gradient(135deg, #7a5a11 0%, #c79618 48%, #f3df9a 100%);
    position: relative;
}

.certificate-card .card-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.certificate-card .card-img-wrapper::after {
    content: '\f559';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 24px;
    bottom: 18px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.24);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-green);
    color: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-body-content {
    padding: 30px;
}

.card-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

/* Video Section Enhancement */
.video-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Weather Widget Styles */
.weather-section {
    background: linear-gradient(rgba(26, 94, 32, 0.9), rgba(26, 94, 32, 0.9)), url('https://images.unsplash.com/photo-1534088568595-a066f410bcda?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
    margin: 50px 0;
}

.home-widgets {
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.widgets-panel {
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0) 60%),
        radial-gradient(900px 520px at 95% 10%, rgba(26, 94, 32, 0.55) 0%, rgba(26, 94, 32, 0) 62%),
        linear-gradient(135deg, rgba(26, 94, 32, 0.92) 0%, rgba(46, 125, 50, 0.9) 55%, rgba(212, 175, 55, 0.55) 130%);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
    padding: 34px 22px;
    position: relative;
    overflow: hidden;
}

.widgets-panel::after {
    content: '';
    position: absolute;
    inset: -40px -60px;
    background-image: url('../images/cover-farmers.svg');
    background-repeat: no-repeat;
    background-size: 560px auto;
    background-position: left bottom;
    opacity: 0.06;
    pointer-events: none;
}

.widgets-panel .section-main-title,
.widgets-panel .section-tag,
.widgets-panel .section-desc {
    color: #fff;
}

.widgets-panel .section-tag {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.widgets-panel .section-desc {
    color: rgba(255, 255, 255, 0.82);
}

.widgets-panel>* {
    position: relative;
    z-index: 1;
}

.home-widgets::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: rgba(26, 94, 32, 0.06);
    border-radius: 120px;
    transform: rotate(18deg);
    top: -200px;
    right: -180px;
    filter: blur(1px);
    pointer-events: none;
}

.icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 18px;
    border-radius: 26px;
    border: 1px solid rgba(26, 94, 32, 0.14);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.icon-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.09);
}

.icon-tile-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(46, 125, 50, 1) 70%, rgba(212, 175, 55, 0.35) 100%);
    box-shadow: 0 16px 32px rgba(26, 94, 32, 0.18);
}

.icon-tile-icon-alt {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(26, 94, 32, 1) 85%);
    color: #fff;
}

.icon-tile-title {
    font-weight: 900;
    color: var(--dark);
    text-align: center;
}

.widget-card {
    border: 1px solid rgba(26, 94, 32, 0.14);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
}

.widget-card::after {
    content: '';
    position: absolute;
    inset: -40px -60px;
    background-repeat: no-repeat;
    background-size: 520px auto;
    background-position: left bottom;
    opacity: 0.07;
    transform: translate3d(0, 0, 0);
    animation: widgetFloat 10s ease-in-out infinite;
    pointer-events: none;
}

.widget-card>* {
    position: relative;
    z-index: 1;
}

.widget-weather::after {
    background-image: url('../images/cover-sustain.svg');
}

.widget-seasons::after {
    background-image: url('../images/cover-farmers.svg');
    background-position: right bottom;
}

@keyframes widgetFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -12px, 0) scale(1.02);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.widget-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.09);
}

.widget-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 22px 55px rgba(0, 0, 0, 0.09);
}

.widget-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.widget-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(46, 125, 50, 1) 70%, rgba(212, 175, 55, 0.35) 100%);
    box-shadow: 0 14px 30px rgba(26, 94, 32, 0.18);
    flex: 0 0 auto;
}

.widget-seasons .widget-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(26, 94, 32, 1) 85%);
    color: #fff;
}

.widget-kicker {
    font-weight: 900;
    font-size: 0.85rem;
    color: rgba(26, 94, 32, 0.75);
    letter-spacing: 0.2px;
}

.widget-title {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--dark);
    line-height: 1.25;
    margin-top: 4px;
}

.widget-sub {
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 700;
}

.widget-metric {
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--primary-green);
    line-height: 1;
    white-space: nowrap;
}

.widget-metric-sm {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 94, 32, 0.07);
    color: var(--primary-green);
    font-size: 1.5rem;
}

.widget-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.widget-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(26, 94, 32, 0.12);
    background: rgba(26, 94, 32, 0.04);
    color: rgba(33, 33, 33, 0.9);
    font-weight: 800;
    font-size: 0.95rem;
}

.widget-chip i {
    color: var(--primary-green);
}

.widget-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .widget-split {
        grid-template-columns: 1fr;
    }
}

.widget-mini-title {
    font-weight: 900;
    color: rgba(26, 94, 32, 0.85);
    margin-bottom: 8px;
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.themar-modal {
    border-radius: 24px;
    border: 1px solid rgba(26, 94, 32, 0.14);
    overflow: hidden;
}

.themar-modal .modal-header {
    background: linear-gradient(135deg, rgba(26, 94, 32, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    background: rgba(26, 94, 32, 0.95);
    box-shadow: 0 14px 30px rgba(26, 94, 32, 0.18);
}

.modal-kicker {
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1.15rem;
}

.modal-temp {
    font-weight: 900;
    color: var(--gold);
    font-size: 2.6rem;
    line-height: 1;
}

.modal-desc {
    font-weight: 800;
    color: rgba(33, 33, 33, 0.85);
}

.themar-modal .weather-details-grid {
    margin-top: 16px;
    border-top: 1px solid rgba(26, 94, 32, 0.12);
    padding-top: 18px;
}

.seasons-modal-body .season-details-container {
    margin-top: 20px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.advice-toggle-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    margin-top: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}

.advice-toggle-btn:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--primary-green);
}

.advice-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-top: 20px;
}

.advice-dropdown-content.show {
    max-height: 1000px;
    padding: 25px;
}

.advice-item-rich {
    color: var(--dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.advice-item-rich:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.advice-category {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.temp-value {
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.weather-icon-lg {
    font-size: 6rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.weather-detail-item {
    text-align: center;
}

.weather-detail-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.advice-card {
    background: var(--white);
    color: var(--dark);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    border-right: 5px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advice-card h5 {
    color: var(--primary-green);
    font-weight: 800;
    margin-bottom: 15px;
}

.alert-weather {
    background: #fff3e0;
    color: #e65100;
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.disease-prediction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    border-right: 5px solid #d32f2f;
    display: none;
    /* Show only when a threat is detected */
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.disease-title {
    color: #d32f2f;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.treatment-box {
    background: #f1f8e9;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--primary-green);
    margin-top: 10px;
}

/* Seasons Section Styles */
.seasons-section {
    padding: 80px 0;
    background-color: #fff;
}

.month-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.month-card:hover,
.month-card.active {
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(26, 94, 32, 0.1);
    transform: translateY(-5px);
}

.month-card.active {
    background: var(--primary-green);
    color: #fff;
}

.month-name {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.coptic-name {
    font-size: 0.85rem;
    opacity: 0.8;
}

.season-details-container {
    background: #f9fbf9;
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid #e8f5e9;
}

.crop-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 5px;
}

.tag-plant {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-harvest {
    background: #fff3e0;
    color: #e65100;
}

.season-info-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.season-info-box h5 {
    color: var(--primary-green);
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Academy Section Styles */
.academy-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.academy-section::before {
    content: '\f19d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    bottom: -20px;
    font-size: 10rem;
    color: rgba(26, 94, 32, 0.05);
}

.academy-icon-wrapper {
    background: var(--primary-green);
    color: var(--gold);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(26, 94, 32, 0.2);
}

.course-placeholder {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: #888;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.course-placeholder:hover {
    border-color: var(--gold);
    background: #fff;
}

/* Video Gallery Styles */
.video-section {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.video-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
}

.video-thumb-placeholder {
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}

.play-icon {
    font-size: 3rem;
    color: #ff0000;
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    color: #fff;
}

.video-info {
    padding: 20px;
    text-align: center;
}

.youtube-badge {
    background: #ff0000;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

/* Certification Section Styles */
.cert-section {
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.cert-icon-wrapper {
    background: var(--gold);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.quiz-placeholder {
    background: #fff;
    border: 2px dashed var(--gold);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.quiz-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.cert-badge {
    display: inline-block;
    background: var(--primary-green);
    color: var(--gold);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Mixing Tool Styles */
.mixing-tool-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    margin-top: 50px;
}

.mixing-header {
    text-align: center;
    margin-bottom: 30px;
}

.mixing-header h3 {
    color: var(--primary-green);
    font-weight: 700;
}

.mixing-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.plus-icon {
    font-size: 2rem;
    color: var(--gold);
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    display: none;
    transition: all 0.3s ease;
}

.result-success {
    background-color: #e8f5e9;
    border: 2px solid #2e7d32;
    color: #1b5e20;
}

.result-danger {
    background-color: #ffebee;
    border: 2px solid #c62828;
    color: #b71c1c;
}

.result-warning {
    background-color: #fffde7;
    border: 2px solid #fbc02d;
    color: #f57f17;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.reason-text {
    font-weight: 600;
    margin-top: 10px;
}

.agri-exchange-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.agri-exchange-card-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.10) 0%, rgba(212, 175, 55, 0.10) 100%);
}

.agri-exchange-table thead th {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-green);
    background: rgba(46, 125, 50, 0.06);
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
    white-space: nowrap;
}

.agri-exchange-table tbody td {
    vertical-align: middle;
}

.agri-exchange-table a {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
}

.agri-exchange-table a:hover {
    text-decoration: underline;
}

.agri-exchange-launcher {
    margin-bottom: 6px;
}

.agri-exchange-toggle {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(26, 94, 32, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(135deg, rgba(26, 94, 32, 0.08) 0%, rgba(255, 255, 255, 0.96) 60%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: right;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agri-exchange-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
}

.agri-exchange-toggle-link {
    text-decoration: none;
    color: inherit;
}

.agri-exchange-toggle-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(212, 175, 55, 0.96) 100%);
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 18px 36px rgba(26, 94, 32, 0.18);
}

.agri-exchange-toggle-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agri-exchange-toggle-copy strong {
    color: var(--primary-green);
    font-size: 1.15rem;
    font-weight: 900;
}

.agri-exchange-toggle-copy small {
    color: #62726b;
    font-size: 0.98rem;
    line-height: 1.8;
}

.agri-exchange-toggle-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    display: none;
}

.agri-exchange-toggle-meta i {
    color: var(--primary-green);
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.agri-exchange-toggle-meta i.is-open {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .agri-exchange-toggle {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .agri-exchange-toggle-icon {
        margin: 0 auto;
    }

    .agri-exchange-toggle-meta {
        align-items: center;
    }
}

.home-hero {
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: auto auto -120px -80px;
    width: 320px;
    height: 320px;
    border-radius: 80px;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(25deg);
    pointer-events: none;
}

.hero-title-home {
    max-width: 760px;
    font-size: 4rem;
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-vision-frame {
    background: linear-gradient(135deg, rgba(26, 94, 32, 0.96) 0%, rgba(46, 125, 50, 0.94) 58%, rgba(212, 175, 55, 0.88) 120%);
    border: 2px solid rgba(212, 175, 55, 0.65);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 22px 44px rgba(26, 94, 32, 0.18);
}

.about-vision-frame .category-title {
    color: var(--gold);
}

.about-vision-frame p {
    color: var(--white) !important;
}

.hero-subtitle-home {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
    font-size: 1.18rem;
    margin-bottom: 0;
}

.hero-badge {
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hero-actions-home {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-point-card {
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-point-card strong,
.hero-point-card span {
    display: block;
}

.hero-point-card strong {
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

.hero-point-card span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.hero-showcase-card {
    position: relative;
    padding: 26px;
    border-radius: 34px;
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(212, 175, 55, 0.24) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(6, 31, 10, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.hero-showcase-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-showcase-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-showcase-chip-alt {
    background: rgba(212, 175, 55, 0.2);
    color: #fff6d0;
}

.hero-showcase-brand {
    text-align: center;
    padding: 16px 0 24px;
}

.hero-showcase-brand img {
    max-width: 230px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
}

.hero-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-showcase-mini {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-showcase-mini i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 1) 0%, rgba(26, 94, 32, 1) 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}

.hero-showcase-mini strong,
.hero-showcase-mini span {
    display: block;
}

.hero-showcase-mini strong {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 900;
}

.hero-showcase-mini span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    font-size: 0.92rem;
}

.home-highlight-strip {
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

.highlight-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 94, 32, 0.1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.highlight-pill i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(212, 175, 55, 0.92) 100%);
    color: #fff;
    flex-shrink: 0;
}

.highlight-pill strong,
.highlight-pill span {
    display: block;
}

.highlight-pill strong {
    color: var(--primary-green);
    font-weight: 900;
    margin-bottom: 4px;
}

.highlight-pill span {
    color: #5f6b66;
    line-height: 1.7;
    font-size: 0.95rem;
}

.widgets-panel {
    border-radius: 34px;
    padding: 42px 28px;
}

.icon-tile {
    min-height: 210px;
}

.icon-tile:hover .icon-tile-icon {
    transform: translateY(-4px) scale(1.04);
}

.icon-tile-icon {
    transition: transform 0.25s ease;
}

.section-title h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.08rem;
}

.category-card {
    border-radius: 28px;
    padding: 42px 32px;
    box-shadow: 0 18px 45px rgba(13, 22, 34, 0.08);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(26, 94, 32, 1) 0%, rgba(212, 175, 55, 1) 100%);
}

.home-about-section {
    position: relative;
    background:
        radial-gradient(700px 320px at 10% 10%, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
}

.home-about-intro {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #53615b;
    max-width: 640px;
}

.home-about-list li {
    font-weight: 700;
    color: #2b3934;
}

.home-about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.home-about-stat {
    min-width: 150px;
    padding: 18px 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(26, 94, 32, 0.1);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.05);
}

.home-about-stat strong,
.home-about-stat span {
    display: block;
}

.home-about-stat strong {
    font-size: 1.45rem;
    color: var(--primary-green);
    font-weight: 900;
}

.home-about-stat span {
    color: #60706a;
    font-weight: 700;
}

.home-about-visual {
    position: relative;
    display: inline-block;
}

.home-about-visual::before {
    content: '';
    position: absolute;
    inset: -18px 24px 24px -24px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(26, 94, 32, 0.14) 0%, rgba(212, 175, 55, 0.22) 100%);
    z-index: 0;
}

.home-about-image {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
}

footer {
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(135deg, #114517 0%, #1a5e20 52%, #0f3313 100%);
}

@media (max-width: 992px) {
    .hero-title-home {
        font-size: 3rem;
    }

    .hero-points,
    .hero-showcase-grid {
        grid-template-columns: 1fr;
    }

    .home-highlight-strip {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-actions-home {
        flex-direction: column;
    }

    .hero-actions-home .btn {
        width: 100%;
    }

    .hero-title-home {
        font-size: 2.35rem;
    }

    .hero-subtitle-home {
        font-size: 1.02rem;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .category-card {
        padding: 34px 24px;
    }
}

.hero-title-wide {
    max-width: 720px;
}

.hero-subtitle-wide {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.hero-metric-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.hero-metric-card strong,
.hero-metric-card span {
    display: block;
}

.hero-metric-card strong {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 6px;
}

.hero-metric-card span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.7;
}

.hero-news-shell {
    position: relative;
}

.hero-news-panel,
.hero-briefing-card {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.hero-news-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(7, 28, 9, 0.22) 100%);
    padding: 24px;
}

.hero-news-topbar,
.hero-spotlight-meta,
.briefing-head,
.headlines-panel-head,
.news-lead-meta,
.news-compact-meta,
.section-title-split,
.news-hub-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-news-chip,
.spotlight-badge,
.hero-mini-label,
.news-section-pill,
.news-compact-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    border-radius: 999px;
}

.hero-news-chip {
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-news-update {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.hero-spotlight-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 55, 0.16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.spotlight-badge,
.news-section-pill,
.news-compact-tag {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    margin-bottom: 14px;
}

.hero-spotlight-card h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero-spotlight-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.9;
    margin-bottom: 18px;
}

.hero-spotlight-meta {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-weight: 900;
    text-decoration: none;
}

.hero-spotlight-link:hover {
    color: #fff;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hero-mini-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-mini-card-link {
    text-decoration: none;
}

.hero-mini-label {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(212, 175, 55, 0.18);
    color: var(--light-gold);
    margin-bottom: 10px;
}

.hero-mini-card p,
.hero-mini-card small {
    display: block;
}

.hero-mini-card p {
    color: #fff;
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 6px;
}

.hero-mini-card small {
    color: rgba(255, 255, 255, 0.72);
}

.hero-briefing-card {
    margin-top: 18px;
    padding: 22px 24px;
    background: rgba(7, 28, 9, 0.18);
}

.briefing-head h3,
.headlines-panel-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.briefing-head span,
.headlines-panel-head span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.briefing-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.briefing-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    margin-bottom: 12px;
}

.briefing-list i {
    color: var(--gold);
}

.home-news-hub {
    padding: 30px 0 30px;
}

.news-hub-status {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(26, 94, 32, 0.08);
    border: 1px solid rgba(26, 94, 32, 0.12);
    color: var(--primary-green);
    font-weight: 800;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1fc16b;
    box-shadow: 0 0 0 6px rgba(31, 193, 107, 0.14);
}

.news-lead-card,
.headlines-panel,
.news-compact-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(26, 94, 32, 0.12);
    background: #fff;
    box-shadow: 0 22px 55px rgba(16, 24, 40, 0.08);
}

.news-lead-card {
    min-height: 100%;
    padding: 32px;
    background:
        radial-gradient(700px 260px at 100% 0%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(135deg, #154a1a 0%, #236328 65%, #f7fbf7 170%);
}

.news-card-glow {
    position: absolute;
    inset: auto -60px -100px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    filter: blur(10px);
}

.news-lead-content {
    position: relative;
    z-index: 1;
}

.news-lead-card h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.55;
    margin-bottom: 14px;
}

.news-lead-card p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.9;
    font-size: 1.05rem;
}

.news-lead-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    margin: 18px 0 24px;
}

.headlines-panel {
    padding: 24px;
    background:
        radial-gradient(420px 220px at 10% 0%, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%),
        #fff;
}

.headline-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.headline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 14px;
    border-radius: 22px;
    text-decoration: none;
    background: rgba(26, 94, 32, 0.04);
    border: 1px solid rgba(26, 94, 32, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-images-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-images-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.auth-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gate-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .gate-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

.headline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.08);
}

.headline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 94, 32, 1) 0%, rgba(212, 175, 55, 0.88) 100%);
    color: #fff;
    font-weight: 900;
}

.headline-item strong,
.headline-item small,
.news-compact-card h3,
.news-compact-card p,
.news-compact-card a {
    display: block;
}

.headline-item strong {
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 6px;
}

.headline-item small {
    color: #5f6b66;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.news-compact-card {
    padding: 24px;
}

.news-compact-tag {
    color: var(--primary-green);
    background: rgba(26, 94, 32, 0.08);
}

.news-compact-card h3 {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--primary-green);
    font-weight: 900;
    margin-bottom: 10px;
}

.news-compact-card p {
    color: #5f6b66;
    line-height: 1.8;
    margin-bottom: 16px;
}

.news-compact-meta {
    color: #6c7a74;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.news-compact-card a {
    color: var(--primary-green);
    font-weight: 900;
    text-decoration: none;
}

.news-compact-card a:hover {
    color: var(--gold);
}

@media (max-width: 992px) {

    .hero-metrics,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .section-title-split,
    .hero-news-topbar,
    .briefing-head,
    .headlines-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-spotlight-card h2,
    .news-lead-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-news-panel,
    .hero-briefing-card,
    .news-lead-card,
    .headlines-panel,
    .news-compact-card {
        border-radius: 24px;
    }

    .hero-spotlight-card,
    .news-lead-card,
    .headlines-panel {
        padding: 20px;
    }
}

.auth-images-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-images-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.auth-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gate-grid-3 {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gate-grid-3 .auth-image-card {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    height: 160px;
}

@media (max-width: 768px) {
    .gate-grid-3 {
        flex-direction: column;
        align-items: center;
    }

    .gate-grid-3 .auth-image-card {
        width: 100%;
        max-width: 300px;
    }
}

.auth-image-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* Modern Farmers Hero */
.farmers-hero {
    min-height: 520px;
    background: #1a5e20 !important;
    /* Fallback */
    background: linear-gradient(135deg, #1a5e20 0%, #2e7d32 50%, #114115 100%) !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
    width: 100%;
    color: #ffffff;
}

.farmers-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 35px;
    padding: 45px;
    position: relative;
    z-index: 5;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.hero-stat-value {
    color: #d4af37 !important;
    font-size: 2.2rem;
    font-weight: 900;
}

.hero-stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
    color: #fff;
    min-width: 120px;
}

.hero-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.9;
}

.floating-eco {
    position: absolute !important;
    z-index: 1;
    opacity: 0.6;
    animation: floatAnim 10s ease-in-out infinite;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.1);
    }
}

@media (max-width: 768px) {
    .farmers-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-glass-card {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .hero-stats-grid {
        gap: 15px;
    }

    .hero-stat-value {
        font-size: 1.8rem;
    }
}



/* Farmers Hero V2 - Premium Design */
.farmers-hero-v2,
.engineers-hero-v2,
.investors-hero-v2,
.marketplace-hero-v2,
.academy-hero-v2,
.certificate-hero-v2,
.home-hero-v2 {
    position: relative;
    min-height: 700px;
    background: #0a2d10;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
}

.hero-v2-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    z-index: 1;
}

.farmers-hero-v2 .hero-v2-bg {
    background-image: url('../images/farmers_hero_v2.png');
}

.engineers-hero-v2 .hero-v2-bg {
    background-image: url('../images/engineers_hero_v2.png');
}

.investors-hero-v2 .hero-v2-bg {
    background-image: url('../images/investors_hero_v2.png');
}

.marketplace-hero-v2 .hero-v2-bg {
    background-image: url('../images/marketplace_hero_v2.png');
}

.academy-hero-v2 .hero-v2-bg {
    background-image: url('../images/academy_hero_v2.png');
}

.certificate-hero-v2 .hero-v2-bg {
    background-image: url('../images/certificate_hero_v2.png');
}

.home-hero-v2 .hero-v2-bg {
    background-image: url('../images/home_hero_v2.png');
}

.hero-v2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(10, 45, 16, 0.9) 0%, rgba(10, 45, 16, 0.4) 100%);
    z-index: 2;
}

.hero-v2-content {
    position: relative;
    z-index: 10;
}

.hero-v2-title {
    font-family: 'Cairo', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-v2-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.feature-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.feature-mini-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.feature-mini-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    border-color: var(--gold);
    color: #fff;
}

.feature-icon-v2 {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-blue {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.icon-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.icon-gold {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.feature-mini-card h4 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-mini-card p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .hero-v2-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .farmers-hero-v2 {
        text-align: center;
        padding: 60px 0;
    }

    .hero-v2-subtitle {
        margin-inline: auto;
    }

    .feature-grid-v2 {
        grid-template-columns: 1fr;
    }

    .hero-v2-overlay {
        background: rgba(10, 45, 16, 0.75);
    }
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: 1.6em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: 3.2em;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: 4.8em;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: 6.4em;
    /* 1.6 * 4 */
}