@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors */
    --royal-blue: #1E40AF;
    --bright-blue: #3B82F6;
    --light-blue: #60A5FA;

    /* Accent Colors */
    --primary-red: #DC2626;
    --coral-red: #F87171;

    /* Supporting Tints */
    --soft-blue: #DBEAFE;
    --soft-red: #FEE2E2;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --medium-gray: #9CA3AF;
    --dark-gray: #1F2937;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --accent-gradient: linear-gradient(135deg, #DC2626 0%, #F87171 100%);

    /* Transitions & Borders */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(30, 64, 175, 0.1);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Typography Utilities */
.text-royal {
    color: var(--royal-blue);
}

.text-bright {
    color: var(--bright-blue);
}

.text-red {
    color: var(--primary-red);
}

/* Navigation Replay */
.navbar-glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-glass.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--royal-blue) !important;
}

.navbar-logo {
    height: 48px;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .navbar-logo {
        height: 60px;
    }
}

.navbar-toggler {
    border: none !important;
    padding: 0px !important;
    background: transparent !important;
    display: none !important;
    cursor: pointer;
    z-index: 999;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler .toggler-icon {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--royal-blue) !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: left center !important;
}

.navbar-toggler:hover .toggler-icon {
    background-color: var(--primary-red) !important;
}

/* Open Animation */
.navbar-toggler:not(.collapsed) .top-bar {
    transform: rotate(45deg) !important;
    background-color: var(--primary-red) !important;
}

.navbar-toggler:not(.collapsed) .middle-bar {
    width: 0% !important;
    opacity: 0 !important;
}

.navbar-toggler:not(.collapsed) .bottom-bar {
    transform: rotate(-45deg) !important;
    background-color: var(--primary-red) !important;
}

.navbar-brand span {
    color: var(--primary-red);
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.8rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--royal-blue) !important;
}

@media (max-width: 991.98px) {

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: var(--white);
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        margin-top: 0.5rem;
        border: 1px solid rgba(30, 64, 175, 0.08);
        z-index: 999;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    }

    .navbar-collapse.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .collapsing {
        display: none !important;
    }

    .navbar-nav {
        align-items: stretch !important;
        text-align: left;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.25rem 0 !important;
        border-radius: 8px;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: var(--soft-blue);
    }

    .dropdown-menu {
        display: none;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        padding-left: 1rem;
        background-color: var(--light-gray);
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .navbar-toggler {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 20px !important;
    }

    .hero-section {
        padding: 100px 0 60px !important;
    }
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--royal-blue);
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8faff 0%, #eef5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-tagline {
    background: #eef2ff;
    color: var(--royal-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary-neo {
    background: var(--royal-blue);
    color: var(--white) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.8rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-primary-neo:hover {
    background: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
}

.btn-secondary-neo {
    background: transparent;
    color: var(--royal-blue) !important;
    font-weight: 600;
    border: 2px solid var(--royal-blue);
    border-radius: var(--radius-sm);
    padding: 0.7rem 2rem;
    transition: var(--transition);
}

.btn-secondary-neo:hover {
    background: var(--royal-blue);
    color: var(--white) !important;
}

.btn-accent-neo {
    background: var(--primary-red);
    color: var(--white) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.8rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-accent-neo:hover {
    background: var(--coral-red);
    transform: translateY(-2px);
}

/* Features Slider */
.features-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
}

.features-slider-container::before,
.features-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.features-slider-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.features-slider-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.features-slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-features 25s linear infinite;
}

.features-slider-track:hover {
    animation-play-state: paused;
}

.feature-slide-card {
    flex: 0 0 auto;
    width: 240px;
    height: 220px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: default;
}

.feature-slide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-slide-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
}

.feature-slide-card h6 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Card Colors */
.blue-card {
    background: #dbeafe;
    /* Light Blue */
}

.blue-card .feature-icon {
    color: #1d4ed8;
}

.blue-card h6 {
    color: #1e3a8a;
}

.teal-card {
    background: #ccfbf1;
    /* Light Teal */
}

.teal-card .feature-icon {
    color: #0f766e;
}

.teal-card h6 {
    color: #134e4a;
}

.red-card {
    background: #fee2e2;
    /* Light Red */
}

.red-card .feature-icon {
    color: #b91c1c;
}

