/**
 * GLOBAL COLOR REFACTOR: BLUE/CYAN -> BRIGHT RED (#d62727)
 * Targets: #home-news, #home-galeri, and global variables/utilities.
 */

:root {
    /* 1. Global Variable Overrides */
    --primary-color: #d62727;
    --main-color-1: #d62727;
    --brand-700: #d62727;
    --brand-900: #d62727;

    /* 2. WordPress Presets Overrides */
    --wp--preset--color--pale-cyan-blue: #d62727;
    --wp--preset--color--vivid-cyan-blue: #d62727;
    --wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg, rgb(214, 39, 39), rgb(153, 27, 27));
    --wp--preset--gradient--midnight: linear-gradient(135deg, #000000, #d62727);
    --wp--preset--gradient--pale-ocean: linear-gradient(135deg, #ffffff, #d62727);

    /* 3. Admin / UI Overrides */
    --wp-admin-theme-color: #d62727;
    --wp-admin-theme-color-darker-10: #b91f1f;
    --wp-admin-theme-color-darker-20: #9c1a1a;
    --tw-ring-color: #d62727;
    --color-blue-50: #fee2e2;
    /* Red-50 equivalent */
}

/* =========================================
   GENERIC UTILITY OVERRIDES (Global)
   ========================================= */
.main-color-1-bg {
    background-color: #d62727 !important;
}

.main-color-1 {
    color: #d62727 !important;
}

/* Force neutral overlays or red overlays where blue was used */
.thumbnail-hoverlay {
    background-color: rgba(214, 39, 39, 0.9) !important;
}

/* Links Global Hover Override */
a:hover,
a:focus,
a:active {
    color: #d62727;
}

/* =========================================
   SECTION: #home-news
   ========================================= */
#home-news .main-color-1-bg {
    background-color: #d62727 !important;
}

/* Project Item Interactivity */
#home-news .project-item:hover .project-item-title,
#home-news .project-item:hover .project-item-excerpt {
    background-color: #d62727;
}

#home-news .thumbnail-hoverlay {
    background-color: rgba(214, 39, 39, 0.9) !important;
}

#home-news .filter-cat li.active a,
#home-news .filter-cat .flat-button:hover,
#home-news .filter-cat .flat-button.active {
    background-color: #d62727;
    border-color: #d62727;
    color: #fff;
}

#home-news a:hover,
#home-news a:focus,
#home-news .item-title a:hover,
#home-news .cat-link:hover {
    color: #d62727;
}

#home-news .main-color-1 {
    color: #d62727 !important;
}


/* =========================================
   SECTION: #home-galeri
   ========================================= */
/* Header Card */
#home-galeri .grid-item.color-full {
    background-color: #d62727 !important;
}

/* Buttons */
#home-galeri .flat-button {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

#home-galeri .flat-button:hover,
#home-galeri .flat-button:focus,
#home-galeri .flat-button.active {
    background-color: #fff !important;
    color: #d62727 !important;
    border-color: #fff !important;
}

/* Specific styling for the header card button */
#home-galeri .grid-item.color-full .flat-button:hover {
    background-color: #fff;
    color: #d62727;
    border-color: #fff;
}

/* Links & Titles */
#home-galeri .event-overlay a:hover h4,
#home-galeri a.overlay-top:hover h4 {
    color: #d62727 !important;
}

#home-galeri a:hover {
    color: #d62727 !important;
}

/* Date Blocks */
#home-galeri .date-block.main-color-1-bg,
#home-galeri .date-block.main-color-2-bg {
    background-color: #d62727 !important;
}

/* Pseudo-elements */
#home-galeri .overlay-top:hover:after {
    color: #d62727;
}

/* Pagination Dots */
#home-galeri .owl-dots .owl-dot.active span,
#home-galeri .owl-dots .owl-dot:hover span,
#home-galeri .gallery-dot.active {
    background-color: #d62727 !important;
    border-color: #d62727 !important;
}

/* Thumbnail Normalization */
#home-galeri .event-thumbnail {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

#home-galeri .event-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    transition: transform 0.4s ease-in-out;
}

#home-galeri .event-item:hover .event-thumbnail img {
    transform: scale(1.1);
}

/* JS Pagination Styles */
#home-galeri .gallery-slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

#home-galeri .gallery-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

#home-galeri .gallery-slide {
    width: 100%;
    flex-shrink: 0;
    display: block;
}

#home-galeri .gallery-slide::after {
    content: "";
    display: table;
    clear: both;
}

#home-galeri .gallery-controls {
    text-align: center;
    margin-top: 30px;
    clear: both;
}

#home-galeri .gallery-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #eaeaea;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Navigation Arrow Buttons */
#home-galeri .gallery-nav-btn {
    display: inline-block;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
    font-size: 20px;
    transition: all 0.3s;
    user-select: none;
}

#home-galeri .gallery-nav-btn:hover {
    background-color: #d62727;
}

#home-galeri .gallery-nav-btn.prev-btn {
    left: 15px;
}

#home-galeri .gallery-nav-btn.next-btn {
    right: 15px;
}