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

:root {
   /* --primary-color: #1a5490; */
    --primary-color: #234300;
    --secondary-color: #028a02;
    --tirtiary-color: #8a0202;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #817d7d;
    --success-color: #27ae60;
    --card-back-color:rgb(222, 230, 232);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo {
    display: flex;
}

.logo img{
    width: 60px;
    height: 60px;
    
}
.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo .tagline {
    font-size: 13px;
    color: var(--text-light);
    margin-top: -5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
}

/* Grid System */
.row {
    display: grid;
    gap: 30px;
    margin-bottom: 5px;
}

.col-4 {
    grid-column: span 4;
    
    
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 6;
}
.row {
    grid-template-columns: repeat(12, 1fr);
}

/* Section 1 */
.section-1 {
    padding: 10px 0;
    background:var(--bg-light);
    margin-bottom: 0px;
}

.section-1 h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 26px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}


.featured-news {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

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

.featured-news img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-news h3 {
    padding: 20px 20px 10px;
    color: var(--text-dark);
    font-size: 20px;
    text-decoration: none;
    
}

.featured-news p {
    padding: 0 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.featured-news .read-more {
    display: inline-block;
    margin: 15px 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-news .read-more:hover {
    color: var(--secondary-color);
}

/* Quick News */
.quick-news {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    text-decoration: none;
    color:#e74c3c;
}


.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: var(--bg-light);
}

.news-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;  
}

.news-content .date {
    font-size: 13px;
    color: var(--text-light);
   
}
.detailed-page {
    background-color: #817d7d;
}


/* Important Links */
.important-links {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.link-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.link-item .icon {
    font-size: 24px;
}

/* Section 2 - Events */
.section-2 {
    padding: 10px 0;
    background:var(--bg-light);
}

.section-2 h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    
    
}

.event-main {
    border-top: 5px solid var(--secondary-color);
    padding-top: 20px;
}


.event-card {
    display: flex;
    gap: 20px;
    background: rgb(254, 254, 254);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s;
    width:370px;
    
}

.event-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.event-date {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-info h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.event-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.view-all-btn {
    display: inline-block;
    margin: 0 auto;
    padding: 12px 35px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-all-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section 3 */
.section-3 {
    padding: 60px 0;
    
}

.section-3 h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 26px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.activities-list {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.activity-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.activity-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.activity-date {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 5px;   
}



.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 200px;
}

.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(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

.gallery-overlay h4 {
    font-size: 16px;
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 14px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.contact-list li {
    opacity: 0.9;
    margin-bottom: 12px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e67e22;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 14px;
}

/* Notice Board Page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.page-content {
    padding: 40px 0;
    width: 95%;
}


.notice-list {
    display: grid;
    gap: 10px;
}

.notice-item {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.notice-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 1);
    transform: translateX(5px);
}

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

.notice-item h3 {
    color: var(--text-dark);
    font-size: 20px;
    flex: 1;
}

.notice-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.notice-badge.new {
    background: #e74c3c;
}

.notice-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.notice-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    
}


.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.contact-info-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    
}

.contact-info-box h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-text p {
    color:var(--text-light); 
    font-size: 14px;
}

/* Downloads Page */
.download-category {
    margin-bottom: 40px;
}

.download-category h2 {
    color: var(--primary-color); 
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.download-list {
    display: grid;
    gap: 15px;
    background-color: var(--white);
   
}

.download-item {
    background:  var(--card-back-color); 
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 1);
    transition: all 0.3s;
   
}

.download-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    
    
}

.download-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.download-info p {
    color: var(--text-light);
    font-size: 13px;
    
}

.download-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
}

.download-btn:hover {
    background: var(--secondary-color);
}

/* About Page */
.about-section {
    padding: 40px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.about-content-dhivehi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
}
.about-text-dhivehi h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
    text-align: right;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.about-image-dhivehi img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    align-items:right;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-box {
    background:var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 1);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-box h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}



/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .logo {
        order: 1;
    }

    .nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .nav a {
        display: block;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .col-4,
    .col-6 {
        grid-column: span 1;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns:1fr;
        vertical-align: center;
    }

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

    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info span {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

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

    .page-header h1 {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .event-card {
        flex-direction: column;
        grid-template-columns:1fr;
        vertical-align: center;
        width: 100%;
    }
    

    .event-date {
        width: 100%;
    }

    .container {
        width: 100%;
    }
}

