/* ============================================
   KARUSEL (SLIDER) - Desktop i opšta pravila
   ============================================ */
#acdcMainCarousel.carousel {
    position: relative;
    padding-bottom: 40px;
    overflow: hidden;
}

#acdcMainCarousel .carousel-inner {
    overflow: hidden;
}

#acdcMainCarousel .carousel-item {
    height: 100%;
}

/* Glavni kontejner unutar slajda na desktopu */
#acdcMainCarousel .carousel-item > .container {
    display: flex;
    align-items: center;
    min-height: 440px; 
}

/* Sređivanje visine slike na desktopu */
#acdcMainCarousel .slider-image-wrapper img {
    height: 320px !important;
    object-fit: cover !important;
    width: 100%;
}

#acdcMainCarousel .slider-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Custom indikatori (kružići) */
#acdcMainCarousel .acdc-custom-indicators {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

#acdcMainCarousel .acdc-custom-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

#acdcMainCarousel .acdc-custom-indicators li.active {
    opacity: 1;
    background-color: var(--acdc-red, #800000);
    transform: scale(1.2);
}


/* ============================================
   PRILAGOĐAVANJE ZA MOBILNE UREĐAJE (ispod 768px)
   =========================================== */
@media (max-width: 767.98px) {
    #acdcMainCarousel.carousel {
        padding-bottom: 45px; /* Ostavlja malo više prostora dole da kružići ne pobegnu preblizu ivici */
    }

    /* Smanjujemo visinu slajda da ne guši ekran */
    #acdcMainCarousel .carousel-item > .container {
        min-height: auto !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    /* Smanjujemo visinu slike na mobilnom da ne bude prevelika */
    #acdcMainCarousel .slider-image-wrapper img {
        height: 200px !important; 
    }

    /* Smanjujemo naslov vesti da lepo stane na telefon */
    #acdcMainCarousel h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Malo sabijamo margine na mobilnom */
    #acdcMainCarousel .slider-content {
        margin-top: 10px;
    }
	
#acdcMainCarousel .slider-content > div:last-child {
        display: flex;
        justify-content: center;
    }

    /* CENTRIRANJE KRUŽIĆA NA MOBILNOM */
    #acdcMainCarousel .acdc-custom-indicators {
        left: 50% !important;
        transform: translateX(-50%);
        justify-content: center;
    }
}

   /* ============================================
   ABOUT SEKCIJA 
   ============================================ */   
   
.about-index-card{
	background-color: var(--acdc-bg-card);
    border: 1px solid #f0e6e6 !important;
    border-radius: 8px;
}
   
   /* ============================================
   AREAS OF WORK - SEKCIJA STILOVI
   ============================================ */

.vladavina-prava-card{
	background-color: var(--acdc-red);
}
.aktivno-gradjanstvo-card{
	background-color: #f0bc8e;
}
.saradnja-zajednica-card{
	background-color: var(--acdc-red-main)
}
.zivotna-sredina-card{
	background-color: var(--acdc-green);
}

.acdc-area-card {
    
    border: 1px solid var(--acdc-border, #f0e6e0);
    border-radius: 8px;
    padding: 25px 5px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.acdc-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.08);
}

.acdc-area-icon-wrapper {
    width: 65px;
    height: 65px;
    background-color: #ffffff;
    border: 2px solid var(--acdc-border, #f0e6e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.acdc-area-icon-wrapper img.area-icon-img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.acdc-area-title {
    font-size: 1.1rem;
    font-weight: 700;
    color:#ffffff;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acdc-area-desc {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.acdc-area-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.acdc-area-link:hover {
    color: #c5c4c4;
}

.acdc-area-link i {
    transition: transform 0.2s ease;
}

.acdc-area-card:hover .acdc-area-link i {
    transform: translateX(4px);
}
.acdc-banner-btn:hover {
    transform: translateY(-2px);
    background-color: #660000 !important; /* Tamnija nijansa crvene */
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3) !important;
    color: #ffffff !important;
}
.acdc-banner-btn {
    transition: all 0.3s ease;
}

