/* ==========================================
   Plant Breeding & Biotechnology Lab
   Custom Stylesheet
   ========================================== */

/* ---------- Base ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

a {
    text-decoration: none;
}

.navbar-brand {
    font-weight: bold;
}

/* ---------- Topbar ---------- */
.topbar {
    font-size: 0.9rem;
}

/* ---------- Sidebar widgets (front page) ---------- */
.sidebar-widget .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.sidebar-widget .card-header {
    font-weight: 600;
    font-size: 0.95rem;
    background-color: #2E7D32;
    border-bottom: none;
}

.sidebar-widget .list-group-item {
    font-size: 0.9rem;
}

/* ---------- Section titles (Front page sections) ---------- */
.section-title {
    border-left: 4px solid #2E7D32;
    padding-left: 12px;
    margin-bottom: 20px;
    font-size: 1.25rem;          /* Reduced from typical 2rem */
    font-weight: 700;             /* Bold */
    color: #1b5e20;               /* Dark green for prominence */
    text-transform: uppercase;    /* Makes it stand out */
    letter-spacing: 0.5px;
}

/* ---------- Cards ---------- */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-img-top {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* ---------- Carousel for logos (collaborators/funding) ---------- */
.carousel-item .row {
    align-items: center;
}

.carousel-item img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #2E7D32;
    border-radius: 50%;
    padding: 10px;
}

/* ---------- Buttons ---------- */
.btn-success {
    background-color: #2E7D32;
    border-color: #2E7D32;
}

.btn-success:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.btn-outline-success {
    color: #2E7D32;
    border-color: #2E7D32;
}

.btn-outline-success:hover {
    background-color: #2E7D32;
    border-color: #2E7D32;
    color: #fff;
}

/* ---------- Custom columns ---------- */
@media (min-width: 768px) {
    .col-md-5-cols {
        flex: 0 0 auto;
        width: 20%;
    }
    .col-md-8-cols {
        flex: 0 0 auto;
        width: 12.5%;
    }
}

/* ---------- Footer ---------- */
footer {
    background-color: #1c2331;
    color: #fff;
}

footer a.text-white-50:hover {
    color: #fff !important;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.1rem;   /* Slightly smaller on mobile */
    }
    .card-body h5 {
        font-size: 1rem;
    }
    .col-md-5-cols,
    .col-md-8-cols {
        width: 100%;
    }
}