/* Global CSS for whole site */

/* Prevent horizontal scroll */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    font-size: 13px !important;
}

/*    body.custom-font-size {
        font-size: 11px !important;
    }*/

/* Box-sizing fix for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif; /* Clean, modern font */
    line-height: 1.7;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

p {
    font-size: 1.375rem; /* Increased from 1.125rem for better visibility */
    line-height: 1.9; /* Slightly more breathing room between lines */
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

    p:hover {
        color: #27632a;
    }


/* Hero Section */
.hero-section {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 102vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
    margin-bottom: -2px;
    padding: 20rem 0 !important;
}

    .hero-section video {
        filter: brightness(0.9); /* adjust as needed */
    }

    .hero-section h1,
    .hero-section p {
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

.btn-custom {
    background: #00bba9;
    color: black;
    border: none;
    padding: 0.7rem 2.4rem;
    font-size: 1.3rem;
    border-radius: 35px;
    box-shadow: 0 0 0 0 rgba(0, 187, 169, 0.6);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

    .btn-custom:hover {
        transform: scale(1.05);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 187, 169, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 187, 169, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 187, 169, 0);
    }
}

    .btn-custom:hover,
    .btn-custom:focus {
        background-color: teal !important;
        color: lightcyan !important;
        /* Dark text on light teal */
        box-shadow: 0 4px 12px rgba(0, 187, 169, 0.5) !important;
        border-color: teal !important;
        text-decoration: none !important;
        outline: none !important;
    }



/* Sections */
/*.section {
    padding: 80px 0;
}*/

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #005a54;
}

.info-box,
.service-card {
    border-left: 5px solid #005a54;
    background: #fefefe;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .info-box:hover,
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

/* CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #005a54, #007f72);
    padding: 60px 0;
}

/* Layout Nav, global CSS */

/* Transparent Navbar */
.custom-navbar {
    background-color: transparent !important;
    min-height: 120px;
    /* example height */
    transition: background-color 0.5s ease, min-height 0.5s ease;
}

    /* Navbar Brand (Logo) */
    .custom-navbar .navbar-brand {
        color: white;
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

/* Navbar Nav - Right align */
.navbar-nav {
    margin-left: auto;
    /* push nav links right */
    display: flex !important;
    gap: 2rem;
    align-items: center;
}

/* Logo */
.navbar-logo {
    height: 80px !important;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    margin-top: -15px;
    /* raise the logo slightly */
    transition: height 0.5s ease, margin-top 0.5s ease;
}


/* Container padding */
.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 5rem;
}

/* Nav links - size and alignment */
.nav-tabs-custom .nav-link {
    position: relative;
    padding: 0.5rem 0;
    padding-bottom: 20px;
    color: black;
    font-size: 1.2rem;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    transition: color 0.5s ease;
}

    /* Active nav top black bar */
    .nav-tabs-custom .nav-link.active-nav::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 3px;
        background: #000;
        transition: background 0.5s ease, top 0.5s ease, height 0.5s ease;
    }

    /* Hover dim bar */
    .nav-tabs-custom .nav-link::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        transition: background 0.5s ease, top 0.5s ease, height 0.5s ease;
    }

    .nav-tabs-custom .nav-link:hover::before {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Hover color */
    .nav-tabs-custom .nav-link:hover {
        color: #007f72 !important;
    }

/* Sticky navbar background & shadow on scroll */
.custom-navbar.sticky-nav {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}




@media (min-width: 992px) and (max-width: 1175px) {
    .custom-navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
        backdrop-filter: none !important;
        background-color: none !important;
    }

        .custom-navbar.shrink-nav {
            padding-top: 0.5rem !important;
            padding-bottom: 0.5rem !important;
            min-height: 70px !important;
        }

    .nav-tabs-custom .nav-link {
        padding-bottom: 22px;
        font-size: 1.1rem;
    }

    .navbar-nav {
        gap: 1.9rem !important;
    }

    .navbar .container-fluid {
        padding-left: 0rem;
        padding-right: 3rem;
    }

    .navbar-logo {
        height: 75px !important;
    }


    /* Optional: tweak spacing in shrink state */
    .custom-navbar.shrink-nav .navbar-logo {
        height: 50px !important;
    }

    .custom-navbar.shrink-nav .logo-text {
        font-size: 1rem;
    }

    .shrink-nav .nav-tabs-custom .nav-link {
        font-size: 1rem !important;
    }
}

