/* --- HOME PAGE SECTION SPECIFIC STYLES --- */

/* Chairman & Secretary Section Background */
.home-messages-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

/* Custom Section Headings with Thick Left Border */
.section-heading-custom {
    color: var(--primary);
    font-weight: 800;
    border-left: 6px solid var(--primary) !important;
    padding-left: 15px;
    margin-bottom: 35px;
    font-size: 2rem;
    line-height: 1.2;
}

/* White Cards for Chairman/Secretary */
.speech-card-white {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: none !important;
}

.speech-card-white:hover {
    transform: translateY(-5px);
}

/* Sidebar Notice Card Update */
.notice-card-custom {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
}

.notice-card-custom .notice-header {
    background: #41431B;
    color: #ffffff;
    padding: 18px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-card-custom .notice-list {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.notice-card-custom .notice-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.notice-card-custom .notice-item:last-child {
    border-bottom: none;
}

/* About Us Section - Director Card Update */
.about-section .director-message-card {
    background-color: var(--bg-light) !important;
    border-radius: 25px !important;
    padding: 40px !important;
    border: none !important;
}

.about-section .about-title {
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--primary);
    margin-top: 10px;
}

.about-section .about-subtitle {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

/* General Typography Tweaks for these sections */
.text-justify-custom {
    text-align: justify;
    line-height: 1.8;
    color: #334155;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .home-messages-section {
        padding: 60px 0;
    }
    
    .speech-card-white {
        padding: 25px;
    }
    
    .section-heading-custom {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .notice-card-custom {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .home-messages-section {
        padding: 40px 0;
    }
    
    .speech-card-white {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .speech-card-white .speech-img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .section-heading-custom {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .about-section .about-title {
        font-size: 2rem;
    }
    
    .about-section .director-message-card {
        padding: 25px !important;
    }

    /* Front page specific mobile fixes */
    .home-messages-section .col-lg-8 > div {
        margin-bottom: 30px !important;
    }

    .home-messages-section .col-lg-8 .speech-card-white {
        margin-bottom: 20px !important;
    }

    /* Hero section mobile */
    .carousel-caption-centered {
        padding: 0 10px !important;
    }

    .carousel-caption-centered h1 {
        font-size: 1.8rem !important;
    }

    .carousel-caption-centered p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .carousel-caption-centered .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .speech-card-white .speech-img {
        width: 60px;
        height: 60px;
    }
    
    .notice-card-custom .notice-header {
        font-size: 0.8rem;
        padding: 12px 15px;
    }
    
    .notice-card-custom .notice-item {
        padding: 12px 15px;
    }
    
    .about-section .about-title {
        font-size: 1.6rem;
    }

    /* Master plan section mobile */
    .layout-section {
        padding: 40px 0;
    }

    .layout-section h2, 
    .layout-section h3 {
        font-size: 1.4rem !important;
    }

    .layout-section p {
        font-size: 0.9rem;
    }
}
