* {
    font-family: "Padauk", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    line-height: 2.0;
    min-width: 320px;
}

.nav, .nav {
    font-size: 16px;
}

.navbar-brand span {
    font-size: 16px;
}

.logo, footer .logo {
    width: 35px;
    height: 35px;
    margin-right: 5px;
}

.text-white-on-hover:hover {
    color: #fff !important;
}

.mobile-nav .navbar-toggler {
    border: none !important;
    background: transparent !important;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.mobile-nav .navbar-toggler:hover {
    transform: scale(1.1); 
    opacity: 0.8;          
}

.mobile-nav .navbar-toggler:hover,
.mobile-nav .navbar-toggler:focus {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-nav ul {
    gap: 10px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: black;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
    font-size: 16px;
    font-weight: bold;
    padding: 0 10px;
}

/* Create the animated green underline */

.mobile-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #198754;
    transition: width 0.3s ease-in-out;
}

.mobile-nav ul li a:hover::after {
    width: 100%;
}

.mobile-nav ul li a[aria-current="page"]::after {
    width: 100%; 
    transition: none; 
}

.desktop-nav ul li a[aria-current="page"] {
    position: relative;             
    text-decoration: none;           
    display: inline-block;      
}

.desktop-nav ul li a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: -1px;                     
    right: -1px;                     
    bottom: 8px;                     
    height: 1.5px;                  
    background-color: #fff;         
}


/* MAIN */

main {
    overflow-x: hidden;
    background-color: #fff;
    min-height: calc(100vh - 588px);
}


/* GENERAL UTILITY CLASSES */

main p {
    font-size: 16px;
}

main ul, main ol {
    font-size: 16px;
    margin: 10px;
}

main .btn {
    font-size: 14px;
}

main .bg-success-light {
    background-color: #d9ebe9;
}

main p .heading-line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background-color: #198754;
    margin: 0 5px;
    vertical-align: middle;
}

main .underline {
    width: 0;
    height: 2px;
    background-color: #198754;
    border-radius: 2px;
    transition: width 0.8s ease;
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}

main .underline.active {
    width: 200px;
}

main .card {
    position: relative;
    max-width: 400px;
    height: 100%;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
}

main .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

main .card .image-container {
    height: 240px;
    overflow: hidden;
}

main .card .image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 5px;
}

main .card .image-container.no-image {
    display: none;
}

main .expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

main .expand-btn span {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

main .expand-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

main section form .search-input:focus {
    border-color: #28a745; 
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); 
    outline: none;
}

main .article-media {
    width: 100%;        
    max-width: 400px;   
    height: auto;      
    display: block;
    margin: 0 auto;      
}

@media (max-width: 576px) {
    main .article-media {
        max-width: 100%; 
    }
}


/* HERO SECTION */

main .hero-section {
    min-height: 50vh;
    padding: 30px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #f3f4f6 100%);
}

@media (max-height: 750px) {
    main .hero-section {
        min-height: 95vh;
        padding: 0;
    } 
}

