/* ================================
   PAGINA PRINCIPALĂ - CIH Cahul
   Fișier: public/assets/css/pages/home-index.css
================================ */

.home-page {
    background: #f5f7fa;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

.home-page *,
.home-page *:before,
.home-page *:after {
    box-sizing: border-box;
}

/* ================================
   HERO CLEAN / MODERN
================================ */

.cih-hero-clean {
    position: relative;
    overflow: hidden;
    height: var(--cih-hero-height, calc(100vh - 120px));
    min-height: 520px;
    background: #071d2b;
    color: #ffffff;
}

.cih-hero-clean-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #0b3f5c 0%, #0d5b7c 100%);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.cih-hero-clean-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            rgba(4, 16, 25, 0.90) 0%,
            rgba(5, 24, 37, 0.76) 47%,
            rgba(5, 24, 37, 0.42) 100%
        );
}

.cih-hero-clean-container {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
}

.cih-hero-clean-content {
    max-width: 760px;
}

.cih-hero-clean-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.cih-hero-clean-content h1 {
    margin: 0 0 20px;
    max-width: 760px;
    color: #ffffff !important;
    font-size: 60px;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.cih-hero-clean-content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 19px;
    line-height: 1.68;
}

.cih-hero-clean-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.cih-hero-clean-actions .btn {
    min-width: 190px;
    min-height: 52px;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: all 0.24s ease-in-out;
}

.cih-btn-primary {
    background: #ffffff;
    border: 0;
    color: #0d5b7c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.cih-btn-primary:hover,
.cih-btn-primary:focus {
    background: #f3f7fa;
    color: #0b3f5c;
    transform: translateY(-2px);
}

.cih-btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.cih-btn-secondary:hover,
.cih-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}


/* ================================
   SECȚIUNI GENERALE
================================ */

.home-section {
    padding: 70px 0;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading span {
    display: inline-block;
    color: #0f6f8f;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    margin-bottom: 9px;
}

.section-heading h2 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    color: #1f2933;
}

.section-heading p {
    margin: 0;
    color: #627282;
    font-size: 16px;
    line-height: 1.75;
}

.section-heading-light span,
.section-heading-light h2 {
    color: #ffffff;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.86);
}

/* ================================
   ACTIVITĂȚI RECENTE - 2 PE RÂND / IMAGINI CLARE
================================ */

.home-news-section {
    background: #f5f7fa;
}

.home-news-wide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.home-news-wide-card {
    position: relative;
    min-height: 265px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8eef3;
    box-shadow: 0 16px 40px rgba(15, 61, 94, 0.10);
    transition: all 0.28s ease-in-out;
}

.home-news-wide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 61, 94, 0.17);
    border-color: #dbe8ef;
}

.home-news-wide-link {
    display: grid;
    grid-template-columns: 47% 53%;
    min-height: 265px;
    color: inherit;
    text-decoration: none;
}

.home-news-wide-link:hover,
.home-news-wide-link:focus {
    color: inherit;
    text-decoration: none;
}

.home-news-wide-image {
    position: relative;
    min-height: 265px;
    overflow: hidden;
    background: #dfe8ee;
}

.home-news-wide-image:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 29, 43, 0.02) 0%,
        rgba(5, 29, 43, 0.12) 100%
    );
}

.home-news-wide-image img {
    width: 100%;
    height: 100%;
    min-height: 265px;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease-in-out;
}

.home-news-wide-card:hover .home-news-wide-image img {
    transform: scale(1.05);
}

.home-news-wide-badge {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0d5b7c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(5, 29, 43, 0.10);
}

.home-news-wide-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(34, 193, 195, 0.08), transparent 32%),
        #ffffff;
}

.home-news-wide-meta {
    margin-bottom: 14px;
}

.home-news-wide-meta span {
    display: inline-block;
    color: #0f6f8f;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.home-news-wide-content h3 {
    margin: 0;
    color: #102a3a;
    font-size: 23px;
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -0.2px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-wide-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e8eef3;
    color: #0d5b7c;
    font-size: 14px;
    font-weight: 900;
}

.home-news-wide-action i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eaf4f8;
    color: #0d5b7c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease-in-out;
}

.home-news-wide-card:hover .home-news-wide-action i {
    background: #0d5b7c;
    color: #ffffff;
    transform: translateX(5px);
}

/* ================================
   STATISTICI
================================ */

.home-stats-section {
    position: relative;
    background: linear-gradient(135deg, #0b3f5c 0%, #0d5b7c 55%, #11779e 100%);
    color: #ffffff;
}

.home-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.home-stat-card {
    width: calc(50% - 14px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 16px 38px rgba(5, 29, 43, 0.14);
}

.home-stat-icon {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 18px;
    background: #ffffff;
    color: #0d5b7c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.home-stat-content strong {
    display: block;
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.home-stat-content span {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    font-weight: 700;
}

/* ================================
   GALERIE FOTO - SLIDER MODERN
================================ */

.home-gallery-section {
    background: #f5f7fa;
}

.gallery-modern-slider {
    position: relative;
    height: 620px;
    border-radius: 14px;
    overflow: hidden;
    background: #0b3f5c;
    box-shadow: 0 22px 54px rgba(15, 61, 94, 0.18);
}

.gallery-modern-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-modern-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06) translateX(28px);
    transition: opacity 0.75s ease, visibility 0.75s ease, transform 0.95s ease;
}

.gallery-modern-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 2;
}

