/* LAYOUT */
.main-layout-wrapper {
    display: flex;
    gap: 15px;
    max-width: 1200px;
    margin: 20px auto;
}

/* CAROUSEL */
.carousel-container {
    flex: 2;
    height: 400px; /* Adjust as needed */
    position: relative;
    background: #333333;
    overflow: hidden;
  
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
}

.slide.active { display: block; }

.image-holder {
    width: 100%;
    height: 100%;
    background: #555;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* CAROUSEL BUTTONS */
.c-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(236, 236, 236, 0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 5;
}

.prev { left: 0; }
.next { right: 0; }

.news-slider-container {
    width: 380px; 
    height: 398px;
    background: transparent;

    display: flex;
    flex-direction: column;
}

.news-header {
    background: transparent;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SURGICAL BUTTON FIX */
.news-controls {
    display: flex !important;
    gap: 5px !important;
    position: relative !important;
    z-index: 1000 !important; /* High enough to click, low enough for Nav */
}

.news-controls button {
    background: transparent!important; /* Boxed Navy */
    border: 1px solid #ddd !important;
    color: #ffffff !important;
    padding: 5px 10px !important;
    cursor: pointer !important;
    pointer-events: auto !important; /* FORCES CLICK RECOGNITION */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.2s !important;
    border-radius: 2px !important;
}

.news-controls button:hover {
    background: #ffffff !important;
    color: #1e3e63 !important;
}

/* Prevents the icon from "stealing" the click from the button */
.news-controls button i {
    pointer-events: none !important;
    color: inherit !important;
}
.news-viewport {
    height: 330px; /* Exactly 3 items (110px * 3) */
    overflow: hidden;
    position: relative;
    display: flex; /* Keeps your layout intact */
    flex-direction: column;
}

.news-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Remove position: absolute and top */
    will-change: transform;
}

.news-item {
    padding: 15px;
    height: 110px; 
    display: flex; 
    gap: 15px;
    box-sizing: border-box;
    flex-shrink: 0; /* Ensures items don't squash */
}

/* THE IMAGE CONTAINER */
.news-img-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image proportions correct */
    display: block;
}

.news-text h4 {
    margin: 0 0 5px 0;
    color: #d40000;
    font-size: 12px;
}

.news-text p {
    margin: 2px;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.3;
}
.news-title {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
}
/* Carousel ጽሁፍ በምስሉ ላይ እንዲሆን */
.carousel-container {
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
 
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
    margin: 0;
    padding: 0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes any small bottom gap caused by inline images */
}

.caption {
    position: absolute;
    bottom: 0;           /* Locks it to the very bottom of the slide */
    left: 0;             /* Locks it to the very left of the slide */
    width: 100%;         /* Stretches it to the very right of the slide */
  background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.705) 0%, 
                rgba(75, 75, 75, 0.7) 70%, 
                rgba(30, 62, 99, 0) 100%);
    color: #ffffff;
    padding: 20px 30px;
    font-size: 35px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    box-sizing: border-box; /* Ensures padding stays inside the 100% width */
    z-index: 10;
    text-align: left;
}

/* News Slider ቁመት */
.news-viewport {
    height: 350px; /* እንደፈለጉ ከፍታውን ማስተካከል ይችላሉ */
    overflow: hidden;
}

/*arrow colors*/
#news-up i, 
#news-down i {
    color: #ffffff; /* Sets icon color to white */
    font-size: 16px; /* Adjust size if needed */
}

/* Optional: Style the button background to match your theme */
.news-controls button {
    background: transparent; /* Navy background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.news-controls button:hover {
  border: 1px solid rgb(255, 255, 255); /* Slightly lighter navy on hover */
}