main .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .hero-section .image-container {
    position: relative;
    min-height: 400px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

main .hero-section .image-container .main-image {
    min-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 10px; 
    margin: 10px; 
}

main .hero-section .image-container .overlay-image-top {
    top: -15px; 
    right: 5px; 
    height: 70px;
    transform: none; 
    position: absolute;
    width: auto;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid white; 
    z-index: 10;
    padding: 0;
}

main .hero-section .image-container .impact-box {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: -25px; 
    left: 50%; 
    transform: translateX(-50%); 
    text-align: center;
    z-index: 5;
    display: flex;
    gap: 20px;
    align-items: center;
    width: max-content;
}

/* Tablet view */
@media (max-width: 1200px) {
    main .hero-section .image-container {
        min-height: 350px; 
    }

    main .hero-section .image-container .overlay-image-top {
        top: -10px;     
        right: 10px;      
        height: 60px;    
    }
}

main .hero-section .image-container .impact-box .metric-col {
    padding: 0 10px;
}

main .hero-section .image-container .impact-box .metric-col .metric-value {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 0.5;
    margin-top: 5px;
}

main .hero-section .image-container .impact-box .metric-col .metric-label {
    font-size: 14px;
    margin-top: 10px;
    color: #6c757d;
    white-space: nowrap;
    line-height: 1.5;
}

main .hero-section .image-container .impact-box .metric-divider {
    height: 80px;
    width: 1px;
    background-color: #e9ecef;
}

/* ALLIGED ORGANIZATION SECTION */

main .allied-org-section {
    background-color: #fff;
}

main .allied-org-section .scrolling-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

main .allied-org-section .scrolling-wrapper .scrolling-strip {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

main .allied-org-section .scrolling-wrapper:hover .scrolling-strip {
    animation-play-state: paused;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main .allied-org-section .scrolling-wrapper .scrolling-strip .scroll-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px 25px;
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .allied-org-section .scrolling-wrapper .scrolling-strip .scroll-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    border-color: #cfcfcf;
}

main .allied-org-section .scrolling-wrapper .scrolling-strip .scroll-item .allied-org-logo {
    width: 60px;
    margin-right: 5px;
}

main .allied-org-section .scrolling-wrapper .scrolling-strip .scroll-item p {
    font-size: 16px;
    margin: 0;
}


/* ABOUT US SECTION */

main .about-us-section {
    background-color: #f5f5f7;
}

main .about-us-section .about-us-photo {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* DEPARTMENT SECTION */

main .department-section {
    background-color: #fff;
}

main .department-section .department-card {
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column; 
    align-items: center;   
    justify-content: center;
    text-align: center;
    background-color: #fff;   
}

main .department-section .department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

main .department-section .department-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(25, 135, 84, 0.08);
    color: #198754;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 10px;
}

main .department-section .department-card:hover .icon-wrapper {
    background-color: #198754;
    color: #fff !important;   
}

main .department-section .department-card .icon-wrapper .department-icon {
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* EDUCATION NEWS SECTION */

main .education-news-section {
    background-color: #f5f5f7;
}

/* ARTICLES SECTION */

main .article-section {
    background-color: #fff;
}

/* FOOTER */

footer {
    background-color: #495057;
    color: #fff;
    font-size: 16px;
}

footer .footer-col {
    display: flex;
    align-items: center;
    flex-direction: column;
}

footer .social-icons a:hover i {
    color: #198754;
}


/* ARTICLES.HTML */

/* TAB NAVIGATION STYLE */

main .nav-tabs {
    flex-wrap: wrap !important;
    overflow: hidden !important;
    scrollbar-width: none; 
}
    
main .nav-tabs::-webkit-scrollbar {
    display: none; 
}

/* TAB BUTTON STYLE */

main .nav-tabs .nav-item .nav-link {
    color: black !important;
    font-weight: bold;
    border: none;
    font-size: 16px;
}

main .nav-tabs .nav-item .nav-link.active {
    font-weight: 700;
    color: black !important;
    border-bottom: 3px solid black;
    background-color: transparent !important;
}

/* ARTICLE CARD */

main .article-card {
    height: 100%;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: #fff;
    padding: 15px;
}

main .article-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.98);
}

main .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

main .article-card .image-container {
    max-height: 300px;
    overflow: hidden;
}

main .article-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

main .article-card .line-clamp {
    display: -webkit-box;        
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;       
    overflow: hidden;            
    text-overflow: ellipsis;     
    word-break: break-word; 
    font-size: 16px;
    font-weight: 400;
}

main .article-card .line-clamp p,
main .article-card .line-clamp div,
main .article-card .line-clamp h1,
main .article-card .line-clamp h2,
main .article-card .line-clamp h3,
main .article-card .line-clamp h4,
main .article-card .line-clamp h5,
main .article-card .line-clamp h6 {
    margin: 0;
    padding: 0;
    font-size: inherit !important;
    font-weight: inherit !important;
}

main .article-card .line-clamp br,
main .article-card .line-clamp img,
main .article-card .line-clamp iframe {
    display: none !important;
}


/* ARTICLES >>> each article >>> each news */

main article {
    max-width: 700px;
    display: block;
    margin: 0 auto;
}

main article .content a {
    color: #000000;
    text-decoration: underline;
}

main article .author a {
    color: var(--text-secondary);
    text-decoration: underline;
}

main article img {
    width: 100%;
}


/* GALLERY.HTML */

main .gallery-container .gallery-item {
    position: relative;
    cursor: pointer;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

main .gallery-container .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

main .gallery-container .gallery-item:hover img {
    transform: scale(1.05);
    }

main .gallery-container .gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

main .gallery-container .gallery-item:hover .gallery-caption {
    opacity: 1;
}

main .gallery-container .modal .modal-content {
    background: transparent;
    border: none;
}

main .gallery-container .modal .modal-content .modal-header {
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

main .gallery-container .modal .modal-content .modal-header .btn-close {
    filter: invert(1);
    font-size: 32px;
}

main .gallery-container .modal .modal-content .modal-header .btn-close {
    width: 48px;           
    height: 48px;
    border: none;
    background: none;
    font-weight: bold;        
    font-size: 28px;          
    color: #000000;          
    opacity: 0.8;
    cursor: pointer;
    position: relative;
}

main .gallery-container .modal .modal-content .modal-header .btn-close::before,
main .gallery-container .modal .modal-content .modal-header .btn-close::after {
    content: '';
    position: absolute;
    width: 3px;              
    height: 24px;           
    background-color: currentColor; 
    top: 50%;
    left: 50%;
    transform-origin: center;
}

main .gallery-container .modal .modal-content .modal-header .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

main .gallery-container .modal .modal-content .modal-header .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

main .gallery-container .modal .modal-content .modal-header .btn-close:hover {
    opacity: 1;              
}

main .gallery-container .modal .modal-content .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

main .gallery-container .modal .modal-content .modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}


/* VIDEOS.HTML */

main .video-container .myvideo {
    cursor: pointer;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

main .video-container .myvideo:fullscreen {
    object-fit: contain; 
    height: 100%; 
    width: 100%;
}

main .video-container .myvideo:-webkit-full-screen {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

/* SEND_MESSAGE.HTML */
main .contact-section {
    min-height: calc(100vh - 558px);
    background-color: #fff;
    display: flex;
    align-items: center;
}

main .contact-section .contact-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    max-width: 600px;
}

main .contact-section .contact-card .contact-input,
main .contact-section .contact-card .contact-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc; 
    padding: 6px 10px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    margin: 10px 0;
    display: block;
}

main .contact-section .contact-card .contact-textarea {
    height: 120px; 
    resize: none; 
}

main .contact-section .contact-card .contact-input::placeholder,
main .contact-section .contact-card .contact-textarea::placeholder {
    color: #999;
    font-weight: 400;
}


@media (max-width: 991.98px) {
    /* main > hero-section */

    main .hero-section {
        padding: 40px 0;
    }

    main .hero-section h1 {
        margin-top: 50px;
    }

    main .hero-section .image-container {
        order: -1;
        margin-top: 50px;
        margin-bottom: 20px;
        min-height: 300px;
    }

    main .hero-section .image-container .impact-box {
        padding: 10px 15px;
        gap: 15px;
        bottom: -30px;
    }

    main .hero-section .image-container .impact-box .metric-col .metric-value {
        font-size: 1.6rem;
    }

    main .hero-section .image-container .impact-box .metric-divider {
        height: 60px;
    }  
}

@media (max-width: 575.98px) {
    main .hero-section {
        padding: 20px 0;
    }

    main .hero-section .image-container {
        min-height: 250px;
        margin-bottom: 20px;
    }

    main .hero-section .image-container .overlay-image-top {
        height: 60px;
    }

    main .hero-section .image-container .impact-box .metric-col .metric-value {
        font-size: 1.5rem;
    }

    main .hero-section .image-container .impact-box .metric-col .metric-label {
        white-space: normal;
    }

    /* ARTICLES.HRML */
    main .nav-tabs .nav-item .nav-link {
        font-size: 14px;
    }
}