body {
    background: #f5f7fb;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #005c33, #20c997);
    color: #fff;
    padding: 80px 0;
}

/* SEARCH */
.search-box {
    max-width: 500px;
}

/* CARDS */
.card {
    border: none;
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* JOURNAL IMAGE */
.journal-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 👈 KEY FIX */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* SECTION TITLE */
.section-title {
    font-weight: 600;
    margin-bottom: 30px;
}

/* ARTICLE CARD */
.article-card {
    border-left: 4px solid #005c33;
}

/* FOOTER */
footer {
    background: #212529;
    color: #ccc;
}

/* SEARCH WRAPPER */
.search-wrapper {
    position: relative;
    max-width: 700px; /* 👈 controls width */
}

/* SEARCH RESULTS DROPDOWN */
#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 5px;
}

/* FIX OVERLAY LOOK */
#searchResults a {
    border: none;
    border-bottom: 1px solid #eee;
}

#searchResults a:hover {
    background: #f1f5ff;
}

.card {
    overflow: hidden; /* prevents image overflow */
}

/* OPTIONAL: overlay effect */
.card:hover .journal-img {
    transform: scale(1.05);
}

.journal-img {
    transition: 0.4s ease;
}

.editorial-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.editorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.editorial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* BASE CARD */
.editorial-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

/* HOVER EFFECT */
.editorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* HEADER (GRADIENT GREEN → YELLOW) */
.editorial-card .card-header {
    background: linear-gradient(135deg, #198754, #ffc107);
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
}

/* IMAGE */
.editorial-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid #198754;
}

/* TOP ROLES (BIGGER EMPHASIS) */
.editorial-top .card-header {
    background: linear-gradient(135deg, #157347, #ffca2c);
}

/* EDITORS STYLE */
.editorial-editors .card-header {
    background: linear-gradient(135deg, #198754, #20c997);
}

/* ADVISERS STYLE */
.editorial-advisers .card-header {
    background: linear-gradient(135deg, #ffc107, #ffdd57);
    color: #000;
}

/* SECRETARY STYLE */
.editorial-secretary .card-header {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
}

/* NAME */
.editorial-card h5,
.editorial-card h6 {
    margin-top: 5px;
    font-weight: 600;
}

/* SMALL TEXT */
.editorial-card p {
    font-size: 13px;
}

/* Reduce spacing between columns */

#about .container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

#about .row {
    margin-left: -8px;
    margin-right: -8px;
}

#about .col-md-5,
#about .col-md-7 {
    padding-left: 8px;
    padding-right: 8px;
}

/* Image styling */
.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text styling */
.about-text {
    padding: 10px 5px;
}

/* Optional subtle alignment tweak */
@media (min-width: 768px) {
    .about-text {
        padding-left: 15px;
    }
}

/* NAVBAR BASE */
.navbar-custom {
    background: linear-gradient(to right, #ffffff, #f6fff9);
    padding: 12px 0;
}

/* BRAND */
.navbar-brand {
    font-size: 20px;
    letter-spacing: 1px;
}

/* NAV ITEM CARD STYLE */
.nav-card {
    padding: 8px 18px !important;
    border-radius: 30px;
    background: #f1fdf6;
    color: #198754 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* HOVER EFFECT */
.nav-card:hover {
    background: linear-gradient(135deg, #198754, #ffc107);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ACTIVE STATE */
.nav-card.active {
    background: linear-gradient(135deg, #157347, #ffca2c);
    color: #fff !important;
}

/* MOBILE FIX */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 10px;
    }

    .nav-card {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* SECTION BACKGROUND */
.contact-section {
    background: linear-gradient(to bottom, #f8f9fa, #eefaf3);
}

/* CARD STYLE */
.contact-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* INPUT FIELDS */
.contact-card .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px;
}

.contact-card .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.1rem rgba(25, 135, 84, 0.2);
}

/* BUTTON */
.contact-card .btn {
    border-radius: 30px;
    padding: 10px;
    font-weight: 500;
}

/* CONTACT INFO */
.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* MAP */
.map-wrapper iframe {
    width: 100%;
    border-radius: 10px;
}

/* FOOTER BASE */
.journal-footer {
    background: linear-gradient(135deg, #0f5132, #198754);
    color: #fff;
}

/* TITLES */
.footer-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* TEXT */
.footer-text {
    font-size: 14px;
    color: #e9f7ef;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #e9f7ef;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

/* DIVIDER */
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 25px 0;
}

/* BOTTOM LINK */
.footer-link-highlight {
    color: #ffc107;
    text-decoration: none;
}

.footer-link-highlight:hover {
    text-decoration: underline;
}

/* MOBILE IMPROVEMENT */
@media (max-width: 768px) {
    .journal-footer {
        text-align: center;
    }
}

/* Editorial Cards */
.editorial-card {
    border-radius: 12px;
    transition: 0.3s;
    background: linear-gradient(135deg, #f9fff9, #fffbe6);
}

.editorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Avatar Circle */
.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #198754, #ffc107);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

/* Editorial Text */
.editorial-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.editorial-content p {
    margin-bottom: 15px;
    text-align: justify;
}

#searchResults {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
}

.search-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    padding: 8px 15px;
    background: #f8f9fa;
    text-transform: uppercase;
}

.search-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    color: #000;
}

.search-item:hover {
    background: #f5f7fb;
}

.search-item .title {
    font-weight: 600;
    font-size: 14px;
}

.search-item .meta {
    font-size: 12px;
    color: #777;
}

mark {
    background: #ffe066;
    padding: 0;
}

.search-wrapper {
    max-width: 700px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    margin-top: 6px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 999;
    text-align: left;
}