/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0b794a; /* Main Green */
    --secondary-color: #fab31c; /* Accent Gold */
    --light-bg-color: #f0f7f4; /* A very light, complementary green */
    --dark-footer-bg: #042a1a; /* A very dark green for the footer */
    --dark-text-color: #333333;
    --light-text-color: #666;
    --white-color: #ffffff;
    --base-font: 'Roboto', sans-serif;
    --heading-font: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--base-font);
    line-height: 1.7;
    color: var(--dark-text-color);
    background-color: var(--white-color);
}

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

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 { font-size: 3.5rem; color: var(--white-color); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--primary-color); }
h3 { font-size: 1.2rem; }

section {
    padding: 80px 0;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left a, .top-bar-right a {
    color: var(--white-color);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}
.top-bar-left a:hover, .top-bar-right a:hover {
    color: var(--secondary-color);
}
.top-bar i {
    margin-right: 5px;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.logo img {
    max-height: 60px;
    width: auto;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links > li {
    margin-left: 25px;
    position: relative; /* For dropdown positioning */
}
.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    padding: 15px 0;
}
.nav-links a:hover {
    color: var(--secondary-color);
}
.nav-links a i {
    font-size: 0.7em;
    margin-left: 5px;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Dropdown Menu Styles --- */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    z-index: 1001;
}
.dropdown:hover > .submenu {
    display: block;
}
.submenu li {
    position: relative;
}
.submenu a {
    padding: 10px 20px;
    font-size: 0.95rem;
    text-transform: none;
    font-family: var(--base-font);
    font-weight: 500;
}
.submenu .submenu {
    top: 0;
    left: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--secondary-color); color: var(--dark-text-color); }
.btn-primary:hover { background-color: #e09e10; }

/* --- SLIDER SECTION --- */
.slider-section {
    padding: 0;
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white-color);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}
.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.slider-nav.prev {
    left: 20px;
}
.slider-nav.next {
    right: 20px;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: var(--white-color);
}

/* --- Notice Ticker Section --- */
.notice-ticker-section {
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    font-weight: 500;
}
.ticker-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 50px;
}
.ticker-label {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0 20px;
    font-family: var(--heading-font);
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ticker {
    width: 100%;
    overflow: hidden;
}
.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    width: fit-content;
}
.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 25px;
    white-space: nowrap;
}
.ticker-item a {
    color: var(--dark-text-color);
    text-decoration: none;
}
.new-icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 8px;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Animate to half width because content is duplicated */
}

/* --- About Us Section --- */
.about-us-section {
    background-color: var(--white-color);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-content h2, .about-content h3 {
    text-align: left;
}
.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.about-content p {
    margin-bottom: 2rem;
    color: var(--light-text-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat-item {
    background-color: var(--light-bg-color);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}
.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.stat-item .counter {
    font-size: 2.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}
.stat-item p {
    font-weight: 700;
    color: var(--light-text-color);
    margin: 0;
}

/* --- Messages Section --- */
.messages-section {
    background-color: var(--light-bg-color);
}
.messages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.message-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.message-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 20px;
}
.message-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}
.message-content p {
    margin-bottom: 15px;
    color: var(--light-text-color);
}
.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}
.btn-read-more:hover {
    color: var(--secondary-color);
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    background-color: var(--white-color);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px;
}
.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    color: var(--primary-color);
}
.feature-card p {
    color: var(--light-text-color);
}


/* --- Departments Section --- */
.departments-section {
    background-color: var(--light-bg-color);
}
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}
.department-card {
    background-color: var(--white-color);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.department-card:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}
.department-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
.department-card span {
    font-weight: 700;
}

/* --- Notice & Events Section --- */
.notice-events-section {
    background-color: var(--white-color);
}
.notice-events-section h2 {
    text-align: left;
    margin-bottom: 2rem;
}
.notice-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.event-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text-color);
    margin-bottom: 20px;
    background-color: var(--light-bg-color);
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.event-item:hover {
    background-color: #e1f0eb;
}
.event-date {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-family: var(--heading-font);
    margin-right: 15px;
    line-height: 1.2;
}
.event-date span {
    font-size: 1.5rem;
    display: block;
}
.event-title {
    font-weight: 700;
}
.notice-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: var(--heading-font);
    cursor: pointer;
    color: var(--light-text-color);
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content ul {
    list-style: none;
}
.tab-content li {
    padding: 12px 0;
    border-bottom: 1px dotted #ccc;
}
.tab-content li a {
    text-decoration: none;
    color: var(--dark-text-color);
    transition: color 0.3s;
}
.tab-content li a:hover {
    color: var(--primary-color);
}

/* --- Quick Links Section --- */
.quick-links-section {
    background-color: var(--light-bg-color);
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}
.quick-link-item {
    text-decoration: none;
    color: var(--dark-text-color);
    text-align: center;
}
.quick-link-item .icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary-color);
    border: 2px solid var(--white-color);
    transition: all 0.3s ease;
}
.quick-link-item:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}
.quick-link-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* --- Collaboration Section --- */
.collaboration-section {
    padding: 60px 0;
    background-color: var(--white-color);
}
.collaboration-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.collaboration-grid img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.collaboration-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Footer --- */
.main-footer {
    background: var(--dark-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--secondary-color);
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-footer-bg);
    background-color: var(--white-color);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}
.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .top-bar { display: none; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .messages-grid, .news-grid, .life-grid, .feature-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .notice-events-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }
    .main-nav.active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    .main-nav.active .nav-links > li {
        margin: 0;
        width: 100%;
    }
    .main-nav.active .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    .submenu {
        display: none; /* Hide by default on mobile */
        position: static;
        box-shadow: none;
        padding-left: 20px;
        border-radius: 0;
        background-color: var(--light-bg-color);
    }
    .submenu.open {
        display: block; /* Show on click */
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }
    .slider-section { height: 400px; }
    .footer-grid { grid-template-columns: repeat(1, 1fr); text-align: center; }
    .footer-column ul { padding-left: 0; }
    .message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .message-card img {
        width: 100px;
        height: 100px;
    }
}