.gallery-modern-slide.is-leaving {
    z-index: 1;
}

.gallery-modern-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modern-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 43, 0.76) 0%,
            rgba(5, 29, 43, 0.38) 42%,
            rgba(5, 29, 43, 0.06) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 29, 43, 0.04) 0%,
            rgba(5, 29, 43, 0.75) 100%
        );
}

.gallery-modern-caption {
    position: absolute;
    left: 44px;
    bottom: 46px;
    z-index: 4;
    max-width: 540px;
    color: #ffffff;
}

.gallery-modern-caption span {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.gallery-modern-caption h3 {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.22;
    font-weight: 800;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.gallery-modern-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 34px;
    line-height: 52px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
}

.gallery-modern-btn:hover,
.gallery-modern-btn:focus {
    background: #ffffff;
    color: #0d5b7c;
    outline: none;
}

.gallery-modern-prev {
    left: 26px;
}

.gallery-modern-next {
    right: 26px;
}

.gallery-modern-dots {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 9px;
}

.gallery-modern-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: all 0.22s ease-in-out;
}

.gallery-modern-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.gallery-modern-dot:focus {
    outline: none;
}

/* ================================
   VIDEO
================================ */

.home-video-section {
    background: #ffffff;
}

.home-video-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #0b3f5c;
    box-shadow: 0 16px 42px rgba(15, 61, 94, 0.14);
}

.home-video-card iframe {
    display: block;
    width: 100%;
    height: 550px;
    border: 0;
}

/* ================================
   PARTENERI
================================ */

.home-partners-section {
    background: #f5f7fa;
}

.home-partners-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 70px;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 32px rgba(15, 61, 94, 0.08);
}

