/* =========================================
   GLOBAL STYLES & RESET
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   DOCUMENT SECTION
   ========================================= */

.document-section{
    margin-top: 70px;
}

@media (max-width: 768px) {
    .document-section{
        margin-top: 5px !important;
    }
}

/* =========================================
   TOP BAR SECTION
   ========================================= */
.top-bar {
    background-color: #002147;
    color: white;
    padding: 10px 0 15px;
    width: 100%;
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
}
/* Mobile - navbar fixed at top with no scroll effects */
@media (max-width: 768px) {
    .navbar-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000;
        transition: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove any scroll-related classes effects on mobile */
    .navbar-container.navbar-scrolled,
    .navbar-container.navbar-scrolled-mobile {
        top: 0 !important;
        transform: none !important;
    }

    /* Body offset for mobile */
    body {
        padding-top: 50px !important;
    }
}

/* Mobile carousel */
@media (max-width: 768px) {
    .carousel-item img {
        height: 70vh; /* Shorter on mobile */
    }
}

/* Mobile school name */
@media (max-width: 768px) {
    .school-name {
        font-size: 14px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 10px !important; /* Reduced padding for closer to edges */
        left: 0 !important;
        right: 0 !important;
    }

    /* Logo section positioning */
    .logo-section {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Logo container - positioned to the left */
    .logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        margin-left: 0 !important; /* Close to left edge */
        flex-shrink: 0 !important;
        padding: 5px !important;
    }

    /* Navbar toggler - positioned to the right */
    .navbar-toggler {
        margin-right: 0 !important; /* Close to right edge */
        padding: 4px 8px !important;
        border: none !important;
        background: none !important;
        flex-shrink: 0 !important;
    }

    /* Ensure container-fluid takes full width */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .navbar-collapse {
        background: white;
        border-radius: 0 !important; /* Remove radius */
        margin-top: 10px;
        margin-left: -10px !important; /* Extend to full width */
        margin-right: -10px !important; /* Extend to full width */
        padding: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        width: 100vw !important; /* Full viewport width */
        position: relative;
        left: 0;
        right: 0;
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Additional styles for better spacing */
@media (max-width: 768px) {
    /* Logo image sizing */
    .logo-img {
        width: 28px !important;
        height: auto !important;
    }

    /* School name text */
    .school-name {
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
    }

    /* Navbar toggler icon */
    .navbar-toggler-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
}

.top-bar .social-icons span {
    margin-right: 15px;
    font-weight: 400;
    font-size: 15px;
}

.top-bar .social-icons a {
    color: white;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.top-bar .social-icons .social-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .social-icons .facebook {
    color: #6201FF;
}

.top-bar .social-icons .instagram {
    color: #FF00B7;
}

.top-bar .social-icons .youtube {
    color: #CE0000;
}

.top-bar .contact-info,
.top-bar .location-info {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 15px;
}

.contact-wrapper {
    display: flex;
    gap: 100px;
}

.top-bar .contact-info i,
.top-bar .location-info i {
    margin-right: 8px;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section {
    padding: 65px 0;
}

@media (max-width: 992px) {
    .contact-section {
        padding: 5px !important;
    }
}

/* =========================================
   NAVBAR SECTION
   ========================================= */
.navbar-container {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    z-index: 100;
    margin-top: 40px;
}

.navbar {
    background-color: #0091C4;
    padding: 0;
    border-radius: 5px;
    width: 85%;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: auto;
    margin-right: 20px;
}

.school-name {
    color: white;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.navbar .container-fluid {
    padding: 0;
}

.navbar-scrolled {
    margin-top: 10px;
}

.navbar-nav {
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: white !important;
    padding: 10px 10px !important;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* =========================================
   CAROUSEL/SLIDER SECTION
   ========================================= */
.slider_img {
    position: relative;
    height: 93.5vh;
    overflow: hidden;
    margin-top: 0;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
}

.slider_title h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s both;
}

.slider_title h4 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s both;
    animation-delay: 0.3s;
}

.slider-btn {
    animation: fadeIn 1s both;
    animation-delay: 0.6s;
}

.slider-btn .btn {
    background-color: #0091C4;
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.slider-btn .btn:hover {
    background-color: #002147;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 76, 99, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    margin: 0 20px;
    text-decoration: none;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 145, 196, 0.8);
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    list-style: none;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 1200px) {
    .top-bar .container {
        flex-direction: row;
    }

    .contact-wrapper {
        margin: 0 20px;
    }

    .nav-link {
        font-size: 16px;
        padding: 15px 10px !important;
    }

    .slider_title h1 {
        font-size: 42px;
    }

    .slider_title h4 {
        font-size: 20px;
    }

    .navbar {
        width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .top-bar .container {
        flex-direction: row;
        text-align: center;
        gap: 15px;
    }

    .top-bar .social-icons,
    .contact-wrapper,
    .top-bar .location-info {
        justify-content: center;
        margin-bottom: 10px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .navbar {
        width: 98%;
        border-radius: 20px;
        margin: 0 auto;
    }

    .logo-section {
        width: 100%;
        justify-content: space-between;
    }

    .school-name {
        font-size: 20px;
    }

    .navbar-collapse {
        background-color: #0091C4;
        padding: 10px;
        border-radius: 0 0 20px 20px;
    }

    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.5);
    }

    .nav-link {
        text-align: left;
    }

    .top-bar .location-info,
    .top-bar .contact-wrapper .contact-info:not(:first-child) {
        display: none;
    }

    .top-bar .social-icons {
        order: 1;
        margin-right: auto;
    }

    .contact-wrapper {
        flex-direction: row;
        order: 2;
    }

    .slider_img {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .slider_title h1 {
        font-size: 36px;
    }

    .slider_title h4 {
        font-size: 18px;
    }

    .slider_img {
        height: 60vh;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 10px 0;
    }

    .top-bar .social-icons .social-icon {
        width: 20px;
        height: 20px;
    }

    .top-bar .social-icons span,
    .top-bar .contact-info,
    .top-bar .location-info {
        font-size: 10px;
    }

    .top-bar .contact-info i {
        width: 20px;
        height: 20px;
    }

    .logo-img {
        width: 60px;
    }

    .school-name {
        font-size: 16px;
    }

    .slider_img {
        height: 50vh;
    }

    .slider_title h1 {
        font-size: 28px;
    }

    .slider_title h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .navbar {
        width: 98%;
        border-radius: 15px;
        margin: 0 auto;
    }

    .navbar-collapse {
        border-radius: 0 0 15px 15px;
    }

    .top-bar .location-info,
    .top-bar .contact-wrapper .contact-info:not(:first-child) {
        display: none;
    }

    .top-bar .social-icons {
        order: 1;
        margin-right: auto;
    }

    .contact-wrapper {
        flex-direction: row;
        order: 2;
    }

    .navbar-container {
        margin-top: 40px;
        transition: margin-top 0.3s ease;
    }

    .navbar-container.navbar-scrolled-mobile {
        margin-top: 5px;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 30px;
        height: 30px;
        margin: 0 10px;
    }
}

/* For very small devices */
@media (max-width: 375px) {
    .slider_img {
        height: 40vh;
    }

    .slider_title h1 {
        font-size: 24px;
    }
}

/* =========================================
   TEACHER CARDS SECTION
   ========================================= */
.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 800;
    color: #002147;
}

.teachers-section{
    margin-top: 70px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0091C4;
    border-radius: 2px;
}

.teacher-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 33, 71, 0.15);
}

.teacher-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 120%;
    overflow: hidden;
    background-color: #f0f2f5;
}

.teacher-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
    background-color: white;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 0.5rem;
}

