/* File: responsive-slider.css — AMRIC (mobile-first) */
/* NOTE: :root block intentionally omitted here — the canonical AMRIC palette
   is declared once in home-styles.css to avoid duplicate/conflicting :root
   definitions. This file relies on those same var() tokens. */

/* Hero Slider Responsive Styles - AMRIC Agribusiness Theme (mobile-first base) */
.hero-slider-section {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(46, 125, 50, 0.15);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 92%;
    max-width: 800px;
    padding: 15px;
    background-color: rgba(27, 94, 32, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    z-index: 3;
    box-sizing: border-box;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.slide-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    width: 100%;
    display: block;
    word-wrap: break-word;
    text-align: center;
}

.slide-title span {
    color: var(--accent-color);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 8px;
    border-radius: 5px;
}

.slide-description {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    width: 100%;
    display: block;
    word-wrap: break-word;
    text-align: center;
}

.slide-btn {
    display: inline-block;
    padding: 7px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin-top: 5px;
    word-wrap: break-word;
    word-break: keep-all;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    font-size: 0.8rem;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: var(--primary-dark);
    color: #fff;
}

/* Slider Navigation - AMRIC Styling */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 5;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.prev-slide, .next-slide {
    width: 35px;
    height: 35px;
    background-color: rgba(46, 125, 50, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.2);
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.prev-slide i, .next-slide i {
    font-size: 1rem;
}

/* Slider Dots - AMRIC Styling */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.5);
}

.slider-dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Ensure slide height is set properly */
.hero-slider::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 75%; /* matches mobile aspect ratio above */
    pointer-events: none;
}

.hero-slider-section,
.hero-slider,
.slide,
.slide-inner {
    min-height: 260px; /* Minimum height */
}

/*--------------------------------------------------------------
# Responsive Adjustments — scale up from mobile base
--------------------------------------------------------------*/
@media (min-width: 576px) {
    .hero-slider-section {
        margin-bottom: 35px;
    }

    .hero-slider {
        border-radius: 9px;
        box-shadow: 0 4px 20px rgba(46, 125, 50, 0.13);
    }

    .slide-content {
        width: 90%;
        padding: 20px;
        background-color: rgba(27, 94, 32, 0.8);
    }

    .slide-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .slide-title span {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .slide-description {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .slide-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .slider-nav {
        padding: 0 12px;
    }

    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (min-width: 768px) {
    .hero-slider::before {
        padding-top: 66.67%; /* 3:2 — better mid-size ratio */
    }

    .hero-slider-section,
    .hero-slider,
    .slide,
    .slide-inner {
        min-height: 300px;
    }

    .slide-inner {
        padding-bottom: 66.67%;
        height: 0;
        width: 100%;
        background-size: cover;
        background-position: center;
    }

    .slide {
        height: auto;
        padding-bottom: 66.67%;
    }

    .hero-slider {
        border-radius: 10px;
        box-shadow: 0 5px 25px rgba(46, 125, 50, 0.15);
    }

    .slide-content {
        width: 80%;
        max-width: 800px;
        padding: 30px;
        background-color: rgba(27, 94, 32, 0.7);
        border-radius: 15px;
    }

    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .slide-title span {
        padding: 0 10px;
        font-size: inherit;
    }

    .slide-description {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .slide-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 10px;
    }

    .slider-nav {
        padding: 0 20px;
    }

    .prev-slide, .next-slide {
        width: 50px;
        height: 50px;
    }

    .prev-slide i, .next-slide i {
        font-size: 1.5rem;
    }

    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }

    .slider-dot {
        width: 12px;
        height: 12px;
    }
}

/* Enhanced AMRIC Agribusiness Theme Elements */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(27, 94, 32, 0.3) 0%, 
        rgba(46, 125, 50, 0.2) 50%, 
        rgba(27, 94, 32, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Dark Mode Enhancements for AMRIC */
[data-theme="dark"] .slide-content {
    background-color: rgba(27, 94, 32, 0.8);
    border-color: rgba(46, 125, 50, 0.4);
}

[data-theme="dark"] .slide-title span {
    background: rgba(27, 94, 32, 0.9);
    color: var(--primary-light);
}

[data-theme="dark"] .prev-slide,
[data-theme="dark"] .next-slide {
    background-color: rgba(46, 125, 50, 0.6);
    border-color: var(--primary-light);
}

[data-theme="dark"] .slider-dot {
    border-color: var(--primary-light);
}

[data-theme="dark"] .slider-dot.active {
    background-color: var(--primary-light);
}

/* Agricultural Pattern Background (Optional Enhancement) */
.hero-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/patterns/cocoa-subtle-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
}