.home-partner-card {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.home-partner-card img {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.2s ease-in-out;
}

.home-partner-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

.home-partners-wrapper .owl-item {
    display: flex;
    justify-content: center;
}

.home-partners-wrapper .owl-navigation {
    margin-top: 0;
}

.home-partners-wrapper .customNavigation {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.home-partners-wrapper .owl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f6f8f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.home-partners-wrapper .owl-btn:hover,
.home-partners-wrapper .owl-btn:focus {
    background: #0b3f5c;
    color: #ffffff;
    text-decoration: none;
}

.home-partners-wrapper .prev-v2 {
    left: 22px;
}

.home-partners-wrapper .next-v2 {
    right: 22px;
}

/* ================================
   EMPTY STATE
================================ */

.home-empty-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 46px 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 32px rgba(15, 61, 94, 0.08);
}

.home-empty-box i {
    font-size: 44px;
    color: #0f6f8f;
    margin-bottom: 18px;
}

.home-empty-box h3 {
    margin: 0 0 10px;
    font-weight: 800;
    color: #1f2933;
}

.home-empty-box p {
    margin: 0;
    color: #627282;
}

/* ================================
   BUTOANE ȘI LINKURI
================================ */

.home-page .btn {
    transition: all 0.2s ease-in-out;
}

.home-page .btn:focus,
.home-page .btn:active {
    outline: none !important;
    box-shadow: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1199px) {
    .cih-hero-clean-content h1 {
        font-size: 54px;
    }

    .cih-hero-clean-content p {
        font-size: 18px;
    }

    .home-news-wide-grid {
        gap: 22px;
    }

    .home-news-wide-link,
    .home-news-wide-image,
    .home-news-wide-image img {
        min-height: 245px;
    }

    .home-news-wide-content {
        padding: 24px;
    }

    .home-news-wide-content h3 {
        font-size: 20px;
    }

    .gallery-modern-slider {
        height: 560px;
    }

    .home-video-card iframe {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .cih-hero-clean {
        min-height: 720px;
    }

    .cih-hero-clean-container {
        padding-top: 56px;
        padding-bottom: 170px;
    }

    .cih-hero-clean-row {
        display: block;
    }

    .cih-hero-clean-content h1 {
        font-size: 44px;
    }

    .cih-hero-clean-content p {
        font-size: 17px;
    }

    .cih-hero-clean-panel {
        margin-top: 32px;
        margin-left: 0;
        max-width: 100%;
    }

    .cih-hero-clean-features {
        grid-template-columns: 1fr;
    }

    .home-news-wide-grid {
        grid-template-columns: 1fr;
    }

    .home-news-wide-link {
        grid-template-columns: 42% 58%;
    }

    .home-news-wide-link,
    .home-news-wide-image,
    .home-news-wide-image img {
        min-height: 250px;
    }

    .home-stat-card {
        width: 100%;
    }

    .gallery-modern-slider {
        height: 500px;
        border-radius: 12px;
    }

    .gallery-modern-caption {
        left: 34px;
        bottom: 38px;
        max-width: 500px;
    }

    .gallery-modern-caption h3 {
        font-size: 28px;
    }

    .home-video-card iframe {
        height: 420px;
    }

    .home-partners-wrapper {
        padding: 30px 60px;
    }
}

@media (max-width: 767px) {
    .cih-hero-clean {
        min-height: 760px;
    }

    .cih-hero-clean-container {
        padding-top: 44px;
        padding-bottom: 245px;
    }

    .cih-hero-clean-content h1 {
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.6px;
    }

    .cih-hero-clean-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .cih-hero-clean-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cih-hero-clean-actions .btn {
        width: 100%;
        min-width: 100%;
    }

    .cih-hero-clean-panel {
        padding: 26px;
    }

    .cih-clean-panel-date {
        font-size: 22px;
    }

    .cih-hero-clean-features {
        bottom: 18px;
        gap: 10px;
    }

    .cih-clean-feature-card {
        padding: 14px;
    }

    .cih-clean-feature-card i {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 19px;
    }

    .home-section {
        padding: 48px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 15px;
    }

    .home-news-wide-card {
        border-radius: 12px;
    }

    .home-news-wide-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-news-wide-image,
    .home-news-wide-image img {
        min-height: 245px;
        height: 245px;
    }

    .home-news-wide-content {
        padding: 24px;
    }

    .home-news-wide-content h3 {
        font-size: 20px;
    }

    .home-news-wide-action {
        margin-top: 20px;
        padding-top: 16px;
    }

    .home-stat-card {
        padding: 28px;
        display: block;
        text-align: center;
    }

    .home-stat-icon {
        margin: 0 auto 18px;
    }

    .home-stat-content strong {
        font-size: 42px;
    }

    .gallery-modern-slider {
        height: 410px;
        border-radius: 18px;
    }

    .gallery-modern-caption {
        left: 24px;
        right: 24px;
        bottom: 26px;
    }

    .gallery-modern-caption h3 {
        font-size: 22px;
    }

    .gallery-modern-btn {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 28px;
    }

    .gallery-modern-prev {
        left: 14px;
    }

    .gallery-modern-next {
        right: 14px;
    }

    .gallery-modern-dots {
        right: 22px;
        bottom: 18px;
    }

    .home-video-card iframe {
        height: 320px;
    }

    .home-partners-wrapper {
        padding: 24px 48px;
    }

    .home-partners-wrapper .owl-btn {
        width: 38px;
        height: 38px;
    }

    .home-partners-wrapper .prev-v2 {
        left: 10px;
    }

    .home-partners-wrapper .next-v2 {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cih-hero-clean {
        min-height: 790px;
    }

    .cih-hero-clean-content h1 {
        font-size: 30px;
    }

    .cih-hero-clean-label {
        font-size: 11px;
        padding: 8px 13px;
    }

    .cih-clean-feature-card strong {
        font-size: 14px;
    }

    .cih-clean-feature-card span {
        font-size: 12px;
    }

    .home-news-wide-image,
    .home-news-wide-image img {
        height: 220px;
        min-height: 220px;
    }

    .home-news-wide-content {
        padding: 22px;
    }

    .home-news-wide-content h3 {
        font-size: 18px;
    }

    .home-news-wide-action {
        font-size: 13px;
    }

    .gallery-modern-slider {
        height: 360px;
    }

    .gallery-modern-caption h3 {
        font-size: 20px;
    }

    .gallery-modern-caption span {
        font-size: 11px;
    }

    .gallery-modern-dots {
        display: none;
    }

    .home-video-card iframe {
        height: 250px;
    }

    .home-partners-wrapper {
        padding: 22px 42px;
    }
}


/* Ajustări finale pentru hero simplificat */
@media (max-width: 991px) {
    .cih-hero-clean {
        min-height: 520px;
    }

    .cih-hero-clean-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .cih-hero-clean-content h1 {
        font-size: 44px;
    }

    .cih-hero-clean-content p {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .cih-hero-clean {
        min-height: 480px;
    }

    .cih-hero-clean-content h1 {
        font-size: 34px;
        line-height: 1.14;
        letter-spacing: -0.5px;
    }

    .cih-hero-clean-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .cih-hero-clean-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cih-hero-clean-actions .btn {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .cih-hero-clean {
        min-height: 460px;
    }

    .cih-hero-clean-content h1 {
        font-size: 30px;
    }

    .cih-hero-clean-label {
        font-size: 11px;
        padding: 8px 13px;
    }
}


/* Ajustări finale pentru cardurile Activități recente */
.home-news-wide-card {
    border-radius: 14px;
}

.home-news-wide-image {
    border-radius: 0;
}

.home-news-wide-badge {
    border-radius: 6px;
}

.home-news-wide-action i {
    border-radius: 10px;
}