.acdc-banner-btn:hover {
    transform: translateY(-2px);
    background-color: #660000 !important;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

/* Animacija strelice */
.btn-arrow-anim {
    transition: transform 0.3s ease;
}

.acdc-banner-btn:hover .btn-arrow-anim {
    transform: translateX(5px);
}
/* ============================================
   HOME - SEKCIJA VESTI (STILOVI)
   ============================================ */

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    border-radius: 8px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.news-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.news-card-img {
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-tag-badges-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.news-tag-badge {
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.news-tag-badge:hover {
    transform: scale(1.1);
}

.news-tag-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.news-card-title a:hover {
    color: var(--acdc-red, #800000) !important;
}

.news-read-more {
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.news-read-more:hover {
    color: #550000 !important;
}

.news-read-more i {
    transition: transform 0.2s ease;
}

.news-card:hover .news-read-more i {
    transform: translateX(4px);
}
.btn-outline-danger:hover {
    background-color: var(--acdc-red, #800000) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}
.btn-outline-danger {
    transition: all 0.3s ease;
}

.btn-outline-danger i {
    transition: transform 0.2s ease;
}

.btn-outline-danger:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   EXTERNAL SOURCE BADGE - gornji desni ugao slike
   ========================================================================== */

.external-source-badge-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.external-source-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--acdc-red, #800000);
    color: #ffffff;
    border-radius: 4px;
    font-size: 75%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
/* ============================================
   NEWS SCROLL CAROUSEL
   ============================================ */

.news-scroll-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px 20px 5px;
    margin: 0 -5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-scroll-carousel::-webkit-scrollbar {
    display: none;
}

.news-scroll-item {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    display: flex;
}

.news-scroll-item .news-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-scroll-item .news-card .card-body {
    flex-grow: 1;
}

/* ============================================
   TAČKICE
   ============================================ */
.news-scroll-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.news-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.news-dot:hover {
    background-color: #999;
    transform: scale(1.15);
}

.news-dot.active {
    background-color: var(--acdc-red, #800000);
    width: 28px;
    border-radius: 6px;
}

/* ============================================
   TABLET: 2 kartice
   ============================================ */
@media (max-width: 992px) {
    .news-scroll-item {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ============================================
   MOBILNI: 1 kartica + astro fazon
   ============================================ */
@media (max-width: 768px) {
    .news-scroll-carousel {
        gap: 14px;
        padding: 10px 20px 20px 20px;
        margin: 0 -20px;
    }

    .news-scroll-item {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }

    .news-scroll-dots {
        gap: 8px;
        margin-top: 12px;
    }

    .news-dot {
        width: 45px;
        height: 5px;
    }

    .news-dot.active {
        width: 45px;
    }
}

   /* ============================================
   HOME - SEKCIJA BROJKE
   ============================================ */
   
.acdc-brojke-card {
    border: none; 
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 0; 
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-md-3:last-child .acdc-brojke-card {
    border-right: none;
}


@media (max-width: 767.98px) {
    .acdc-brojke-card .stat-number {
        font-size: 1.8rem !important; 
        margin-bottom: 0.5rem !important;
    }

    .acdc-brojke-card .acdc-area-title {
        font-size: 0.85rem !important; 
    }


    .col-6:nth-child(even) .acdc-brojke-card {
        border-right: none;
    }


    .col-6:nth-last-child(-n+2) .acdc-brojke-card {
        border-bottom: none;
    }
}
   
   /* ============================================
   HOME - SEKCIJA DONATORI I PARTNERI
   ============================================ */

.slicker-slider .donor-card-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.slicker-slider .donor-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(128, 0, 0, 0.2);
}

.slicker-slider img.max-height-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slicker-slider .donor-card-item:hover img.max-height-logo {
    filter: grayscale(0%);
    opacity: 1;
}
/* ============================================
   SLICK SLIDER - CUSTOM ARROWS
   ============================================ */

.slicker-slider {
    position: relative;
    padding: 0 50px;
}

/* Zajednički stil za obe strelice */
.slick-prev-custom,
.slick-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: var(--acdc-red, #800000);
    
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    font-family: Arial, sans-serif;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px 0; /* malo pomeri strelicu gore */
    
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slick-prev-custom {
    left: 0;
}

.slick-next-custom {
    right: 0;
}

.slick-prev-custom:hover,
.slick-next-custom:hover {
    background-color: var(--acdc-red, #800000);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 15px rgba(128, 0, 0, 0.25);
    border-color: var(--acdc-red, #800000);
}

/* Onemogućeno stanje */
.slick-prev-custom:disabled,
.slick-next-custom:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .slick-prev-custom,
    .slick-next-custom {
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
    }
    
    .slicker-slider {
        padding: 0 40px;
    }
}
   /* ============================================
   HOME - SEKCIJA BILTEN
   ============================================ */

/* Kontejner za sliku biltena */
.newsletter-image-container {
    position: relative;
    display: inline-block;
    max-width: 380px;
    margin-right: -30px; /* Dozvoljava slici da se blago pomeri ka desnoj ivici ekrana */
}

/* Efekat rotacije, senke i prelaza za sliku biltena */
.newsletter-mockup-img {
    transform: rotate(4deg); /* Blago zakrivljenje */
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.15); /* Duboka meka senka */
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efekat kad pređeš mišem preko slike (opciono, daje živost) */
.newsletter-mockup-img:hover {
    transform: rotate(1deg) scale(1.02);
    box-shadow: -15px 20px 35px rgba(0, 0, 0, 0.2);
}

/* Prilagođavanje za mobilne uređaje */
@media (max-width: 991.98px) {
    .newsletter-image-container {
        margin-right: 0;
        max-width: 280px;
        margin-top: 20px;
    }
    
    .newsletter-mockup-img {
        transform: rotate(0deg); /* Na mobilnom vraćamo sliku ravno da lepše stane */
    }
}