/* Slider Styles */
.slider-container {
    position: relative;
    margin-bottom: 3rem;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(8, 31, 92, 0.15);
}

.slider {
    display: flex;
    transition: transform 0.7s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    text-align: center;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: white;
}

/* Arrow Navigation Styles */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Hide arrows on smaller screens for better mobile experience */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

/* Three Column Section */
.three-column-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.weather-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weather-card {
    flex: 1;
    min-height: 200px;
}

.lost-found-card {
    flex: 1;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.column-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(8, 31, 92, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(8, 31, 92, 0.15);
}

.column-card h3 {
    color: #081F5C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 3px solid #7096D1;
    padding-bottom: 0.5rem;
}

.mess-menu-items {
    list-style: none;
}

.mess-menu-items li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #EDF1F6;
    color: #334EAC;
}

.bulletin-item {
    background: #F2F0DE;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 4px solid #7096D1;
    border-radius: 8px;
}

.weather-info {
    text-align: center;
    color: #081F5C;
}

.weather-location {
    color: #7096D1;
    font-weight: bold;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: bold;
    color: #334EAC;
    margin: 0.5rem 0;
}

.weather-condition {
    color: #334EAC;
    font-size: 1rem;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 0.5rem;
}

.weather-detail {
    text-align: center;
    font-size: 0.9rem;
}

.weather-detail strong {
    display: block;
    color: #7096D1;
    font-size: 0.8rem;
}

/* Lost & Found Styles */
.lost-found-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.loading-item {
    text-align: center;
    color: #334EAC;
    font-style: italic;
    padding: 2rem 0;
}

.lost-found-item {
    background: #F8F9FA;
    border: 1px solid #EDF1F6;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    max-height: 200px;
    overflow: hidden;
}

.lost-found-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 31, 92, 0.1);
}

.lost-found-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-type {
    background: #7096D1;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.item-type.lost {
    background: #dc3545;
}

.item-type.found {
    background: #28a745;
}

.item-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.item-title {
    font-weight: bold;
    color: #081F5C;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-description {
    color: #334EAC;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-location {
    color: #7096D1;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-all-link {
    margin-top: auto;
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    background: #7096D1;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-all-btn:hover {
    background: #334EAC;
    transform: translateY(-1px);
}

/* Map Section */
.map-section {
    margin: 3rem 0;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(8, 31, 92, 0.1);
}

.map-section h2 {
    color: #081F5C;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #7096D1;
    padding-bottom: 1rem;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #EDF1F6, #D0E3FF);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334EAC;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px dashed #7096D1;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(8, 31, 92, 0.1);
}

.faq-section h2 {
    color: #081F5C;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #7096D1;
    padding-bottom: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #EDF1F6;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #F2F0DE;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #BAD6EB;
}

.faq-question h4 {
    color: #081F5C;
    margin: 0;
}

.faq-toggle {
    color: #7096D1;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 1rem;
    background: white;
    display: none;
    color: #334EAC;
    border-top: 1px solid #EDF1F6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .three-column-section {
        display: block !important;
        gap: 1rem !important;
        margin: 1rem 0 !important;
    }

    .column-card {
        width: 100% !important;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .weather-calendar-container {
        display: block !important;
    }

    .weather-card,
    .lost-found-card {
        min-height: auto;
        width: 100%;
    }

    .weather-temp {
        font-size: 2rem;
    }

    .weather-details {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-around;
    }

    .lost-found-item {
        padding: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-description {
        font-size: 0.8rem;
    }

    .view-all-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}


/* --- General Page Styling --- */
body {
    background-color: #f5f1eb;
    color: #343a40;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.07;
    background-size: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.icon %7B fill: %232c3e50; %7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(50, 40) rotate(-20)'%3E%3C!-- Scroll --%3E%3Cpath class='icon' transform='scale(2.2)' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/g%3E%3Cg transform='translate(250, 80) rotate(15)'%3E%3C!-- Lightbulb --%3E%3Cpath class='icon' transform='scale(2.2)' d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z'/%3E%3C/g%3E%3Cg transform='translate(300, 320) rotate(10)'%3E%3C!-- Hat --%3E%3Cpath class='icon' transform='scale(2.8)' d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/g%3E%3Cg transform='translate(180, 200) rotate(-5)'%3E%3C!-- Tag --%3E%3Cpath class='icon' transform='scale(2.4)' d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.22-1.05-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/%3E%3C/g%3E%3Cg transform='translate(80, 350) rotate(35)'%3E%3C!-- Exclamation --%3E%3Cpath class='icon' transform='scale(2.3)' d='M11 15h2v2h-2zm0-8h2v6h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.three-column-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.column-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-basis: 300px;
    flex-grow: 1;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.column-card h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.column-card p {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-link:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


/* Calendar Styles for Main Page */
.calendar-section {
    margin: 3rem 0;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(8, 31, 92, 0.1);
}

.calendar-section h2 {
    color: #081F5C;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #7096D1;
    padding-bottom: 1rem;
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header .nav-btn {
    background: none;
    border: none;
    color: #334EAC;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.calendar-header .nav-btn:hover {
    color: #7096D1;
}

.calendar-header .month-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #081F5C;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #E6E6E6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background-color: #334EAC;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem;
}

.calendar-day {
    background-color: #FFFFFF;
    padding: 1rem 0.5rem;
    min-height: 100px;
    text-align: right;
    position: relative;
    font-size: 1.2rem;
    color: #081F5C;
}

.calendar-day.empty {
    background-color: #F7F2EB;
    color: #D0D0D0;
}

.calendar-day.has-event {
    background-color: #E6F3FF;
}

.calendar-day.has-event::before {
    content: '•';
    position: absolute;
    top: 5px;
    left: 5px;
    color: #7096D1;
    font-size: 1.5rem;
    font-weight: bold;
}

.calendar-day .event-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    font-size: 0.8rem;
    text-align: left;
}

.calendar-day .event-list li {
    background-color: #D0E3FF;
    color: #081F5C;
    padding: 3px 5px;
    border-radius: 4px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day .event-list li {
    font-size: 0.7rem;
    margin: 0.1rem 0;
    color: #334EAC;
}
