/* Content Section */
.content-section {
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Clear floats */
}

.content-section h2 {
    color: #ff0000;
    /* Red color for heading */
    text-align: center;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #b30000;
    /* Darker red for subheadings */
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    display: inline-block;
}

.content-section p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* Promo Image Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.promo-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.promo-grid img:hover {
    transform: scale(1.02);
}

.wide-img {
    grid-column: span 2;
}

/* Events Gallery & News Grid */
/* Events Gallery & News Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Detailed News Grid Styles (Matches news.php) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #BA2026;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Ensure text align left for news */
}

.news-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    font-size: 1.2rem !important;
    /* Force override generic h3 */
    color: #333;
    margin-bottom: 10px !important;
    line-height: 1.4;
    border-bottom: none !important;
    /* Remove line from generic h3 */
    padding-bottom: 0 !important;
}

.news-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    color: #BA2026;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: #800000;
    text-decoration: none;
}

.btn-read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Side List News Styles */
.news-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 25px;
    /* Spacing between list items */
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
}

.news-list-item:hover {
    transform: translateX(10px);
    background: #fdf2f2;
    /* Light red tint on hover */
    text-decoration: none;
    color: #BA2026;
}

.news-list-img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-list-content h4 {
    font-family: 'Baloo Thambi 2', cursive;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
    color: inherit;
}

.news-list-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0;
}


/* Horizontal Card Styles for 2x2 Grid */
.news-card-horizontal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
    border: 1px solid #eee;
}

.news-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-horizontal-img-wrapper {
    width: 40%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-horizontal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-horizontal:hover .news-horizontal-img-wrapper img {
    transform: scale(1.05);
}

.news-horizontal-body {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-horizontal-body .news-title {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3;
}

.news-horizontal-body .news-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.date-badge-small {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(183, 28, 28, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-read-more-small {
    font-size: 0.85rem;
    color: #BA2026;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.btn-read-more-small:hover {
    color: #800000;
    text-decoration: none;
}

@media (max-width: 576px) {
    .news-card-horizontal {
        flex-direction: column;
    }

    .news-horizontal-img-wrapper,
    .news-horizontal-body {
        width: 100%;
    }

    .news-horizontal-img-wrapper {
        height: 180px;
    }
}

/* Button Style */
.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #555;
}

/* Responsive Grid */
@media screen and (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .wide-img {
        grid-column: auto;
    }
}

/* Accordion Style - Refined to match clean Panel look */
.accordion {
    background-color: #f5f5f5;
    /* Light grey like bootstrap panel-default */
    color: #333;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: 1px solid #ddd;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 4px;
    /* Rounded corners */
    margin-bottom: 10px;
    /* Space between panels */
    position: relative;
    /* For icon positioning */
}

.active,
.accordion:hover {
    background-color: #e8e8e8;
}

.accordion:after {
    content: '\002B';
    /* Plus sign */
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 18px;
}

.active:after {
    content: "\2212";
    /* Minus sign */
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 1px solid #ddd;
    /* Add borders to the content panel too */
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    position: relative;
    top: -10px;
    /* Pull up to attach to accordion header */
    margin-bottom: 10px;
    opacity: 0;
    /* Add fade effect */
}

.panel.show {
    opacity: 1;
    padding: 15px;
    /* Add padding when showing */
    top: -5px;
    /* Adjust visual attachment */
}

/* Founder Sidebar Style */
.founder-sidebar {
    float: left;
    margin-right: 25px;
    margin-bottom: 20px;
    text-align: center;
    width: 300px;
}

.founder-sidebar img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .founder-sidebar {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 350px;
    }
}

/* Magazine Layout Styles */
.news-card-featured {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.news-card-featured:hover {
    transform: translateY(-5px);
}

.featured-img-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-featured:hover .featured-img-wrapper img {
    transform: scale(1.03);
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.featured-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0 15px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Increased size for Featured Label */
.featured-label {
    font-size: 1rem;
    padding: 8px 12px;
    font-weight: 600;
    align-self: flex-start;
    /* Ensure it doesn't stretch */
}

.date-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Moved to Right side for better balance */
    left: auto;
    /* Reset left */
    background: rgba(183, 28, 28, 0.95);
    /* Slightly more opaque */
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Flexbox for alignment */
    flex-direction: column;
    justify-content: center;
    min-width: 70px;
    /* Ensure consistent width */
}

.date-badge-large .day {
    font-size: 1.8rem;
    /* Increased size */
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.date-badge-large .month {
    font-size: 1rem;
    /* Increased size */
    text-transform: uppercase;
    display: block;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .featured-img-wrapper {
        height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

}

/* Hero Overlay Card Styles */
.news-hero-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 400px;
    /* Fixed height for impact */
    display: block;
    text-decoration: none;
}

.news-hero-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-hero-card:hover .news-hero-img-wrapper img {
    transform: scale(1.05);
    /* Smooth zoom */
}

/* Gradient Overlay */
.news-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(44, 11, 11, 0.7) 50%, transparent);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: background 0.3s ease;
}

.news-hero-card:hover .news-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(92, 18, 18, 0.8) 60%, transparent);
}

.news-hero-content {
    z-index: 2;
    position: relative;
}

.news-hero-label {
    display: inline-block;
    background: #BA2026;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-hero-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.news-hero-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 90%;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.news-hero-meta i {
    margin-right: 5px;
    color: #FFD700;
    /* Gold icon */
}

/* Floating Date Badge */
.date-badge-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.date-badge-floating .day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: #BA2026;
}

.date-badge-floating .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

@media (max-width: 768px) {
    .news-hero-card {
        height: 450px;
        /* Taller on mobile for text */
    }

    .news-hero-title {
        font-size: 1.5rem;
    }
}

/* Elegant Split Layout Styles */
.news-card-elegant {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    display: flex;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 400px;
    /* Substantial height */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.elegant-img-wrapper {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.elegant-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card-elegant:hover .elegant-img-wrapper img {
    transform: scale(1.05);
    /* Gentle zoom */
}

.elegant-content {
    width: 50%;
    padding: 50px;
    /* Generous whitespace */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #fff;
}

.elegant-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #BA2026;
    margin-bottom: 20px;
    display: block;
}

.elegant-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c0b0b;
    /* Deep Maroon */
    margin-bottom: 20px;
    line-height: 1.25;
}

.elegant-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.elegant-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.elegant-date {
    display: flex;
    align-items: center;
    color: #777;
    font-weight: 500;
    font-size: 0.95rem;
}

.elegant-date i {
    color: #BA2026;
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-elegant {
    color: #BA2026;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-elegant i {
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.news-card-elegant:hover .btn-elegant i {
    margin-left: 12px;
}

@media (max-width: 992px) {
    .news-card-elegant {
        flex-direction: column;
        min-height: auto;
    }

    .elegant-img-wrapper,
    .elegant-content {
        width: 100%;
    }

    .elegant-img-wrapper {
        height: 250px;
    }

    .elegant-content {
        padding: 30px;
    }

    .elegant-title {
        font-size: 1.6rem;
    }
}