/* ========== Top Logo Section ========== */
.header-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    gap: 20px;
}

.logo {
    max-width: 150px;
}

.logotext h1 {
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-family: "Segoe UI";
}

.motto {
    color: green;
    font-family: "Alex Brush", cursive;
    font: bold;
    font-size: 2rem;
    margin-top: 5px;
}

/* ========== Navigation Bar ========== */
.navbar {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-left: 150px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.nav-list li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 1.3em;
    padding: 10px 5px;
    font-family: "Segoe UI";
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    height: 2px;
    width: 0%;
    background-color: rgb(80, 155, 80);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: rgb(80, 155, 80);
}

.nav-list li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-list li a {
        font-size: 1.1em;
        padding: 8px 0;
    }
}


/* ========== Slider ========== */
.slider-container {
    position: relative;
    overflow: hidden;
    width: auto;
    max-width: auto;
    height: auto;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    width: auto;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    user-select: none;
    z-index: 2;
}
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.prev {
    left: 15px;
}
.next {
    right: 15px;
}

/* ===== Responsive Fix ===== */
@media (max-width: 768px) {
    .slider-container {
        width: 100%;
        padding: 0 1px;
    }

    .slider {
        flex-direction: row;
        width: 100%;
    }

    .slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .prev,
    .next {
        padding: 10px;
        font-size: 18px;
    }
}


/* ================== CARDS ========== */
.card-container.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    margin-top: 20px;
    margin-right: 10px;
}

