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

:root {
    --primary-color: #037039;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    max-width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    flex-shrink: 0;
    width: auto;
    max-width: 100%;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

.org-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

nav {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    position: relative;
}

.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-dark);
    margin-left: 4px;
    transition: transform 0.3s ease, border-top-color 0.3s;
    transform: rotate(0deg);
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
    border-top-color: var(--primary-color);
}

nav a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 250px;
    display: none;
    padding: 15px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    border-radius: 8px;
}

/* Right-align dropdown for the last menu item */
nav > ul > li:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

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

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    order: 2;
}

/* Notification Bar */
.notification-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.notification-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
    padding-left: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.notification-bar p {
    display: inline-block;
    margin: 0 50px;
}

/* Image Slider */
.slider-wrapper {
    width: 100%;
    margin: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.slider-dot.active {
    background-color: var(--white);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(3,112,57,0.7);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.content-section {
    background-color: var(--white);
}

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

.content-section p {
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: justify;
}

/* President Preview Section */
.president-preview {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.president-preview-image {
    flex-shrink: 0;
    width: 250px;
}

.president-preview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.president-preview-content {
    flex: 1;
}

.president-preview-content h2 {
    margin-bottom: 15px;
}

.president-preview-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.read-more-btn:hover {
    background-color: #025a2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3,112,57,0.3);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.youtube-video {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Activities Slider */
.activities-slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.activities-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.activities-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

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

.activity-image:hover {
    transform: scale(1.05);
}

.activities-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(3,112,57,0.7);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
    z-index: 10;
}

.activities-arrow.hidden {
    display: none;
}

.activities-arrow:hover {
    background-color: var(--primary-color);
}

.activities-prev {
    left: 10px;
}

.activities-next {
    right: 10px;
}

.activities-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.activities-dot.active {
    background-color: var(--white);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto;
    display: block;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ccc;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(3,112,57,0.7);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 30px;
    transition: background-color 0.3s;
    z-index: 10001;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: var(--primary-color);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* News Section */
.news-section {
    margin: 40px 0;
}

.news-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.news-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.news-card-content {
    padding: 20px;
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-card .date {
    color: var(--text-light);
    font-size: 12px;
    font-style: italic;
}

.news-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

.news-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-media a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-media a:hover {
    background-color: rgba(255,255,255,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Page Content */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

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

.page-content {
    margin: 30px 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box p {
    margin-bottom: 10px;
}

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

.info-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f9f9f9;
}

.team-member-info {
    padding: 20px;
}

.team-member-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.team-member-info .title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Message Page */
.message-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin: 30px 0;
}

.message-image {
    text-align: center;
}

.message-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.message-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-light);
}

/* Download Links */
.download-list {
    list-style: none;
    margin: 30px 0;
}

.download-list li {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-list a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    nav ul {
        gap: 15px;
    }
    
    nav a {
        padding: 10px 10px;
        font-size: 14px;
    }
    
    .org-name {
        font-size: 14px;
    }
    
    /* Right-align dropdown for last two menu items on medium screens */
    nav > ul > li:nth-last-child(-n+2) .dropdown-menu {
        left: auto;
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 15px;
        justify-content: space-between;
    }

    .logo {
        height: 50px;
        order: 1;
        flex-wrap: wrap;
        gap: 8px;
    }

    .org-name {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
        max-width: 200px;
    }

    nav {
        order: 2;
        display: flex;
        justify-content: flex-end;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px;
        gap: 0;
    }

    nav ul.active {
        display: flex;
    }

    nav > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav > ul > li:last-child {
        border-bottom: none;
    }

    nav > ul > li > a {
        padding: 15px 10px;
        width: 100%;
    }

    .dropdown > a::after {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        background-color: #f9f9f9;
        padding-left: 20px;
        border-left: 3px solid var(--primary-color);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .president-preview {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .president-preview-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .message-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .message-image img {
        max-width: 100%;
    }

    .slider-container {
        height: calc(100vh - 150px);
        max-height: 400px;
        min-height: 300px;
    }

    .slider-arrow {
        padding: 10px 15px;
        font-size: 18px;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-header {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .slider-container {
        height: calc(100vh - 120px);
        max-height: 350px;
        min-height: 250px;
    }

    .slider-arrow {
        padding: 8px 12px;
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .news-card-content {
        padding: 15px;
    }

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

    .info-box {
        padding: 15px;
    }

    .info-item {
        padding: 15px;
    }

    .president-preview {
        padding: 15px;
        margin: 30px 0;
    }

    .president-preview-image {
        max-width: 250px;
    }

    .read-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .org-name {
        font-size: 10px;
        max-width: 180px;
    }

    .activities-slider-container {
        height: 200px;
    }

    .activities-arrow {
        padding: 8px 12px;
        font-size: 16px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .modal-prev,
    .modal-next {
        padding: 10px 15px;
        font-size: 24px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

