/* Navbar Styling */
.header-bar {
    background-color: #992600;
    color: white;
    padding: 2px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bar a {
    color: white;
    text-decoration: none;
}

/* CSS for icons */
.header-bar .icons a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    margin-left: 10px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    background-size: 100% 200%;
    background-position: 0% 0%;
    transition: background-position 0.5s, color 0.5s;
}

.header-bar .icons a:nth-child(1) {
    color: #1976d3;
    background-image: linear-gradient(#fff 50%, #1976d3 50%);
}

.header-bar .icons a:nth-child(2) {
    color: #19c6d3;
    background-image: linear-gradient(#fff 50%, #19c6d3 50%);
}

.header-bar .icons a:nth-child(3) {
    color: #d31960;
    background-image: linear-gradient(#fff 50%, #d31960 50%);
}

.header-bar .icons a:nth-child(4) {
    color: #d31960;
    background-image: linear-gradient(#fff 50%, #d31960 50%);
}

.header-bar .icons a:hover {
    background-position: 0% 100%;
    color: #fff;
}

/* Brand Logo */
.navbar-brand {
    font-family: "Baskerville Old Face", serif;
    text-indent: 10px;
    color: #510400;
    font-size: 35px;
}

/* Logo Image */
.logo {
    max-height: 80px;
}

/* Navbar Dropdown */
.nav-item.dropdown:hover .dropdown-menu {
    display: block; 
}

#navbarDropdown:hover {
    color: #ffffff; 
    background-color: #992600; 
}

.dropdown-item:hover {
    color: #ffffff; 
    background-color: #992600; 
}

/* Top Navigation Bar Styling */
.topnav {
    background-color: #9e031a; 
    overflow: hidden;
    z-index: auto;
}

.topnav a {
    float: right; 
    color: #9e031a; 
    text-align: center; 
    padding: 5px 15px; 
    font-size: 15px; 
}

.topnav a.active {
    background-color: blue; 
}

/* Sidebar */
/* Sidebar - hidden by default */
.sidebar {
    width: 250px; /* Adjust the width of the sidebar */
    position: fixed; /* Fixed position so it stays visible while scrolling */
    top: 0;
    left: 0;
    height: 100vh; /* Full height of the viewport */
    background-color: #343a40; /* Sidebar background color */
    color: white;
    padding-top: 20px;
    padding-left: 10px;
    box-sizing: border-box;
}

/* Active class to show sidebar */
.sidebar.active {
    left: 0; /* Sidebar visible */
}

/* Sidebar button */
.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #b52e31;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 20px;
}


/* Main content area */
.main-content {
    margin-left: 60px;
    padding: 20px;
}

.main-content h1 {
    color: #b52e31;
    font-size: 36px;
}

/* Box with reminder icon */
.box-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.box {
    background-color: white;
    border: 2px solid #b52e31;
    border-radius: 10px;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.box .icon {
    font-size: 40px;
    color: #b52e31;
    transition: transform 0.3s ease;
}

.box:hover .icon {
    transform: scale(1.2);
}

.box .text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 16px;
    color: #333;
}

/* Transition for year selection */
.year-selection {
    display: none;
    margin-top: 20px;
    background-color: white;
    padding: 10px;
    border: 2px solid #b52e31;
    border-radius: 10px;
    width: 200px;
}

.sidebar.active + .main-content .year-selection {
    display: block;
}


/* Maroon Line */
.dcsa-maroon-line-container {
    text-align: center;
    margin-top: 20px;  /* Space before the line */
}

.dcsa-maroon-line {
    height: 5px;  /* Thickness of the line */
    background-color: #992600;  /* Dark red color */
    margin-bottom: 15px;  /* Space between the line and text */
}

.dcsa-news-title {
    font-size: 2.5rem;
    color: #992600;  /* Maroon color */
    font-weight: bold;
    margin: 0;
    padding-top: 10px;
    position: relative;
}

/* Sidebar */
.dcsa-sidebar {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.dcsa-sidebar-title {
    font-size: 1.5rem;
    color: maroon;
    margin-bottom: 1rem;
}

.dcsa-sidebar-list {
    max-height: 400px;
    overflow-y: auto;
}

.dcsa-sidebar-link {
    text-decoration: none;
    color: #000;
}

.dcsa-sidebar-link:hover {
    color: maroon;
}

/* Hero Section */
.dcsa-hero {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
}

.dcsa-hero-title {
    font-size: 2.5rem;
    color: maroon;
}

.dcsa-hero-subtitle {
    font-size: 1.2rem;
    color: #333;
}

/* Box Container */
.dcsa-box-container {
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.dcsa-box {
    flex: 1 1 calc(33% - 1rem);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dcsa-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: maroon; 
}

.dcsa-box-icon {
    color: maroon;
    margin-bottom: 10px;
    font-size: 2rem;
    transition: color 0.4s ease, transform 0.4s ease; 
}

.dcsa-box:hover .dcsa-box-icon {
    color: #fff;
    transform: rotate(360deg); 
}

.dcsa-box-title {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
    text-align: center;
    position: relative;
}

.dcsa-box:hover .dcsa-box-title {
    color: #fff; 
}

.dcsa-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, maroon 50%, transparent 50%);
    transition: transform 0.4s ease, background 0.4s ease;
    transform: translateY(100%); 
}

.dcsa-box:hover::before {
    transform: translateY(0);
}

/* Container Styling */
.community-news .container {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

/* Box containing both Image and Text */
.community-news .news-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: white;
    border: 3px solid #8B0000; /* Dark red border */
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 80%;
    margin-bottom: 3rem;
}

/* Image Container (Clickable for Gallery) */
.community-news .image-container {
    position: relative;
    flex: 1;
}

.community-news .main-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.community-news .main-image:hover {
    transform: scale(1.05);
}

/* Gallery Images (Hidden by default) */
.community-news .gallery {
    display: none;
}

.community-news .gallery-image {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-news .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Lightbox Styles */
.community-news .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.community-news .lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.community-news .lightbox .caption {
    color: white;
    font-size: 18px;
    margin-top: 1rem;
    text-align: center;
}

.community-news .lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s ease;
}

.community-news .lightbox .close-btn:hover {
    color: #FFD700; /* Gold hover effect */
}

/* Content Box with Dark Red Border and White Background (Right Side) */
.community-news .content-box {
    flex: 1;
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 1rem;
}

/* Content Styling */
.community-news .content h3 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    color: #8B0000; /* Dark Red for the heading */
}

.community-news .content .about-text {
    font-size: 22px;
    line-height: 1.8;
    color: #444;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Button Styling */
#read-more-btn, #read-less-btn {
    cursor: pointer;
    color: white;
    font-size: 18px;
    background-color: #8B0000; /* Dark Red */
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#read-more-btn:hover, #read-less-btn:hover {
    background-color: #6a0000; /* Darker Red on hover */
    transform: translateY(-3px);
}

/* Optional Mobile Responsiveness */
@media (max-width: 768px) {
    .community-news .news-box {
        flex-direction: column; /* Stack the image and text vertically on smaller screens */
        gap: 1rem;
    }

    .community-news .content h3 {
        font-size: 28px;
    }

    .community-news .content .about-text,
    .community-news .content .more-text {
        font-size: 20px;
    }

    #read-more-btn, #read-less-btn {
        font-size: 16px;
    }
}
