/* ============================================================
   IUB Wow Factor — visual enhancements (architecture unchanged)
   ============================================================ */

/* ── Scroll progress bar ───────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
    background: rgba(17, 29, 94, 0.08);
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--iub-primary-color) 0%, var(--iub-secondary-color) 60%, #f5d061 100%);
    box-shadow: 0 0 12px rgba(226, 174, 16, 0.55);
    transition: width 0.12s linear;
}

/* ── Page entrance ─────────────────────────────────────────── */
body.wow-loaded {
    animation: wowPageIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wowPageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Navbar on scroll ──────────────────────────────────────── */
.navbar-area.wow-scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: padding 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.theme-light .navbar-area.wow-scrolled.nav-bg-2.is-sticky {
    box-shadow: 0 8px 32px rgba(17, 29, 94, 0.14);
}

/* ── Hero banner ───────────────────────────────────────────── */
.banner-area {
    position: relative;
    overflow: hidden;
}

.banner-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(17, 29, 94, 0.12) 0%,
        transparent 40%,
        transparent 100%
    );
}

.banner-area .carousel {
    position: relative;
    z-index: 0;
}

.banner-area .carousel-item {
    overflow: hidden;
}

.banner-area .carousel-item img {
    transform: scale(1.08);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.banner-area .carousel-item.active img {
    animation: wowKenBurns 8s ease-out forwards;
}

@keyframes wowKenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

/* Carousel controls & indicators */
.banner-area .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    opacity: 1;
    transition: all 0.35s ease;
    margin: 0 4px;
}

.banner-area .carousel-indicators .active {
    width: 32px;
    border-radius: 6px;
    background: var(--iub-secondary-color);
    border-color: var(--iub-secondary-color);
    box-shadow: 0 0 12px rgba(226, 174, 16, 0.7);
}

.banner-area .carousel-control-prev,
.banner-area .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.35s ease, background 0.3s ease, transform 0.3s ease;
}

.banner-area:hover .carousel-control-prev,
.banner-area:hover .carousel-control-next {
    opacity: 1;
}

.banner-area .carousel-control-prev:hover,
.banner-area .carousel-control-next:hover {
    transform: translateY(-50%) scale(1.08);
    background-color: rgba(226, 174, 16, 0.85) !important;
}

/* View All buttons — full-width heading so float-end works */
section h2:has(.float-end),
.pt-70 h2:has(.float-end),
.pb-70 h2:has(.float-end),
.bg-f4f6f9 h2:has(.float-end) {
    display: block;
    width: 100%;
}

section h2:has(.float-end) .float-end,
.pt-70 h2:has(.float-end) .float-end,
.pb-70 h2:has(.float-end) .float-end,
.bg-f4f6f9 h2:has(.float-end) .float-end {
    float: right;
    margin-top: 0.15rem;
}

/* ── Profile image decorative frame ────────────────────────── */
.author-card:has(.author-profile-frame) {
    overflow: visible;
}

.author-profile-frame {
    --profile-inset: 26px;
    position: relative;
    display: inline-block;
    line-height: 0;
    padding: var(--profile-inset);
    box-sizing: border-box;
}

.author-profile-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/img-borders.png') center / 100% 100% no-repeat;
    pointer-events: none;
}

.wow-vc-frame {
    position: relative;
    display: inline-block;
}

.wow-vc-frame .author-profile-img,
.author-profile-frame .author-profile-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.wow-vc-frame:hover .author-profile-img {
    transform: scale(1.03);
}

/* ── Quote block styling ───────────────────────────────────── */
.wow-quote-block {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--iub-secondary-color);
    background: linear-gradient(135deg, rgba(244, 246, 249, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--iub-shadow-sm);
}

/* ── News cards shine ──────────────────────────────────────── */
.card-brand {
    position: relative;
    overflow: hidden;
}

.card-brand::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.card-brand:hover::after {
    left: 140%;
}

.card-brand .card-image-top,
.card-brand .card-img {
    overflow: hidden;
}

.card-brand .card-image-top img,
.card-brand .card-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-brand:hover .card-image-top img,
.card-brand:hover .card-img {
    transform: scale(1.06);
}

/* ── Quick links icon bounce ─────────────────────────────────── */
.quick-links .card a i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-links .card:hover a i {
    transform: scale(1.15) translateY(-4px);
}

.quick-links .card {
    position: relative;
    overflow: hidden;
}

