/* ================================================
   LATEST NEWS — Standalone CSS
   Overrides Bootstrap card defaults with specificity
   ================================================ */

/* ---- BUTTON ---- */
.latest-news-btn {
    position: fixed;
    right: 0;
    top: 30%;
    transform: rotate(-90deg) translateY(-50%);
    transform-origin: right;
    background: #ffc107;
    color: #000000;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    z-index: 1050;
    font-weight: 600;
    user-select: none;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ---- PANEL ---- */
.latest-news-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 340px;
    height: 100vh;
    background: #f1f5f9;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 1100;
    overflow-y: auto;
}

.latest-news-panel.open {
    right: 0;
}

/* ---- PANEL HEADER ---- */
.latest-news-panel .news-header {
    background: #08502a !important;
    color: #fff !important;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.latest-news-panel .news-header h5 {
    color: #fff !important;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

/* ---- CARD: override Bootstrap .card defaults ---- */
.latest-news-panel .carousel-inner .news-card {
    background: #ffffff !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.latest-news-panel .carousel-inner .news-card:last-child {
    margin-bottom: 0 !important;
}

.latest-news-panel .carousel-inner .news-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #08502a !important;
}

/* ---- CARD BODY: remove Bootstrap default padding ---- */
.latest-news-panel .carousel-inner .news-card .card-body {
    padding: 0 !important;
    background: transparent !important;
}

/* ---- CARD TITLE ---- */
.latest-news-panel .carousel-inner .news-card .card-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #08502a !important;
    margin-bottom: 6px !important;
}

/* ---- CARD TITLE inside anchor (News 1 style) ---- */
.latest-news-panel .carousel-inner .news-card a .card-title,
.latest-news-panel .carousel-inner .news-card a h6.card-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #08502a !important;
    margin-bottom: 0 !important;
    text-decoration: none !important;
}

.latest-news-panel .carousel-inner .news-card a:hover .card-title,
.latest-news-panel .carousel-inner .news-card a:hover h6.card-title {
    color: #073d1f !important;
    text-decoration: underline !important;
}

/* ---- CARD TEXT ---- */
.latest-news-panel .carousel-inner .news-card .card-text {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ---- LINKS inside card-text ---- */
.latest-news-panel .carousel-inner .news-card .card-text a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    display: block !important;
    margin-top: 4px !important;
    transition: color 0.3s !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.latest-news-panel .carousel-inner .news-card .card-text a:hover {
    color: #08502a !important;
    text-decoration: underline !important;
}

/* ---- CARD IMAGE (optional) ---- */
.latest-news-panel .carousel-inner .news-card img {
    height: 200px !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .latest-news-panel {
        width: 100%;
        right: -100%;
    }
}

/* ---- SUBSCRIBE FLOATING BUTTON ---- */
.subscribe-floating-btn {
    position: fixed;
    right: 0;
    top: calc(50% + 100px);
    background: #dc3545;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 1050;
    font-size: 16px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.subscribe-floating-btn:hover {
    background: #c82333;
}

/* ---- SUBSCRIBE MODAL ---- */
.subscribe-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}
.subscribe-modal.open {
    display: flex;
}
.subscribe-modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.subscribe-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
}
.subscribe-form-group {
    margin-bottom: 15px;
}
.subscribe-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}
.subscribe-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.subscribe-form-group input:focus {
    border-color: #08502a;
    outline: none;
}
.subscribe-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #08502a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.subscribe-submit-btn:hover {
    background-color: #000;
}