.teacher-hidden {
    display: none !important;
}

.teacher-subject {
    color: #0091C4;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.teacher-subject i {
    margin-right: 8px;
    font-size: 16px;
}

.teacher-divider {
    width: 50px;
    height: 3px;
    background-color: #0091C4;
    margin: 15px auto;
    opacity: 0.7;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .teacher-info {
        padding: 1.2rem;
    }

    .teachers-section{
    margin-top: 5px !important;
}
}

@media (max-width: 768px) {
    .teacher-img-container {
        padding-top: 100%;
    }
}

@media (max-width: 576px) {
    .teacher-name {
        font-size: 1.1rem;
    }

    .teacher-subject {
        font-size: 0.9rem;
    }
}

/* =========================================
   NEWS CARDS SECTION
   ========================================= */
.news-section {
    background-color: transparent;
    padding: 0;
}

.news-card {
    border: none;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    margin-bottom: 25px;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 60%;
    overflow: hidden;
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-info {
    padding: 1.5rem;
    background-color: white;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #002147;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.news-excerpt {
    color: #555;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8em;
}

.news-divider {
    width: 50px;
    height: 3px;
    background-color: #0091C4;
    margin: 15px 0;
    opacity: 0.7;
    border-radius: 2px;
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.news-meta i {
    margin-right: 5px;
    color: #0091C4;
}

/* =========================================
   SIDEBAR SECTION
   ========================================= */
.sidebar-container {
    position: sticky;
}

.sidebar-box {
    padding: 1.5rem;
    margin-bottom: 25px;
}

.sidebar-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 700;
    color: #002147;
    font-size: 1.5rem;
}

/* Search Box */
.search-box .form-control {
    border: 1px solid #e0e0e0;
}

.search-box .btn-primary {
    background-color: #0091C4;
    border-color: #0091C4;
    border-radius: 0 8px 8px 0;
}

.search-box .btn-primary:hover {
    background-color: #002147;
    border-color: #002147;
}

/* Category List */
.kategori-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.kategori-item:last-child {
    border-bottom: none;
}

.kategori-item:hover {
    padding-left: 5px;
    color: #0091C4;
}

.kategori-name {
    font-weight: 500;
}

.badge {
    background-color: #0091C4;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Popular News Items */
.popular-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-item:hover .popular-image img {
    transform: scale(1.05);
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    color: #002147;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.popular-meta {
    font-size: 12px;
    color: #666;
}

.popular-meta i {
    margin-right: 5px;
    color: #0091C4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-info {
        padding: 1.2rem;
    }

    .sidebar-container {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .news-img-container {
        padding-top: 56.25%;
    }

    .news-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .news-meta {
        flex-direction: row;
        align-items: flex-start;
    }

    .news-meta span:first-child {
        margin-bottom: 5px;
    }
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.footer {
    background-color: #0091C4;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.3) 0%, rgba(0, 33, 71, 0) 70%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* School Info Styles */
.footer h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Quick Links Styles */
.footer ul {
    margin-bottom: 0;
}

.footer .list-unstyled li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .list-unstyled li a:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer .fas.fa-chevron-right {
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer .list-unstyled li a:hover .fas.fa-chevron-right {
    transform: translateX(3px);
}

/* Contact Info Styles */
.footer .bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .list-unstyled li:hover .bg-white-10 {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Copyright Section */
.footer .copyright {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-links a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background-color: #002147;
    transform: translateY(-3px);
}

.footer .social-links a .fab {
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer {
        text-align: start;
    }

    .footer .d-flex {
        justify-content: start;
    }

    .footer .list-unstyled li a:hover {
        transform: translateX(0);
    }

    .footer .social-links {
        margin-top: 15px;
    }

    .footer .copyright .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer h3 {
        font-size: 1.3rem;
    }

    .footer h5 {
        font-size: 1rem;
    }

    .footer .col-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer .social-links a {
        width: 30px;
        height: 30px;
    }

    .footer .social-links a .fab {
        font-size: 14px;
    }
}

/* =========================================
   WELCOME SECTION
   ========================================= */
.welcome-section {
    padding: 60px 0;
    background-color: #fff;
}

.welcome-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.welcome-header h2 span.text-primary {
    color: #3498db;
}

.welcome-divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-divider .line {
    height: 2px;
    width: 350px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.welcome-divider .icon {
    margin: 0 15px;
    color: #3498db;
    font-size: 24px;
}

.welcome-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.welcome-image-container {
    display: flex;
    justify-content: center;
}

.welcome-image {
    border: 5px solid #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* =========================================
   NEWS SECTION
   ========================================= */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.section-title-news {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #003366;
    margin: 0;
}

.view-all {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: #3498db;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item .news-title {
    color: #333;
    transition: color 0.3s ease;
}
a:hover .news-title {
    color: #0d6efd !important;
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 14px;
    color: #777;
    margin-right: 15px;
    display: inline-block;
}

.news-category {
    display: inline-block;
    font-size: 13px;
    color: #3498db;
    font-weight: 600;
}

mark {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

.related-searches .btn {
    font-size: 0.8rem;
}

.search-box small {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .news-section{
        padding-top: 5px !important;
    }
}

/* =========================================
   NEWS DETAIL SECTION
   ========================================= */
.news-hero-section {
    position: relative;
    height: 93.5vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-default-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 5;
    color: white;
    padding-bottom: 15%;
    width: 100%;
}

.hero-content-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.hero-date-box {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    min-width: 60px;
    flex-shrink: 0;
}

.date-number {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 1px;
}

.hero-text-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-meta {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.meta-separator {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #495057;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.news-content-section {
    padding: 1.5rem 0;
    background: white;
}

.news-content {
    margin-bottom: 0;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.social-share {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.btn-twitter { background: #1da1f2; border-color: #1da1f2; color: white; }
.btn-facebook { background: #4267b2; border-color: #4267b2; color: white; }
.btn-linkedin { background: #0077b5; border-color: #0077b5; color: white; }
.btn-telegram { background: #0a4275; border-color: #0a4275; color: white; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: white; }
.btn-email { background: #f39c12; border-color: #f39c12; color: white; }

.social-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

@media (max-width: 992px) {
    .news-hero-section {
        margin-top: 70px;
    }
}

@media (max-width: 768px) {
    .news-hero-section {
        height: 70vh;
        min-height: 400px;
        margin-top: 0 !important;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding-bottom: 0;
        display: flex;
        align-items: center;
        min-height: 100%;
    }

    .hero-content-wrapper {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-text-content {
        text-align: start;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .hero-meta {
        font-size: 16px;
        font-weight: 600;
    }

    .meta-separator {
        margin: 0 15px;
    }
}

@media (max-width: 576px) {
    .news-hero-section {
        margin-top: 50px;
        height: 60vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-meta {
        font-size: 14px;
    }

    .meta-separator {
        margin: 0 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}

/* Very small mobile screens */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-meta {
        font-size: 13px;
    }
}

.hero-with-fixed-nav {
    padding-top: 100px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.news-content img.align-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.news-content img.align-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.news-content img.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.news-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .news-content img.align-left,
    .news-content img.align-right {
        max-width: 100%;
        float: none;
        margin: 1rem auto;
        display: block;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    position: relative;
    top: 0;
    overflow: hidden;
    margin-top: 0;
}

.background-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Fallback background */
}

.background-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.8; /* Membuat image sedikit transparan untuk readability */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.7) 0%,
        rgba(42, 82, 152, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
    margin-top: 10vh;
}

.description {
    font-size: 18px;
    line-height: 1.8;
    word-wrap: break-word;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 900px;
    margin-bottom: 40px;
}

.statistics-section {
        background: #f8f9fa;
    }

    .statistics-section .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .statistics-section .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }

    @media (max-width: 768px) {
        .statistics-section .card-body {
            padding: 1.5rem !important;
        }

        .statistics-section .display-6 {
            font-size: 2rem;
        }
    }

/* =========================================
   TESTIMONIAL SECTION
   ========================================= */
.testimonial-section {
    width: 100%;
    padding-bottom: 10px;
    text-align: center;
    background-color: #f8f9fa;
    position: relative;
}

.testimonial-heading {
    font-size: 32px;
    margin-bottom: 40px;
    margin-top: 0;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #333;
}

/* Carousel Container */
.testimonial-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Removed shadow from testimonial cards */
.testimonial-card {
    min-width: 100%;
    box-sizing: border-box;
    background-color: rgba(100, 181, 246, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    margin: 0;
    transition: transform 0.3s ease;
    border: 1px solid #c4edff;
}

.testimonial-card:hover {
    transform: scale(1.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.alumni-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #e9ecef;
}

.alumni-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 18px;
    color: #333;
}

.alumni-year {
    color: #777;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #7B68EE;
}

/* Responsive Styles */
/* Tablet and Medium Devices */
@media (max-width: 992px) {
    .title {
        font-size: 36px;
    }

    .description {
        font-size: 16px;
    }

    .background-image {
        width: 180%;
    }

    .testimonial-heading {
        font-size: 28px;
    }

    .testimonial-card {
        padding: 35px 25px;
    }

    .testimonial-text {
        font-size: 17px;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
    .about-section {
        position: relative;
        top: 0;
        overflow: hidden;
        margin-top: 0;
    }

    .title {
        font-size: 32px;
        margin-bottom: 20px;
        margin-top: 0 !important;
    }

    .description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px !important;
    }

    .content {
        padding: 20px 15px;
    }

    .testimonial-heading {
        margin-top: 8vh !important;
        margin-bottom: 30px;
        font-size: 26px;
    }

    .testimonial-container {
        padding: 0;
        width: 100%;
    }

    .testimonial-card {
        width: 100%;
        flex: 0 0 100%;
        padding: 20px;
        margin: 0;
    }

    .testimonial-text {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .alumni-img {
        width: 70px;
        height: 70px;
    }

    .alumni-name {
        font-size: 16px;
    }

    .alumni-year {
        font-size: 13px;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 576px) {
    .about-section {
        position: relative;
        top: 0;
        overflow: hidden;
        margin-top: 0;
    }

    .title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .description {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px !important;
    }

    .content {
        padding: 10px;
        width: 95%;
        margin-top: 0;
        height: auto;
    }

    .background-image {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .testimonial-section {
        padding: 0 0 60px;
    }

    .testimonial-heading {
        margin-top: 5vh !important;
        font-size: 22px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .testimonial-container {
        padding: 0;
        width: 100%;
    }

    .testimonial-card {
        width: 100%;
        flex: 0 0 100%;
        padding: 20px 15px;
        margin: 0;
        border-radius: 0;
        border: none;
    }

    .testimonial-text {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.6;
        text-align: left;
    }

    .alumni-img {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .alumni-name {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .alumni-year {
        font-size: 12px;
    }

    .pagination {
        margin-top: 25px;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Extra extra small devices */
@media (max-width: 320px) {
    .title {
        font-size: 22px;
    }

    .description {
        font-size: 13px;
    }

    .background-image {
        width: 320%;
    }

    .testimonial-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .testimonial-card {
        padding: 15px 12px;
        width: 100%;
        flex: 0 0 100%;
    }

    .testimonial-text {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .alumni-img {
        width: 50px;
        height: 50px;
    }

    .alumni-name {
        font-size: 14px;
    }

    .alumni-year {
        font-size: 11px;
    }
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */
.student-whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.student-whatsapp-button:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}

.student-whatsapp-button .student-image {
    width: 210px;
    height: auto;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .student-whatsapp-button .student-image {
        width: 130px;
    }

    .student-whatsapp-button{
        margin-right: -20px;
    }
}

/* =========================================
   INFORMASI SECTION
   ========================================= */
.nav-link-informasi {
    color: dark !important;
    padding: 10px 10px !important;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
}

.nav-link-informasi:hover,
.nav-link-informasi.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.informasi-wrapper {
    padding-top: 3rem;
    margin-top: 1rem;
}

.informasi-wrapper > .container {
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 20px;
}

.informasi-wrapper h2.section-title {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    margin: 15px 0 8px 0;
}

.informasi-wrapper p.subtitle {
    font-size: 20px;
    color: #4a4a4a;
    text-align: center;
    margin: 0 0 32px 0;
}

/* Custom style untuk nav tabs */
.informasi-wrapper .nav-tabs {
    border-bottom: none;
    justify-content: end;
}

.informasi-wrapper .nav-tabs .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 0.75rem 2rem;
    position: relative;
}

.informasi-wrapper .nav-tabs .nav-link.active {
    color: #0a4275;
    background-color: transparent;
    border-bottom: 3px solid #0a4275;
}

.informasi-wrapper .nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #0a4275;
}

/* Style untuk item pengumuman dan agenda */
.pengumuman-informasi, .agenda-informasi {
    display: flex;
    border: 2px solid #1194D0;
    border-radius: 16px;
    box-shadow: -10px -5px 2px 2px rgba(59, 130, 246, 0.5);
    margin-bottom: 24px;
    overflow: hidden;
}

.content-informasi {
    justify-content: center;
    padding: 10px 20px;
}

.agenda-informasi {
    border-color: #22c55e;
    box-shadow: -10px -5px 2px 2px rgba(34, 197, 94, 0.5);
}

.pengumuman-informasi .date, .agenda-informasi .date {
    width: 200px;
    min-width: 120px;
    flex-shrink: 0;
    border-right: 2px solid #3b82f6;
    border-radius: 16px 0 0 16px;
    color: #3b82f6;
    font-family: monospace;
    font-size: 20px;
    line-height: 1.2;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.agenda-informasi .date {
    border-right-color: #22c55e;
    color: #22c55e;
}

.pengumuman-informasi .date span,
.agenda-informasi .date span {
    display: block;
}

.pengumuman-informasi .date .line1,
.pengumuman-informasi .date .line2,
.agenda-informasi .date .line1,
.agenda-informasi .date .line2 {
    font-size: 24px;
    line-height: 0.8;
    margin-top: 6px;
    user-select: none;
}

.pengumuman-informasi .date .line2,
.agenda-informasi .date .line2 {
    transform: rotate(180deg);
}

.pengumuman-informasi .content, .agenda-informasi .content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 16px 20px;
    color: #333333;
    font-size: 12px;
    line-height: 1.3;
}

.pengumuman-informasi .content strong, .agenda-informasi .content strong {
    white-space: normal;
    word-wrap: break-word;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 20px;
}

#dynamic-title {
    font-weight: 700;
}

/* Responsive khusus untuk pengumuman dan agenda */
@media (max-width: 480px) {
    .informasi-wrapper {
        padding: 0 !important;
        margin-top: 5px !important;
    }

    #dynamic-title {
        font-size: 20px;
    }

    #pengumuman-tab, #agenda-tab {
        font-size: 12px;
        margin-right: 1px !important;
    }

    .nav-link-informasi {
        padding: 6px 8px !important;
    }

    .pengumuman-informasi,
    .agenda-informasi {
        flex-direction: column;
    }

    .pengumuman-informasi .date,
    .agenda-informasi .date {
        border-right: none;
        border-bottom: 2px solid #3b82f6;
        border-radius: 16px 16px 0 0;
        min-width: auto;
        padding: 12px 0;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .agenda-informasi .date {
        border-bottom-color: #22c55e;
    }

    .pengumuman-informasi .date .line1,
    .pengumuman-informasi .date .line2,
    .agenda-informasi .date .line1,
    .agenda-informasi .date .line2 {
        margin-top: 0;
        font-size: 18px;
    }

    .pengumuman-informasi .content,
    .agenda-informasi .content {
        padding: 12px 16px;
    }

    .informasi-wrapper .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.photo-gallery-unique * {
    box-sizing: border-box;
}

.photo-gallery-unique {
    margin: 0 auto;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: auto;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    flex-direction: column;
    align-items: center;
    color: #04063c;
    max-width: 1000px;
    width: 100%;
}

.gallery-title {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 30px;
}

.gallery-subtitle {
    font-size: 20px;
    text-align: center;
    color: #666;
    margin-bottom: 32px;
}

.underline-blue {
    width: 100px;
    height: 4px;
    background-color: #42a4c5;
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.photo-gallery-unique .gallery-item img {
    width: 100%;
    aspect-ratio: 564 / 408;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    filter: brightness(0.98);
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* Gallery container with 2 columns */
.photo-gallery-unique .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

/* On very small screens show single column */
@media (max-width: 450px) {
    .photo-gallery-unique .gallery {
        grid-template-columns: 1fr;
    }

    .photo-gallery-unique{
        margin-top: 5px !important;
        padding-top: 0 !important;
    }

    .gallery-title{
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .photo-gallery-unique{
        margin-top: 5px !important;
        padding-top: 0 !important;
    }
}

/* Individual gallery items */
.photo-gallery-unique .gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    box-shadow:
        0 4px 12px rgba(117, 117, 117, 0.3),
        inset 0 0 15px rgba(0, 142, 76, 0.2);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
    background: linear-gradient(145deg, #e6f0ff, #cbdffb);
    user-select: none;
}
.photo-gallery-unique .gallery-item:hover,
.photo-gallery-unique .gallery-item:focus-within {
    transform: scale(1.04);
    box-shadow:
        0 0 20px #eeeff0,
        0 0 40px #eaecef,
        inset 0 0 30px #003B8E;
    z-index: 10;
}
.photo-gallery-unique .gallery-item img {
    width: 100%;
    border-radius: 20px;
    display: block;
    filter: brightness(0.98);
    transition: filter 0.3s ease;
    pointer-events: none;
}
.photo-gallery-unique .gallery-item:hover img {
    filter: brightness(1);
}

/* overlay with icon */
.photo-gallery-unique .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 59, 142, 0.25);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}
.photo-gallery-unique .gallery-item:hover .overlay,
.photo-gallery-unique .gallery-item:focus-within .overlay {
    opacity: 1;
}
.photo-gallery-unique .overlay svg {
    width: 50px;
    height: 50px;
    stroke: #003B8E;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 5px #003B8E);
}

/* Caption style */
.photo-gallery-unique .caption {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow:
        0 0 8px #000000;
    user-select: none;
    pointer-events: none;
}

/* Hidden photos initially */
.photo-gallery-unique .gallery-item.hidden {
    display: none;
}

/* Show More button styles */
.photo-gallery-unique .show-more-btn {
    margin-top: 1.6rem;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    background-color: #003B8E;
    color: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 6px 15px rgba(0,59,142,0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    align-self: center;
    outline-offset: 3px;
    outline-color: transparent;
    outline-style: solid;
}
.photo-gallery-unique .show-more-btn:focus {
    outline-color: #003B8E;
}
.photo-gallery-unique .show-more-btn:hover {
    background-color: #1377b6;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.6);
}

/* Modal styles */
.photo-gallery-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(227, 228, 230, 0.3);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
    overflow: hidden;
    user-select: none;
}
.photo-gallery-modal.open {
    display: flex;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.photo-gallery-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 25px;
    box-shadow:
        0 0 30px #eff0f1;
    overflow: hidden;
    background: linear-gradient(145deg, #dceaff, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: text;
}

.photo-gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 25px 25px 0 0;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 12px #ffffff);
    transition: transform 0.4s ease;
}
.photo-gallery-modal-caption {
    padding: 1rem 2rem;
    color: #003B8E;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    text-shadow:
        0 0 8px #c4d1e6;
    user-select: text;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border-radius: 0 0 25px 25px;
    width: 100%;
}

/* Close button */
.photo-gallery-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #0a2ecf;
    font-size: 2.5rem;
    line-height: 1;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10000;
}
.photo-gallery-close-btn:hover {
    color: #f71818;
}

/* Navigation arrows */
.photo-gallery-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #003B8E;
    text-shadow: 0 0 8px #ffffff;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 59, 142, 0.15);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 10000;
}
.photo-gallery-modal-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}
.photo-gallery-modal-prev {
    left: 20px;
}
.photo-gallery-modal-next {
    right: 20px;
}
@media (max-width: 600px) {
    .photo-gallery-modal-nav {
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
    }
}

/* =========================================
   FEATURE CARDS SECTION
   ========================================= */
.feature-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
}

.feature-header {
    background-color: #00a4da;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.feature-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gallery-preview, .agenda-list, .announcement-list {
    padding: 20px;
}

/* Agenda Styling */
.agenda-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    padding: 8px 14px;
    margin-right: 15px;
    min-width: 60px;
}

.agenda-date .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
}

.agenda-date .month {
    display: block;
    font-size: 14px;
    color: #6c757d;
}

.agenda-content h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.agenda-content p {
    font-size: 14px;
    color: #6c757d;
}

/* Announcement Styling */
.announcement-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.announcement-item h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.announcement-item h5 a {
    color: #0d6efd;
    text-decoration: none;
}

.announcement-item h5 a:hover {
    text-decoration: underline;
}

.announcement-item p {
    font-size: 14px;
    margin-bottom: 0;
}