.quick-links .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-links .card:hover::before {
    opacity: 1;
}

/* ── IUB at a Glance active card glow ──────────────────────── */
/* .iub-cf-item.iub-cf-active .iub-cf-card {
    animation: wowStatPulse 2.5s ease-in-out infinite;
}

@keyframes wowStatPulse {
    0%, 100% {
        box-shadow: -10px 0 0 0 rgba(226, 174, 16, 0.4), 10px 0 0 0 rgba(226, 174, 16, 0.4);
    }
    50% {
        box-shadow: 0 0 0 0 rgba(226, 174, 16, 0), 0 0 0 0 rgba(226, 174, 16, 0);
    }
} */

.iub-cf-number .odometer,
.iub-cf-number .odometer-value {
    color: var(--iub-primary-color) !important;
    -webkit-text-fill-color: var(--iub-primary-color) !important;
    background: none !important;
}

.iub-cf-suffix {
    color: var(--iub-primary-color) !important;
}

/* ── Academic program cards ────────────────────────────────── */
.academic-program-card {
    position: relative;
}

.academic-program-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 29, 94, 0.92) 0%, rgba(17, 29, 94, 0.55) 45%, rgba(17, 29, 94, 0.15) 100%);
    opacity: 0.92;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.academic-program-card:hover::after {
    opacity: 1;
}

.academic-program-link {
    position: relative;
    z-index: 1;
}

.academic-program-card:hover {
    transform: translateY(-6px) scale(1.01);
}

/* ── Campus life cards ─────────────────────────────────────── */
.single-academics-card2 {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.single-academics-card2 .academic-top-content a {
    transition: letter-spacing 0.3s ease;
}

.single-academics-card2:hover .academic-top-content a {
    letter-spacing: 0.02em;
}

/* ── Vice Chancellor section — floating light orbs ─────────── */
.vc-message-section {
    position: relative;
    overflow: hidden;
}

.vc-message-section .container {
    position: relative;
    z-index: 2;
}

.vc-message-section::before,
.vc-message-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
    z-index: 0;
}

/* Gold orb — top right */
.vc-message-section::before {
    width: 300px;
    height: 300px;
    top: -80px;
    right: 3%;
    background: radial-gradient(circle, rgba(226, 174, 16, 0.28) 0%, rgba(226, 174, 16, 0.06) 55%, transparent 70%);
    animation: vcOrbFloat1 16s ease-in-out infinite, vcOrbGlow 5s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Navy orb — bottom left */
.vc-message-section::after {
    width: 260px;
    height: 260px;
    bottom: -70px;
    left: 4%;
    background: radial-gradient(circle, rgba(17, 29, 94, 0.2) 0%, rgba(17, 29, 94, 0.05) 55%, transparent 70%);
    animation: vcOrbFloat2 17s ease-in-out infinite alternate;
}



@keyframes vcOrbFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    20%  { transform: translate(-18px, 12px) scale(1.04); }
    40%  { transform: translate(-32px, 28px) scale(1.1); }
    60%  { transform: translate(-22px, 18px) scale(1.06); }
    80%  { transform: translate(-8px, 32px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes vcOrbGlow {
    0%, 100% { opacity: 0.75; filter: blur(48px); }
    50%      { opacity: 1; filter: blur(52px); }
}

@keyframes vcOrbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, -20px) scale(1.1); }
}

@keyframes vcOrbFloat3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate(-20px, 30px) scale(1.12); opacity: 1; }
}

/* ── Section soft orbs ─────────────────────────────────────── */
.latest-news-section,
.upcoming-events-section,
.academic-programs-section,
.announcements-section {
    position: relative;
    overflow: hidden;
}

.latest-news-section .container,
.upcoming-events-section .container,
.academic-programs-section .container,
.announcements-section .container {
    position: relative;
    z-index: 2;
}

.latest-news-section::before,
.upcoming-events-section::before,
.academic-programs-section::before,
.announcements-section::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
    z-index: 0;
    will-change: transform, opacity;
}

/* Latest News — blue, bottom right */
.latest-news-section::before {
    width: 380px;
    height: 380px;
    bottom: -110px;
    right: -110px;
    background: radial-gradient(circle, rgba(17, 29, 94, 0.26) 0%, rgba(41, 55, 124, 0.09) 40%, transparent 80%);
    animation: sectionOrbFloatBR 15s ease-in-out infinite, vcOrbGlow 6s ease-in-out infinite;
}