.card {
    flex: 1 1 calc(20% - 20px);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 120px 10px;
    border-radius: 90%;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.card:hover {
    transform: translateY(-18px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card i {
    font-size: 40px;
    margin-bottom: 20px;
}

.card span {
    font-family: "Segoe UI";
    font-size: 1.7em;
    font-weight: 600px;
    text-align: center;
}

.card img.logo {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
}

.purple {
    background-color: #1e3a8a;
}
.orange {
    background-color: #0d9488;
}
.olive {
    background-color: #4b0082;
}
.red {
    background-color: #334155;
}

/* ========== Notice Bar ========== */
.notice-bar {
    width: auto;
    overflow: hidden;
    background-color: rgb(96, 165, 96);
    color: white;
    height: 20px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 10px;
    font-family: 'Segoe UI';
}

.notice-text {
    display: inline;
    white-space: nowrap;
    animation: slideLeft 20s ease-in infinite;
    padding: 400px;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========== Welcome Message ========== */
.Welcome-message {
    background-color: #e8fee7;
    padding: 10px 20px;
    animation: fadeInUp 2s ease-out both;
}

.w-title {
    text-align: center;
    font-size: 2.7rem;
    color: #004d00;
    font-family: "Segoe UI";
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.welcome-moto {
    font-family: 'Segoe UI';
    font-style: italic;
    text-align: center;
    color: #003002;
    font-size: 1.5rem;
    margin-top: 2px;
    padding: 10px 30px;
    border: 6px solid #fff;
    background-color: #fff;
    border-radius: 2px;
    margin: 0 auto 20px auto; 
    text-transform: uppercase;
    max-width: 90%; 
    box-sizing: border-box;
}

.Welcome-txt {
    font-family: 'Segoe UI';
    text-align: center;
    font-size: 1.2rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
}

/* Fade animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
    .w-title {
        font-size: 2rem;
    }

    .welcome-moto {
        font-size: 1.1rem;
        padding: 8px 20px;
        max-width: 95%;
    }

    .Welcome-txt {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* ========== Principal Message ========== */
.principal-message-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e8fee7;
    padding: 80px 30px;
    gap: 60px;
    flex-wrap: wrap;
}

.principal-text-content {
    max-width: 700px;
    font-family: "Segoe UI";
    color: #2e7d32;
}

.principal-text-content h2 {
    font-family: 'Segoe UI';
    font-size: 2.7rem;
    color: #004d00;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: left;
    text-transform: uppercase;
}

.bismillah {
    color: #388e3c;
    font-family: 'Segoe UI';
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.principal-text-content p {
    font-size: 1.2rem;
    font-family: 'Segoe UI';
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
    color: #333;
}

.principal-image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.principal-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 12px solid #006904;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.principal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-name-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003002;
    color: #ffffff;
    font-family: 'Segoe UI';
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== Position Holders ========== */
.positionholder-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.sectionposition-title {
    font-size: 2.2rem;
    font-family: 'Segoe UI';
    background-color: #004d00;
    color: #ffd900;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 40px auto 30px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.positionholder-section .positionholder-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.positionholder-section .card {
    width: 10px;
    height: 400px;
    perspective: 1000px;
    border-radius: 20%;
    background-color: #e8fee7;
}

.positionholder-section .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    border-radius: 1.6rem;
}

.positionholder-section .card:hover .card-inner {
    transform: rotateY(180deg);
}

.positionholder-section .card-front,
.positionholder-section .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.positionholder-section .card-front {
    background-color: #004d00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.positionholder-section .card-back {
    background: linear-gradient(135deg, #006e00, #004d00);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.positionholder-section .positionholder-image {
    width: 100%;
    height: 360px;
    object-fit: contain;
    border-radius: 1rem 1rem 0 0;
}

.positionholder-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    margin-right: 40px;
}

.position-rank {
    font-size: 2.5rem;
    font-weight: bold;
    color: gold;
    text-shadow: 1px 1px 2px #222;
    margin-bottom: 12px;
    font-family:'Segoe UI';
}

.positionholder-btn {
    background-color: #004d00;
    color: white;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family:'Segoe UI';
}

.positionholder-btn:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
}

.positionholder-section .card-text {
    padding: 10px 0;
}

.positionholder-section .positionholder-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Segoe UI';
}

.positionholder-section .positionholder-desc {
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 0.8px;
    font-family: 'Segoe UI';
}

/* ========== Divider Icon ========== */
.divider-with-icon {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgb(96, 165, 96);
    margin: 60px 0;
}

.divider-with-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 4px;
    border-radius: 50%;
    border: 2px solid rgb(96, 165, 96);
    width: 36px;
    height: 36px;
    background-image: url("../images/greenribbion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========== News & Announcement ========== */
.news-announcements {
    padding: 40px 20px;
    background-color: #e8fee7;
    text-align: center;
    font-family: 'Segoe UI';
}

.news-title {
    font-size: 2.5rem;
    color: #004d00;
    font-weight: 790;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family:'Segoe UI';
}

.news-subtitle {
    font-size: 1.4rem;
    color: #004d00;
    margin-bottom: 10px;
    font-family: 'Segoe UI';
}

.news-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.news-card {
    background-color: #ffffff;
    border: 2px solid #006400;
    border-radius: 8px;
    padding: 25px;
    width: 300px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 100, 0, 0.1);
    transition: transform 0.3s;
    font-family: 'Segoe UI';
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 100, 0, 0.2);
}

.news-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
}

.news-card-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #006400;
    text-decoration: underline;
    margin-bottom: 3px;
}

.news-meta {
    font-size: 13px;
    color: #444;
    font-style: italic;
    margin-bottom: 2px;
}