/* Mobile nav background and style */
@media (max-width: 991px) {

    /* Smaller navbar height on mobile */
    .custom-navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030 !important;
        background-color: transparent !important;
        /* instead of fully transparent */
        /*        backdrop-filter: blur(5px) !important;*/
        min-height: 70px !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
        /*        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
        transition: min-height 0.5s ease, background-color 0.3s ease-in-out;
    }


        .custom-navbar.sticky-nav {
            background-color: transparent !important;
            /* solid background on scroll */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
            backdrop-filter: blur(10px) !important;
        }




    /* Logo smaller and vertical margin adjusted */
    .navbar-logo {
        height: 58px !important;
        margin-top: 0 !important;
    }

    .navbar .container-fluid {
        padding-left: 1.7rem !important;
        padding-right: 3rem;
    }


    /* Nav items container - reduce gap between logo and nav */
    .navbar-nav {
        gap: 1rem !important;
        margin-left: 1rem !important;
        /* add a bit spacing from logo */
        align-items: center;
    }

    /* Nav link font size adjustment */
    .nav-tabs-custom .nav-link {
        font-size: 1rem !important;
        padding: 0.6rem 0 !important;
        min-width: 70px !important;
    }

    .navbar .container-fluid {
        padding-left: 0rem;
        padding-right: 1rem;
    }

    .navbar-collapse.show {
        margin-top: 1.75rem;
        /* adds gap only when dropdown menu is shown */
    }
}

.custom-navbar.scrolled {
    /*    background: linear-gradient( rgba(255, 255, 255, 0.7),
    rgba(54, 102, 126, 0.35) 
    ) !important;*/


    background: linear-gradient( to right, rgba(255, 255, 255, 0.55), rgba(0, 180, 216, 0.35) ) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important; /* Safari support */
    transition: background-color 0.5s ease-in-out;
}

.nav-tabs-custom .nav-link {
    color: black !important;
}

/* Shrink navbar on scroll */
.custom-navbar.shrink-nav {
    min-height: 70px !important;
    /* decrease height */
}

    .custom-navbar.shrink-nav .navbar-logo {
        height: 55px !important;
        margin-top: -3px;
    }

    .custom-navbar.shrink-nav .logo-text {
        font-size: 1.4rem;
        margin-top: -5px;
        letter-spacing: 1.5px;
    }

    .custom-navbar.shrink-nav .nav-link {
        font-size: 1.1rem;
        margin-top: 15px;
    }

    .custom-navbar.shrink-nav .nav-tabs-custom .nav-link.active-nav::before {
        top: -3px;
        /* adjust from -10px to closer */
        height: 3px;
        /* slightly smaller */
    }

    .custom-navbar.shrink-nav .nav-tabs-custom .nav-link::before {
        top: -3px;
        height: 3px;
    }

/* Smooth transitions on navbar elements */
.custom-navbar,
.navbar-logo,
.logo-text,
.nav-tabs-custom .nav-link {
    transition: all 0.5s ease;
}

/* Production videos responsive */

@media (max-width: 768px) {
    .sky-blue-section h2 {
        font-size: 1rem !important;
        max-width: 90%;
        padding: 0 !important;
    }

    .visit-channel-btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }

    .navbar .container-fluid {
        padding-left: 0rem !important;
        padding-right: 1rem;
    }
}

/* video card hover - Education pages */

.card .video-thumb-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

.card img.card-img-top {
    transition: transform 0.4s ease;
    width: 100%;
    display: block;
}

.card:hover img.card-img-top {
    transform: scale(1.05);
}

.card .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s ease, height 1s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.card:hover .play-icon {
    transform: scale(1.2);
}

/* Sky blue Section - Education Pages */

.sky-blue-section {
    background-color: #197f83;
    /* Sky blue */
    position: relative;
    overflow: hidden;
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
    color: white;
}

    .sky-blue-section .side-graphic {
        position: absolute;
        max-width: 350px;
        height: 17rem;
        opacity: 0.9;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
    }

    .sky-blue-section .left {
        left: 1rem;
    }

    .sky-blue-section .right {
        right: 1rem;
    }

    .sky-blue-section .heading-text {
        font-size: 2.5rem;
        max-width: 60%;
        padding: 0 2rem;
        z-index: 2;
        position: relative;
        padding-bottom: 3rem;
    }

