/* Pakistan Government Green Theme - PEIMA Website */

:root {
    --primary-green: #0b5f3c; /* Refined Government Green */
    --secondary-green: #15724a; /* Deep Forest Green */
    --light-green: #eef7f0; /* Softer Light Green */
    --accent-gold: #d4a84f; /* Muted Gold */
    --dark-gray: #2f2f2f;
    --medium-gray: #666666;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

/* Government Branding Bar */
.govt-branding {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--primary-green);
    padding: 8px 0;
    font-size: 0.9rem;
}

.govt-branding .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.govt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.govt-logo img {
    height: 30px;
}

.govt-text {
    color: var(--primary-green);
    font-weight: 600;
}

.national-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-green);
}

.flag-icon {
    color: #006400;
    font-size: 1.2rem;
}

/* Navbar - Pakistan Government Green */
.navbar {
    background-color: var(--primary-green) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent-gold);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
}

.nav-logo {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand span {
    color: var(--accent-gold) !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dropdown-menu {
    border: 1px solid rgba(0, 100, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.1);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--light-green);
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(900px 420px at 80% 10%, rgba(212, 168, 79, 0.22), transparent 60%),
        linear-gradient(120deg, rgba(11, 95, 60, 0.92), rgba(6, 56, 35, 0.96)),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: auto, auto, cover;
    background-position: right top, center, center;
    color: white;
    padding: 100px 0;
    border-bottom: 5px solid var(--accent-gold);
}

/* Education Management Banner */
.edu-banner {
    position: relative;
    background: linear-gradient(135deg, #f4faf6, #ffffff 55%, #eef7f0);
    border-bottom: 1px solid #dfe9e3;
    padding: 40px 0;
    overflow: hidden;
}

.edu-banner::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(11, 95, 60, 0.15), rgba(11, 95, 60, 0));
    border-radius: 50%;
}

.edu-banner::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 168, 79, 0.18), rgba(212, 168, 79, 0));
    border-radius: 50%;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(11, 95, 60, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(11, 95, 60, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.edu-banner .banner-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.85rem;
}

.banner-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbf9);
    border: 1px solid #e2ece5;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(11, 95, 60, 0.12);
}

.banner-stats .stat {
    text-align: center;
}

.banner-stats .stat-value {
    display: block;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.25rem;
}

.banner-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.banner-cta .btn {
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 8px 18px rgba(11, 95, 60, 0.2);
}

/* Page Sections */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    background-color: var(--light-green);
    padding: 60px 0 30px;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-green);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--medium-gray);
}

/* Section Titles */
.section-title {
    color: var(--primary-green);
    position: relative;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    transform: translateX(-50%);
}

.section-title.center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 100, 0, 0.15);
    border-color: var(--secondary-green);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.initiative-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Highlight Boxes */
.highlight-box {
    background-color: var(--light-green);
    border-left: 4px solid var(--primary-green);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.sidebar-links a {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    color: var(--dark-gray);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    border-radius: 0 4px 4px 0;
}

.sidebar-links a:hover, .sidebar-links a.active {
    background-color: var(--light-green);
    border-left-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
}

/* Leader Cards */
.leader-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.08);
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 100, 0, 0.15);
}

.leader-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--light-green);
}

/* Accordion */
.accordion-button {
    background-color: var(--light-green);
    color: var(--primary-green);
    font-weight: 600;
    border: 1px solid #d0e0d0;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-green);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 100, 0, 0.25);
    border-color: var(--primary-green);
}

.accordion-body {
    background-color: white;
    border: 1px solid #d0e0d0;
    border-top: none;
}

/* Publication Cards */
.publication-card {
    border-left: 4px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 100, 0, 0.05);
    border: 1px solid #e0e0e0;
    border-left-width: 4px;
}

.publication-card:hover {
    border-left-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.1);
}

.publication-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-right: 15px;
}

/* Contact Info Boxes */
.contact-info-box {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: #e8f5e8;
    padding: 60px 0 20px;
    border-top: 5px solid var(--accent-gold);
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links a {
    color: #d0e8d0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #c0e0c0;
    font-size: 0.9rem;
}

/* Initiative Cards */
.initiative-card {
    border-top: 4px solid var(--primary-green);
}

.initiative-card:hover {
    border-top-color: var(--accent-gold);
}

.initiative-detail-header {
    background-color: var(--light-green);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-green);
}

.organogram-img {
    width: 100%;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.08);
}

.page-content {
    min-height: 600px;
    padding-bottom: 60px;
}

/* News Cards */
.news-card {
    border-left: 3px solid var(--primary-green);
    padding-left: 15px;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 100, 0, 0.05);
    border: 1px solid #e0e0e0;
    border-left-width: 3px;
}

/* News Spotlight Section */
.news-spotlight {
    background-color: var(--light-green);
}

.news-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    background-color: rgba(11, 95, 60, 0.1);
    border: 1px solid rgba(11, 95, 60, 0.2);
    margin-bottom: 12px;
}

.news-feature-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    background-color: white;
    border: 1px solid #e2ece5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(11, 95, 60, 0.1);
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-body {
    padding: 20px 22px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.news-side-card {
    background-color: white;
    border: 1px solid #e2ece5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(11, 95, 60, 0.1);
}

.announcement-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef3ef;
}