/* Upcoming Events — orange, bottom left */
.upcoming-events-section::before {
    width: 320px;
    height: 320px;
    bottom: -125px;
    left: 3%;
    background: radial-gradient(circle, rgba(226, 174, 16, 0.28) 0%, rgba(226, 174, 16, 0.06) 45%, transparent 70%);
    animation: sectionOrbFloatBL 16s ease-in-out infinite, vcOrbGlow 5.5s ease-in-out infinite;
}

/* Academic Programs — orange, top right */
.academic-programs-section::before {
    width: 290px;
    height: 290px;
    top: -75px;
    right: 3%;
    background: radial-gradient(circle, rgba(226, 174, 16, 0.28) 0%, rgba(226, 174, 16, 0.06) 45%, transparent 70%);
    animation: sectionOrbFloatTR 14s ease-in-out infinite, vcOrbGlow 5s ease-in-out infinite;
}

/* Announcements — blue, bottom right */
.announcements-section::before {
    width: 360px;
    height: 360px;
    bottom: -50%;
    right: -50%;
    background: radial-gradient(circle, rgba(17, 29, 94, 0.24) 0%, rgba(41, 55, 124, 0.07) 45%, transparent 70%);
    animation: sectionOrbFloatBR 17s ease-in-out infinite reverse, vcOrbGlow 6.5s ease-in-out infinite;
}

/* Latest news, event & announcement item titles */
.latest-news-section a.card-title.fs-5.fw-bold.text-secondary-brand,
.latest-news-section a.fs-5.fw-bold.text-secondary-brand,
.upcoming-events-section a.fs-5.fw-bold.text-secondary-brand,
.announcements-section a.fs-5.fw-bold.text-secondary-brand {
    font-weight: 600 !important;
    color: var(--iub-primary-color) !important;
}

.latest-news-section a.card-title.fs-5.fw-bold.text-secondary-brand:hover,
.latest-news-section a.fs-5.fw-bold.text-secondary-brand:hover,
.upcoming-events-section a.fs-5.fw-bold.text-secondary-brand:hover,
.announcements-section a.fs-5.fw-bold.text-secondary-brand:hover {
    color: var(--iub-primary-color) !important;
}

@keyframes sectionOrbFloatBR {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-15px, -12px) scale(1.05); }
    50%  { transform: translate(-28px, -22px) scale(1.08); }
    75%  { transform: translate(-12px, -18px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes sectionOrbFloatBL {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(18px, -14px) scale(1.05); }
    50%  { transform: translate(32px, -24px) scale(1.09); }
    75%  { transform: translate(14px, -10px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes sectionOrbFloatTR {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-16px, 14px) scale(1.04); }
    50%  { transform: translate(-30px, 26px) scale(1.1); }
    75%  { transform: translate(-10px, 18px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ── Footer shimmer top line ─────────────────────────────────── */
.footer-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--iub-primary-color),
        var(--iub-secondary-color),
        var(--iub-primary-color)
    );
    background-size: 200% 100%;
    animation: wowShimmer 4s linear infinite;
}

@keyframes wowShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Go-top enhanced ───────────────────────────────────────── */
.go-top.active {
    animation: wowGoTopIn 0.5s ease forwards;
}

@keyframes wowGoTopIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.go-top:hover {
    background-color: var(--iub-secondary-color) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(226, 174, 16, 0.45);
}

/* ── Social icons in header/footer ─────────────────────────── */
.top-header-area a i,
.copyright-area a i {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.top-header-area a:hover i,
.copyright-area a:hover i {
    transform: scale(1.25) rotate(-8deg);
}

/* ── Default button ripple feel ────────────────────────────── */
.default-btn {
    overflow: hidden;
}

.default-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.default-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ── Stagger reveal for cards (JS adds class) ───────────────── */
.wow-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.wow-reveal.wow-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 3D tilt on cards (JS) ─────────────────────────────────── */
.wow-tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .banner-area .carousel-item img {
        transform: none !important;
        animation: none !important;
    }

    .vc-message-section::before,
    .vc-message-section::after,
    .vc-message-section .container::before,
    .latest-news-section::before,
    .upcoming-events-section::before,
    .academic-programs-section::before,
    .announcements-section::before {
        animation: none !important;
    }

    .wow-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    .banner-area .carousel-control-prev,
    .banner-area .carousel-control-next {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
}