.visit-channel-btn {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
    background-color: #004d40;
    color: #ffffff;
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .visit-channel-btn:hover {
        background-color: #00695c;
        color: #e0f7fa;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 77, 64, 0.4);
    }

/* Responsive Tweaks */
@media (max-width: 1024px) {
    .sky-blue-section .side-graphic {
        max-width: 50%;
        opacity: 1;
        padding: 3rem;
    }

    .sky-blue-section .heading-text {
        font-size: 2rem;
        padding: 0 2.5rem;
        max-width: 300px;
        padding-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .sky-blue-section {
        padding-top: 5rem !important;
        padding-bottom: 7rem !important;
    }

        .sky-blue-section .side-graphic {
            max-width: 50%;
            opacity: 1;
            padding: 2rem;
            padding-top: 5rem;
            margin-top: -5rem !important;
        }

        .sky-blue-section .heading-text {
            font-size: 1.5rem;
            padding: 0 1rem;
            padding-top: 13rem !important;
        }

    .visit-channel-btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
        margin-top: 1rem;
    }

    .production-videos {
        margin: 1rem !important;
    }
}

/* Youtube Video Modal */

.modal-content {
    background-color: #000;
    border: none;
    border-radius: 0;
    overflow: hidden !important;
}

.btn-close {
    z-index: 1001;
    padding-right: 2rem;
}

.thumbnail-carousel-container {
    position: relative;
    width: 100%;
}

#modalThumbnails {
    scroll-behavior: smooth;
    width: 100%;
}

    #modalThumbnails > div {
        flex-shrink: 0;
        width: 120px;
        height: 90px;
        overflow: hidden !important;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
    }

    #modalThumbnails img {
        height: 90px;
        width: 100%;
        object-fit: cover;
        object-position: center !important;
        display: block;
    }

    #modalThumbnails > div:hover img {
        transform: scale(1.05);
    }

/* Hide native scrollbar */
.hide-scrollbar {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

/* Thumbnail buttons */
.thumb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* make sure above thumbnails */
    background-color: rgba(0, 187, 169, 0.5);
    border: none;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    user-select: none;
}

    .thumb-nav-btn.start {
        left: 0;
    }

    .thumb-nav-btn.end {
        right: 0;
    }

    .thumb-nav-btn:hover {
        background-color: #005a54;
    }

#modalThumbnails img:hover {
    transform: scale(1.05);
}

.video-info-scrollable {
    overflow-y: auto;
    padding-right: 4px !important;
    padding-left: 2rem !important;
    /* Space for scrollbar */
    max-width: 350px;
    max-height: 55vh !important;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

    /* Optional: Hide scrollbar for aesthetics */
    .video-info-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .video-info-scrollable::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

.modal-open {
    overflow: hidden !important;
}

.heading-gradient {
    max-width: 700px;
    margin-bottom: 2rem !important;
    font-weight: 420;
    color:lightcyan!important;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #008080, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: inherit;
}

.gradient-text2 {
    background: linear-gradient(120deg,#20b2aa,#667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: inherit;
}




.hover-underline {
    position: relative;
    cursor: pointer;
}

    .hover-underline::after {
        content: 'APRC';
        position: absolute;
        left: -2px;
        background: linear-gradient(90deg, #008080, #20B2AA);
        width: 15%;
        height: 4px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .hover-underline:hover::after {
        transform: scaleX(1);
    }

/* Quill content css */


/* REQUIRED FOR SAVED QUILL CONTENT (ADMIN + PUBLIC) */
.ql-align-center {
    text-align: center !important;
}

.ql-align-right {
    text-align: right !important;
}

.ql-align-left {
    text-align: left !important;
}

.ql-align-justify {
    text-align: justify !important;
}

.ql-align-center img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ql-size-small {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    font-style: italic;
}


/* Blogs page excerpt */

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show before cutting off */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.btn-more {
    background: teal;
    color: floralwhite;
    border: none;
}

    .btn-more:hover {
        background: #00695c;
        color: lightcyan;
        transform: scale(1.05);
    }