.red-card h6 {
    color: #7f1d1d;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Programs */
.program-card {
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition);
    z-index: 1;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.program-icon-bg {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 8rem;
    line-height: 1;
    z-index: -1;
    opacity: 0.12;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.program-card:hover .program-icon-bg {
    transform: rotate(-5deg) scale(1.05);
    opacity: 0.18;
}

.program-title {
    font-size: 1.25rem;
    z-index: 2;
}

.program-desc {
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
    font-weight: 500;
}

.program-btn {
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.program-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Card Specific Colors for Programs */
.blue-card .program-title {
    color: #1e3a8a;
}

.blue-card .program-desc {
    color: #3b82f6;
}

.blue-card .program-btn {
    color: #1d4ed8;
}

.blue-card .program-icon-bg {
    color: #1d4ed8;
}

.teal-card .program-title {
    color: #134e4a;
}

.teal-card .program-desc {
    color: #14b8a6;
}

.teal-card .program-btn {
    color: #0f766e;
}

.teal-card .program-icon-bg {
    color: #0f766e;
}

.red-card .program-title {
    color: #7f1d1d;
}

.red-card .program-desc {
    color: #ef4444;
}

.red-card .program-btn {
    color: #b91c1c;
}

.red-card .program-icon-bg {
    color: #b91c1c;
}

/* Purple Card Definition */
.purple-card {
    background: #f3e8ff;
    /* Light Purple */
    border: 1px solid #e9d5ff;
}

.purple-card .feature-icon,
.purple-card .icon-wrapper {
    color: #7e22ce;
}

.purple-card h4,
.purple-card h6,
.purple-card .program-title {
    color: #581c87;
}

.purple-card p,
.purple-card .program-desc {
    color: #a855f7;
}

.purple-card .program-btn {
    color: #7e22ce;
}

.purple-card .program-icon-bg {
    color: #7e22ce;
}

/* Stats */
.stats-section {
    background: var(--royal-blue);
    color: var(--white);
    padding: 60px 0;
}

/* Footer */
footer {
    background: #0a1128;
    color: var(--white);
    padding: 60px 0 0;
    overflow: hidden;
    position: relative;
}

footer h5 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.footer-watermark {
    font-size: 8vw;
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 20px;
    user-select: none;
    letter-spacing: -3px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.footer-bottom {
    background: #0a1128;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--medium-gray);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: var(--bright-blue);
    padding-left: 5px;
}

/* Footer Social Card — Uiverse hover effect */
.footer-social-card {
    display: flex;
    width: fit-content;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 115px;
    padding-inline: 16px;
    position: relative;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    margin-top: 0.5rem;
}

.footer-social-icon {
    cursor: pointer;
    display: flex;
    transition: all 0.5s;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-weight: bold;
    font-size: small;
    padding: 0 8px;
}

.footer-social-icon>p {
    --var: -0%;
    position: absolute;
    top: var(--var);
    transition: all 0.7s;
    background-color: var(--bright-blue);
    border-radius: 7px;
    opacity: 0;
    padding-inline: 8px;
    padding-block: 3px;
    width: max-content;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
    z-index: 10;
}

.footer-social-icon>p::after {
    content: "";
    position: absolute;
    border-top: 8px solid var(--bright-blue);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    top: 100%;
    left: 50%;
    transform: translate(-50%);
}

.footer-social-icon>a {
    --var: -0%;
    position: absolute;
    bottom: var(--var);
    width: max-content;
    transition: all 0.7s;
    opacity: 0;
    padding-inline: 8px;
    padding-block: 3px;
    background-color: var(--primary-red);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    pointer-events: none;
    z-index: 10;
}

.footer-social-icon>a::after {
    content: "";
    position: absolute;
    border-bottom: 8px solid var(--primary-red);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%);
}

.footer-social-icon:hover>a,
.footer-social-icon:hover>p {
    --var: -68%;
    opacity: 1;
    pointer-events: auto;
}

.footer-social-icon:hover {
    z-index: 15;
}

.footer-social-card:hover>.footer-social-icon:not(:hover) {
    filter: blur(2px);
    transform: scale(0.82);
}

.footer-social-icon svg {
    height: 28px;
    width: 28px;
    display: block;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        margin-bottom: 1rem;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .footer-watermark {
        font-size: 9vw;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-watermark {
        font-size: 10vw;
        letter-spacing: -1px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats-section {
        padding: 40px 0;
    }

    .footer-watermark {
        font-size: 9vw;
        margin-top: 10px;
    }

    footer {
        padding-top: 40px;
    }
}

/* Loading Page Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.pencil {
    display: block;
    width: 10em;
    height: 10em;
}

.pencil__body1,
.pencil__body2,
.pencil__body3,
.pencil__eraser,
.pencil__eraser-skew,
.pencil__point,
.pencil__rotate,
.pencil__stroke {
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.pencil__body1,
.pencil__body2,
.pencil__body3 {
    transform: rotate(-90deg);
}

.pencil__body1 {
    animation-name: pencilBody1;
}

.pencil__body2 {
    animation-name: pencilBody2;
}

.pencil__body3 {
    animation-name: pencilBody3;
}

.pencil__eraser {
    animation-name: pencilEraser;
    transform: rotate(-90deg) translate(49px, 0);
}

.pencil__eraser-skew {
    animation-name: pencilEraserSkew;
    animation-timing-function: ease-in-out;
}

.pencil__point {
    animation-name: pencilPoint;
    transform: rotate(-90deg) translate(49px, -30px);
}

.pencil__rotate {
    animation-name: pencilRotate;
}

.pencil__stroke {
    animation-name: pencilStroke;
    transform: translate(100px, 100px) rotate(-113deg);
}

/* Animations */
@keyframes pencilBody1 {

    from,
    to {
        stroke-dashoffset: 351.86;
        transform: rotate(-90deg);
    }

    50% {
        stroke-dashoffset: 150.8;
        /* 3/8 of diameter */
        transform: rotate(-225deg);
    }
}

@keyframes pencilBody2 {

    from,
    to {
        stroke-dashoffset: 406.84;
        transform: rotate(-90deg);
    }

    50% {
        stroke-dashoffset: 174.36;
        transform: rotate(-225deg);
    }
}

@keyframes pencilBody3 {

    from,
    to {
        stroke-dashoffset: 296.88;
        transform: rotate(-90deg);
    }

    50% {
        stroke-dashoffset: 127.23;
        transform: rotate(-225deg);
    }
}

@keyframes pencilEraser {

    from,
    to {
        transform: rotate(-45deg) translate(49px, 0);
    }

    50% {
        transform: rotate(0deg) translate(49px, 0);
    }
}

@keyframes pencilEraserSkew {

    from,
    32.5%,
    67.5%,
    to {
        transform: skewX(0);
    }

    35%,
    65% {
        transform: skewX(-4deg);
    }

    37.5%,
    62.5% {
        transform: skewX(8deg);
    }

    40%,
    45%,
    50%,
    55%,
    60% {
        transform: skewX(-15deg);
    }

    42.5%,
    47.5%,
    52.5%,
    57.5% {
        transform: skewX(15deg);
    }
}

@keyframes pencilPoint {

    from,
    to {
        transform: rotate(-90deg) translate(49px, -30px);
    }

    50% {
        transform: rotate(-225deg) translate(49px, -30px);
    }
}

@keyframes pencilRotate {
    from {
        transform: translate(100px, 100px) rotate(0);
    }

    to {
        transform: translate(100px, 100px) rotate(720deg);
    }
}

@keyframes pencilStroke {
    from {
        stroke-dashoffset: 439.82;
        transform: translate(100px, 100px) rotate(-113deg);
    }

    50% {
        stroke-dashoffset: 164.93;
        transform: translate(100px, 100px) rotate(-113deg);
    }

    75%,
    to {
        stroke-dashoffset: 439.82;
        transform: translate(100px, 100px) rotate(112deg);
    }
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.8);
    /* Royal Blue with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item img {
    transition: var(--transition);
}

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

/* Bento Grid for Gallery */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.bento-item.span-2-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.span-2-1 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item.span-1-2 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-item.span-2-2,
    .bento-item.span-2-1,
    .bento-item.span-1-2 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* True Masonry Grid for Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-content {
    padding: 1.25rem;
}

.masonry-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.masonry-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* User Provided Gallery Style */
.user-gallery-section {
    display: grid;
    grid-template-columns: 25% 30% 15% 25%;
    gap: 15px;
    place-content: center;
    grid-template-rows: 50% 50%;
    height: 80vh;
    min-height: 460px;
    padding: max(2vh, 1.5rem);
}

@media screen and (max-width:690px) {
    .user-gallery-section {
        height: 65vh;
    }
}

@media screen and (max-width:470px) {
    .user-gallery-section {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 35%);
    }
}

.user-gallery-section .card {
    border-radius: 25px;
    box-shadow: -2px 4px 15px rgb(0 0 0 / 26%);
    overflow: hidden;
}

@media screen and (max-width:470px) {
    .user-gallery-section .card {
        grid-column: span 1;
    }
}

.user-gallery-section .card:nth-child(2) {
    grid-column: 2/3;
    grid-row: span 2;
}

@media screen and (max-width:690px) {
    .user-gallery-section .card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.user-gallery-section .card:nth-child(3) {
    grid-column: span 2;
}

@media screen and (max-width:690px) {
    .user-gallery-section .card:nth-child(3) {
        grid-column: 2/4;
        grid-row: 1/2;
    }
}

@media screen and (max-width:690px) {
    .user-gallery-section .card:nth-child(6) {
        grid-column: 2/4;
        grid-row: 2/3;
    }
}

@media screen and (max-width:470px) {
    .user-gallery-section .card:nth-child(5) {
        grid-column: span 2;
    }
}

.user-gallery-section .card p {
    font-size: clamp(0.9rem, 0.8750rem + 0.1250vw, 1rem);
    line-height: 1.4;
}

.user-gallery-section .card img {
    border-radius: 25px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.user-gallery-section .card:hover img {
    transform: scale(1.05);
}

.user-gallery-section .card .card__img {
    position: relative;
    height: 100%;
}

.user-gallery-section .card .card__img .card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 1rem 1.25rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    height: auto;
    min-height: 40%;
    border-radius: 0 0 25px 25px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.user-gallery-section .card:hover .card__img .card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.user-gallery-section .card .card__img .card__overlay h2 {
    font-size: clamp(1.1rem, 1.25rem + 0.3vw, 1.4rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.user-gallery-section .card .card__img span {
    position: absolute;
    top: 25px;
    left: min(2vmax, 1.563rem);
    color: #ff7b29;
    background: #fff;
    border-radius: 50px;
    padding: 2px 8px 2px 6px;
    display: flex;
    box-shadow: 0px 1px 20px #0000002b;
}

@media screen and (max-width:690px) {
    .user-gallery-section .card .card__img span {
        top: 20px;
    }
}

@media screen and (max-width:470px) {
    .user-gallery-section .card .card__img span {
        top: 15px;
    }
}

.user-gallery-section .card .card__img span svg {
    fill: #ff7b29;
    width: 20px;
    margin-right: 2px;
}

/* Redesign Overrides & Custom Styles (Navbar excluded) */

.Outfit-font {
    font-family: 'Outfit', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
}

.text-green {
    color: var(--primary-red) !important;
}

.text-blue {
    color: var(--royal-blue) !important;
}

/* Redesigned Hero Section */
.hero-section {
    padding: 140px 0 60px !important;
    background: #FFFFFF !important;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 40px !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 90px 0 20px !important;
    }
}

.hero-tagline-new {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--royal-blue);
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.line-decor {
    width: 25px;
    height: 2px;
    background-color: var(--royal-blue);
    display: inline-block;
}

.line-decor-right {
    width: 25px;
    height: 2px;
    background-color: var(--royal-blue);
    display: inline-block;
    vertical-align: middle;
}

.hero-title-new {
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #051A3E !important;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4A5568;
    max-width: 540px;
}

.btn-primary-blue {
    background-color: var(--royal-blue) !important;
    color: var(--white) !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.85rem 1.8rem !important;
    transition: var(--transition);
    border: none;
}

.btn-primary-blue:hover {
    background-color: #002359 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 59, 149, 0.25);
}

.btn-outline-blue {
    background-color: transparent !important;
    color: var(--royal-blue) !important;
    border: 2px solid var(--royal-blue) !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.75rem 1.8rem !important;
    transition: var(--transition);
}

.btn-outline-blue:hover {
    background-color: var(--royal-blue) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 59, 149, 0.15);
}

.avatar-group {
    margin-top: 1.5rem;
    flex-wrap: nowrap !important;
}

.avatar-images {
    display: flex;
    align-items: center;
    position: relative;
    height: 32px;
    flex-shrink: 0;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--white);
    margin-right: -10px;
    position: relative;
}

.avatar-circle:last-child {
    margin-right: 0;
}

.av-1 {
    background-color: var(--royal-blue);
    z-index: 3;
}

.av-2 {
    background-color: var(--bright-blue);
    z-index: 2;
}

.av-3 {
    background-color: var(--primary-red);
    z-index: 1;
}

.avatar-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 20px;
    white-space: nowrap;
}

.hero-students-img-new {
    border-radius: 20px;
    width: 100%;
    transition: var(--transition);
}

.hero-carousel,
.campus-carousel {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: var(--transition);
}

.hero-carousel:hover,
.campus-carousel:hover {
    transform: scale(1.02);
}

.hero-carousel-img,
.campus-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-carousel-img.active,
.campus-carousel-img.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

/* Floating Overlay Badge on Hero Photo */
.hero-badge-overlay {
    position: absolute;
    bottom: -30px;
    right: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.badge-item {
    border-right: 1px solid #E2E8F0;
    padding-right: 20px;
}

.badge-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-medal {
    color: var(--primary-red);
}

.icon-trophy {
    color: var(--bright-blue);
}

.icon-shield {
    color: var(--royal-blue);
}

.badge-num {
    font-size: 0.95rem;
    font-weight: bold;
    color: #0F172A;
}

.badge-lbl {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Row 2 Feature Cards Row */
.feature-bar-section-new {
    background-color: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.feature-card-new {
    position: relative;
    border-radius: 14px;
    background: #E2E8F0; /* Normal subtle border color */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px; /* Creates the border space */
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.card-bg {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid white;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
}

.card-blob {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.feature-card-new.active .card-blob {
    opacity: 1;
    animation: blob-bounce 5s infinite ease;
}

.card-accent-blue .card-blob,
.card-pastel-blue .card-blob {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--bright-blue) 100%);
}

.card-accent-red .card-blob,
.card-pastel-red .card-blob {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--coral-red) 100%);
}

/* Active Sequenced Elevation */
.feature-card-new.active {
    transform: translateY(-4px);
    background: #FFFFFF;
}

.feature-card-new.card-accent-blue.active {
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.1);
}

.feature-card-new.card-accent-red.active {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}

/* Hover override */
.feature-card-new:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    background: #FFFFFF !important;
}

.feature-card-new:hover .card-blob {
    opacity: 1 !important;
    animation: blob-bounce 3s infinite ease;
}

@keyframes blob-bounce {
    0% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
    25% {
        transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }
    50% {
        transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }
    75% {
        transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }
    100% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

.feature-icon-outline {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.icon-blue-outline {
    border-color: rgba(30, 64, 175, 0.15);
    color: var(--royal-blue);
    background-color: var(--soft-blue);
}

.icon-red-outline {
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--primary-red);
    background-color: var(--soft-red);
}

/* Row 3 Split Campus Section */
.dots-decor {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 150px;
    background-image: radial-gradient(#CBD5E1 2.5px, transparent 2.5px);
    background-size: 16px 16px;
    opacity: 0.7;
    z-index: -1;
}

.checkmark-list {
    margin-top: 1.5rem;
}

.check-icon {
    font-size: 1.2rem;
    color: var(--royal-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.check-item h6 {
    color: #0F172A;
    font-size: 0.95rem;
}

.check-item p {
    font-size: 0.85rem;
}

.btn-blue-dark {
    background-color: #002359 !important;
    color: var(--white) !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.8rem 1.8rem !important;
    transition: var(--transition);
    border: none;
}

.btn-blue-dark:hover {
    background-color: var(--bright-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.image-hover-zoom {
    overflow: hidden;
    border-radius: 16px;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.04);
}

/* Row 4 Learning Journey (Programs) */
.bg-light-section {
    background-color: #F8FAFC !important;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: var(--royal-blue);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3.5px;
    background-color: var(--royal-blue);
    border-radius: 2px;
}

.program-card-new {
    position: relative;
    border-radius: 16px;
    background: #E2E8F0; /* Normal state border fallback */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px; /* Creates the border space */
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.card-pastel-blue {
    background-color: var(--soft-blue) !important;
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.card-pastel-red {
    background-color: var(--soft-red) !important;
    border: 1px solid rgba(220, 38, 38, 0.08);
}

.program-card-new.active .card-blob {
    opacity: 1;
    animation: blob-bounce 5s infinite ease;
}

/* Active Sequenced Elevation */
.program-card-new.active {
    transform: translateY(-4px);
    background: #FFFFFF !important; /* overrides pastel background to make outline glow white */
}

.program-card-new.card-pastel-blue.active {
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.1);
}

.program-card-new.card-pastel-red.active {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}

/* Hover override */
.program-card-new:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    background: #FFFFFF !important;
}

.program-card-new:hover .card-blob {
    opacity: 1 !important;
    animation: blob-bounce 3s infinite ease;
}

.program-card-new h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

.text-card-lh {
    line-height: 1.45;
    font-size: 0.82rem;
}

.text-blue-dark {
    color: #1E3A8A !important;
}

.text-red-dark {
    color: #7F1D1D !important;
}

.explore-link {
    text-decoration: none !important;
    transition: var(--transition);
}

.explore-link i {
    transition: transform 0.3s ease;
}

.explore-link:hover i {
    transform: translateX(4px);
}

/* Row 4 Learning Journey (Programs) Flow Layout */
.journey-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
    margin-top: 2rem;
}

.journey-card-wrapper {
    flex: 1;
    min-width: 0;
}

.journey-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal-blue);
    font-size: 1.5rem;
    opacity: 0.4;
    flex-shrink: 0;
    padding: 0 5px;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .journey-container {
        flex-direction: column;
        gap: 20px;
    }

    .journey-arrow-wrapper {
        transform: rotate(90deg);
        padding: 10px 0;
    }
}

/* Stats Section */
.stats-bar {
    background-color: var(--royal-blue) !important;
    padding: 40px 0 !important;
}

.stats-item {
    border-right: none;
}

.divider-left {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Row 6 Student Life Gallery filter tabs */
.btn-gallery-tab {
    background-color: #F1F5F9;
    color: #475569 !important;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-gallery-tab.active {
    background-color: #051A3E;
    color: var(--white) !important;
}

.btn-gallery-tab:hover:not(.active) {
    background-color: #E2E8F0;
}

.view-gallery-link {
    color: var(--royal-blue);
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-gallery-link:hover {
    color: var(--primary-red);
}

.gallery-img-card {
    width: 100%;
    height: 240px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 12px !important;
    transition: var(--transition);
}

.gallery-img-card:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

@media screen and (max-width: 991px) {
    .gallery-img-card {
        height: 180px;
    }
}

@media screen and (max-width: 575.98px) {
    .gallery-img-card {
        height: 150px;
    }
}

/* Gallery Filtering Animation */
.gallery-item {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* Row 7 Admissions CTA Banner */
.bg-soft-blue-banner {
    background-color: var(--soft-blue);
}

.admissions-banner-card {
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.banner-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--royal-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.btn-tour-outline {
    background-color: transparent !important;
    color: var(--royal-blue) !important;
    border: 1.5px solid var(--royal-blue) !important;
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.7rem 1.6rem !important;
    transition: var(--transition);
}

.btn-tour-outline:hover {
    background-color: var(--royal-blue) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 59, 149, 0.15);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .hero-title-new {
        font-size: 2.2rem !important;
    }

    .hero-badge-overlay {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 15px !important;
    }

    .badge-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-bottom: 10px;
        width: 100%;
    }

    .badge-item:last-child {
        border-bottom: none;
    }

    .divider-left {
        border-left: none;
    }

    .stats-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .stats-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title-new {
        font-size: 1.6rem !important;
    }

    .hero-tagline-new {
        font-size: 0.75rem !important;
        letter-spacing: 0.5px !important;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Custom Spacing & Utility Decimals */
.gap-2\.5 {
    gap: 0.625rem !important;
}

.py-2\.5 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

/* Animations */
.animate-up {
    animation: animateUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes animateUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight Cards in Academics Page */
.highlight-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.06) !important;
    border-color: rgba(30, 64, 175, 0.15) !important;
}

/* Custom Program & Facility Cards (Shared Styling) */
.prog-card {
    background: white; border-radius: 18px; padding: 24px 20px;
    position: relative; overflow: hidden; border: 1.5px solid #ECEEF5;
    transition: all 0.3s ease; box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.10); border-color: #D8DCF0; }
.prog-card-icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; margin-bottom: 24px;
}
.prog-card-title { font-size: 1.1rem; font-weight: 800; color: #0D1B4B; margin-bottom: 8px; line-height: 1.3; font-family: 'Outfit', sans-serif; }
.prog-card-desc { font-size: 0.82rem; color: #78909C; line-height: 1.6; margin-bottom: 0; }