@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header */
.modern-header {
    background-color: #550000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #FFBF2E;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #FFBF2E;
}

.dropdown {
    position: relative;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #550000;
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 191, 46, 0.1);
    color: #FFBF2E;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn,
.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.search-btn:hover,
.menu-toggle:hover {
    color: #FFBF2E;
}

.menu-toggle {
    display: none;
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(85, 0, 0, 0.4), rgba(85, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}


.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    color: #fff;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 191, 46, 0.8);
    color: #550000;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.slide-nav:hover {
    background-color: #FFBF2E;
}

.slide-nav.prev {
    left: 30px;
}

.slide-nav.next {
    right: 30px;
}

.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #FFBF2E;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    margin-top: 70px;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    color: #550000;
    margin-bottom: 15px;
    font-weight: 700;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: #FFBF2E;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    background-color: #f9f9f9;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-button {
    display: inline-block;
    background-color: #550000;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #FFBF2E;
    color: #550000;
    transform: translateY(-2px);
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: #550000;
    padding: 15px 35px;
    text-decoration: none;
    border: 2px solid #550000;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button-outline:hover {
    background-color: #550000;
    color: #fff;
}

/* Info Cards */
.info-cards {
    background-color: #fff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(85, 0, 0, 0.1);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #550000;
    margin-bottom: 15px;
    font-size: 22px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Latest News */
.latest-news {
    background-color: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #FFBF2E;
    color: #550000;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    color: #550000;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #550000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #FFBF2E;
}

.section-cta {
    text-align: center;
}

/* Notice Preview */
.notice-preview {
    background-color: #fff;
}

.notice-content {
    max-width: 900px;
    margin: 0 auto;
}

.notice-list {
    margin-bottom: 40px;
}

.notice-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FFBF2E;
}

.notice-badge {
    background-color: #FFBF2E;
    color: #550000;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    height: fit-content;
}

.notice-text h4 {
    color: #550000;
    margin-bottom: 8px;
    font-size: 18px;
}

.notice-text p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    background-color: #f9f9f9;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #fff;
    color: #550000;
    border: 2px solid #550000;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #550000;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(85, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* News Page */
.news-page {
    background-color: #f9f9f9;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-article {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFBF2E;
    color: #550000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.article-content {
    padding: 40px;
}

.article-content h2 {
    color: #550000;
    margin-bottom: 15px;
    font-size: 32px;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Notice Board Page */
.notice-board-page {
    background-color: #f9f9f9;
}

.notices-container {
    max-width: 900px;
    margin: 0 auto;
}

.notice-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #FFBF2E;
}

.notice-card.urgent {
    border-left-color: #dc3545;
}

.notice-card.important {
    border-left-color: #ffc107;
}

.notice-card.info {
    border-left-color: #17a2b8;
}

.notice-card.event {
    border-left-color: #28a745;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.urgent-badge {
    background-color: #dc3545;
    color: #fff;
}

.important-badge {
    background-color: #ffc107;
    color: #000;
}

.info-badge {
    background-color: #17a2b8;
    color: #fff;
}

.event-badge {
    background-color: #28a745;
    color: #fff;
}

.notice-date {
    color: #999;
    font-size: 14px;
}

.notice-card h3 {
    color: #550000;
    margin-bottom: 15px;
    font-size: 24px;
}

.notice-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.notice-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.notice-card li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* About Page */
.about-content {
    background-color: #fff;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-text h2 {
    color: #550000;
    font-size: 36px;
    margin-bottom: 20px;
}

.content-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.values-section,
.programs-section {
    margin-bottom: 80px;
}

.values-section h2,
.programs-section h2 {
    text-align: center;
    color: #550000;
    font-size: 36px;
    margin-bottom: 20px;
}

.values-grid,
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card,
.program-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.program-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.value-card h3,
.program-card h3 {
    color: #550000;
    margin-bottom: 15px;
    font-size: 22px;
}

.value-card p,
.program-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Page */
.contact-page {
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-container h2 {
    color: #550000;
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 30px;
    color: #FFBF2E;
}

.contact-item h4 {
    color: #550000;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.social-links h4 {
    color: #550000;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 10px 20px;
    background-color: #550000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #FFBF2E;
    color: #550000;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #550000;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFBF2E;
}

.submit-btn {
    background-color: #550000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background-color: #FFBF2E;
    color: #550000;
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-placeholder {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(85, 0, 0, 0.9);
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
}

/* Footer */
.modern-footer {
    background-color: #550000;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #FFBF2E;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section h4 {
    color: #FFBF2E;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FFBF2E;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #550000;
        transition: left 0.3s;
        padding: 30px;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .welcome-content,
    .content-section,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-section.reverse {
        direction: ltr;
    }

    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .slide-nav {
        padding: 10px 15px;
        font-size: 20px;
    }

    .slide-nav.prev {
        left: 10px;
    }

    .slide-nav.next {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .hero-slideshow,
    .page-hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    section {
        padding: 50px 0;
    }

    .card-grid,
    .values-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
}