.news-date {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ========== Events ========== */
.upcoming-events {
    background-color: #e8fee7;
    text-align: center;
    padding: 40px 10px;
}

.upcoming-events .section-title {
    font-size: 2.5rem;
    color: #004d00;
    font-weight: 790;
    text-transform: uppercase;
    margin-top: 0px;
    margin-bottom: 5px;
    font-family:'Segoe UI';

}

.upcoming-events .section-subtitle {
    font-size: 1.2rem;
    color: #004d00;
    margin-bottom: 40px;
    font-family: 'Segoe UI';
}

.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.event-card {
    position: relative;
    width: 360px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #006400;
    background-color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: scale(1.02);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 100, 0, 0.8);
    color: #fff;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.event-info h3 {
    font-family: 'Segoe UI';
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-info p {
    font-family: 'Segoe UI';
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.details-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: 0.3s ease;
}

.details-btn:hover {
    background-color: #fff;
    color: #006400;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(to right, #4caf50, #2e7d32);
    color: white;
    padding: 60px 20px 20px;
    font-family: "Segoe UI", sans-serif;
    position: relative;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 10px;
    margin-left: 70px;
    background-color: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer .social-icons p {
    font-size: 18px;
    color: white;
    margin-top: 0px;
}

.social-icons {
    display: inline-flex;
    justify-content: right;
    gap: 20px;
    align-items: center;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 16px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 4px;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffeb3b;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #e0f2f1;
}

.footer-post {
    margin-bottom: 16px;
}

.footer-post .post-title {
    font-weight: bold;
    color: #ffffff;
}

.footer-post .post-date {
    font-size: 13px;
    font-family: 'Segoe UI';
    color: #c8e6c9;
}

.footer-col p i {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    background-color: #1b5e20;
    padding: 16px;
    font-size: 14px;
    margin-top: 30px;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1b5e20;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background-color: #004d00;
}

/* =========================
   Responsive Section
   ========================= */

@media (max-width: 1000px) {
    .card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .principal-message-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .principal-text-content h2 {
        text-align: center;
    }
    .principal-name-badge {
        bottom: -10px;
    }
}

@media (max-width: 700px) {
    .positionholder-section .card:hover .card-inner,
    .positionholder-section .card-inner {
        transform: none !important;
    }
    .positionholder-section .card-front,
    .positionholder-section .card-back {
        position: relative;
        backface-visibility: visible;
        transform: none !important;
        box-shadow: none;
    }
    .positionholder-section .card-front {
        background-color: #e0f2e9;
    }
    .positionholder-section .card-back {
        background: #008502;
        color: white;
    }
    .positionholder-section .card-inner {
        display: flex;
        flex-direction: column;
        color: #006400;
    }
}

@media (max-width: 1024px) {
    .positionholder-section .card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .positionholder-section .card {
        width: 80%; /* Reduced width */
        height: 100px; /* Reduced height */
    }
    .positionholder-section .positionholder-image {
        height: 300px; /* Reduced height for the image */
    }
    .positionholder-section .card-back {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .positionholder-section .card {
        width: 90%; /* Reduced width */
        height: 250px; /* Reduced height */
    }
    .positionholder-section .positionholder-image {
        height: 180px; /* Reduced height for the image */
    }
    .positionholder-section .positionholder-name {
        font-size: 1.2rem;
    }
    .positionholder-section .positionholder-desc {
        font-size: 1rem;
    }
    .position-rank {
        font-size: 1.8rem;
    }
    .positionholder-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .positionholder-button-wrapper {
        justify-content: center;
        margin: 20px auto 0;
        padding: 0 20px;
    }
    .positionholder-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .event-card {
        width: 90%;
        height: 380px;
    }
    .event-info h3 {
        font-size: 1rem;
    }
    .event-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .upcoming-events .section-title {
        font-size: 1.5rem;
    }
    .event-card {
        width: 100%;
        height: 350px;
    }
    .event-info {
        padding: 10px;
    }
    .event-info h3 {
        font-size: 0.95rem;
    }
    .event-info p {
        font-size: 0.8rem;
    }
    .details-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-wrapper,
    .call-info,
    .principal-content,
    .positionholder-cards {
        flex-direction: column;
        align-items: center;
    }
    .social-icons {
        flex-direction: row;
        align-items: center;
    }
    .nav-list {
        flex-direction: row;
        gap: 10px;
    }
    .logotext h1,
    .motto {
        margin: 0;
        text-align: center;
    }
    .section-title {
        margin-left: 0;
    }
    .positionholder-image {
        width: 100%;
        height: auto;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
        max-width: 300px;
    }

    .footer-logo img {
        margin-right: 80px;
        width: 70px;
        height: auto;
    }

    .footer-bottom {
        text-align: center;
        padding: 10px 20px;
    }

    .footer-bottom span {
        display: block;
        margin-top: 5px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}