.announcement-item:last-of-type {
    border-bottom: none;
}

.announcement-item .dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background-color: var(--primary-green);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--light-green);
}

.nav-tabs .nav-link {
    color: var(--medium-gray);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    font-weight: 600;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-green);
    border-bottom-color: var(--light-green);
}

.nav-tabs .nav-link.active {
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
    background-color: transparent;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 100, 0, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.bg-light {
    background-color: var(--light-green) !important;
    color: var(--primary-green);
}

/* Pagination */
.page-link {
    color: var(--primary-green);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: white;
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.3);
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 100, 0, 0.4);
}

/* Urdu Text Support */
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
    direction: rtl;
    font-size: 0.9em;
}

.text-green {
    color: var(--primary-green) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Utility Classes */
.bg-light {
    background-color: var(--light-green) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 40px 0 20px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-logo {
        height: 40px;
        width: 40px;
    }

    .banner-stats {
        grid-template-columns: 1fr;
    }

    .news-feature-card {
        grid-template-columns: 1fr;
    }

    .news-thumb {
        height: 200px;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .govt-branding {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-green);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* Leadership & Management Section Styles */

/* Leadership Messages Section */
.leadership-messages-section {
    position: relative;
    background: linear-gradient(180deg, #f4faf6, #ffffff);
    border-radius: 16px;
    margin-bottom: 60px;
    border: 1px solid #e4eee7;
    box-shadow: 0 10px 28px rgba(11, 95, 60, 0.08);
    overflow: hidden;
}

.leadership-messages-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(11, 95, 60, 0.14), rgba(11, 95, 60, 0));
    border-radius: 50%;
}

.leadership-carousel-wrapper {
    position: relative;
    padding: 20px 0;
}

.leadership-carousel {
    position: relative;
    overflow: hidden;
}

.leadership-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.leadership-slide.active {
    display: block;
    opacity: 1;
}

/* Leadership Image Container */
.leadership-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.leadership-portrait {
    border-radius: 18px;
    position: relative;
    z-index: 2;
    max-height: 450px;
    width: auto;
    display: block;
    margin: 0 auto;
    border: 6px solid #ffffff;
    box-shadow: 0 16px 30px rgba(11, 95, 60, 0.18);
}

.portrait-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(11, 95, 60, 0.25), rgba(11, 95, 60, 0.05));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* Leadership Message Card */
.leadership-message-card {
    background: linear-gradient(180deg, #ffffff, #f9fbfa);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(11, 95, 60, 0.12);
    border: 1px solid #e2ece5;
    height: 100%;
    min-height: 400px;
}

.leadership-message-card .card-body {
    padding: 42px;
}

.leadership-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #e6f0ea;
}

.leadership-title h4 {
    color: var(--primary-green);
    font-weight: 600;
}

.leadership-message {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
}

.leadership-message p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid #d6e6db;
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(11, 95, 60, 0.14);
}

.carousel-nav:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 8px;
}

.carousel-nav.next {
    right: 8px;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background-color: white;
    color: var(--primary-green);
    transform: translateY(-50%);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 45px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
}

.indicator:hover:not(.active) {
    background-color: rgba(0, 100, 0, 0.3);
}

/* Management Team Section */
.management-team-section {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.management-member-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

.management-member-card:hover {
    transform: translateY(-5px);
}

.member-image-container {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.15);
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    z-index: 1;
    opacity: 0.8;
}

.member-info h4 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 5px;
}

.member-info p {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .leadership-portrait {
        max-height: 400px;
    }
    
    .portrait-bg {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .leadership-message-card .card-body {
        padding: 30px;
    }
    
    .leadership-portrait {
        max-height: 350px;
    }
    
    .portrait-bg {
        width: 220px;
        height: 220px;
    }
    
    .member-image-container {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .leadership-messages-section {
        padding: 30px 0;
    }
    
    .leadership-message-card .card-body {
        padding: 25px;
    }
    
    .leadership-portrait {
        max-height: 300px;
    }
    
    .portrait-bg {
        width: 180px;
        height: 180px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .management-member-card {
        padding: 15px;
    }
    
    .member-image-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .leadership-message-card .card-body {
        padding: 20px;
    }
    
    .leadership-header {
        margin-bottom: 15px;
    }
    
    .leadership-title h4 {
        font-size: 1.1rem;
    }
    
    .leadership-message {
        max-height: 250px;
    }
    
    .leadership-portrait {
        max-height: 250px;
    }
    
    .portrait-bg {
        width: 150px;
        height: 150px;
    }
    
    .member-image-container {
        width: 100px;
        height: 100px;
    }
    
    .member-info h4 {
        font-size: 1rem;
    }
    
    .member-info p {
        font-size: 0.8rem;
    }
}

/* Scrollbar Styling for Message Box */
.leadership-message::-webkit-scrollbar {
    width: 6px;
}

.leadership-message::-webkit-scrollbar-track {
    background: var(--light-green);
    border-radius: 3px;
}

.leadership-message::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.leadership-message::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}
