/* =========================================
   HOME PAGE SPECIFIC STYLES
========================================= */

/* 1. POPUP (MODAL) STYLES */
.ahps-popup-wrap,
.ahps-master-wrapper .ahps-popup-wrap { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.75); z-index: 20000; 
    display: none; align-items: center; justify-content: center; 
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; 
}
.ahps-popup-wrap.active,
.ahps-master-wrapper .ahps-popup-wrap.active { display: flex !important; opacity: 1 !important; visibility: visible !important; }

.ahps-popup-content,
.ahps-master-wrapper .ahps-popup-content { 
    position: relative; background: #fff; width: 90%; max-width: 360px; 
    border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.3); 
    transform: scale(0.9); transition: transform 0.3s ease-in-out; 
    z-index: 20001;
}
.ahps-popup-wrap.active .ahps-popup-content,
.ahps-master-wrapper .ahps-popup-wrap.active .ahps-popup-content { transform: scale(1); }

.ahps-popup-close-btn,
.ahps-master-wrapper .ahps-popup-close-btn { 
    position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; 
    background: #eb3f3f; color: #fff; border: 2px solid #fff; border-radius: 50%; 
    font-size: 18px; font-weight: bold; cursor: pointer; display: flex; 
    align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    z-index: 20; transition: background 0.2s; 
}
.ahps-popup-close-btn:hover,
.ahps-master-wrapper .ahps-popup-close-btn:hover { background: #c92929; }

.ahps-popup-body,
.ahps-master-wrapper .ahps-popup-body { 
    position: relative; width: 100%; border-radius: 12px; display: flex; 
    align-items: center; justify-content: center; background: #fdfdfd; padding: 6px;
}
.ahps-popup-body img,
.ahps-master-wrapper .ahps-popup-body img { 
    width: 100%; height: 400px; object-fit: cover; display: block; 
    border-radius: 8px; transition: opacity 0.4s ease-in-out; 
}

.ahps-popup-arrow,
.ahps-master-wrapper .ahps-popup-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; 
    background: rgba(128, 128, 128, 0.75); color: #fff; border: none; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 14px; 
    cursor: pointer; z-index: 10; transition: background 0.2s; 
}
.ahps-popup-arrow:hover,
.ahps-master-wrapper .ahps-popup-arrow:hover { background: rgba(100, 100, 100, 1); }
.ahps-popup-prev,
.ahps-master-wrapper .ahps-popup-prev { left: 16px; } 
.ahps-popup-next,
.ahps-master-wrapper .ahps-popup-next { right: 16px; }

/* 2. VIDEO BANNER */
.ahps-video-banner,
.ahps-master-wrapper .ahps-video-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: #000;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ahps-video-banner video,
.ahps-master-wrapper .ahps-video-banner video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

.ahps-video-map-btn-wrapper,
.ahps-master-wrapper .ahps-video-map-btn-wrapper {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 10;
}
.ahps-video-map-btn,
.ahps-master-wrapper .ahps-video-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 44, 82, 0.85);
    color: #fff;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.ahps-video-map-btn:hover,
.ahps-master-wrapper .ahps-video-map-btn:hover {
    background: #fbbb21;
    color: #0b2c52;
    border-color: #fbbb21;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .ahps-master-wrapper .ahps-video-map-btn-wrapper {
        bottom: 15px;
        left: 15px;
    }
    .ahps-master-wrapper .ahps-video-map-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* 3. ABOUT US SECTION */
.ahps-custom-section {
    --ahps-navy: #15314b; 
    --ahps-gold-exact: #C4A676;     
    --ahps-text-gray: #555555;
    font-family: 'Inter', sans-serif;
    position: relative; 
    overflow: hidden; 
    background: #ffffff;
    padding: 90px 0;
}
.ahps-custom-section * { box-sizing: border-box; }
.ahps-custom-section .container { max-width: 1340px; margin: 0 auto; padding: 0 25px; position: relative; z-index: 2; }
.ahps-custom-section .row { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -20px; }
.ahps-custom-section .col-lg-6 { width: 50%; padding: 0 20px; }

.ahps-bg-waves { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0.6; }

.about__content { position: relative; padding-left: 35px; padding-right: 25px; }
.about__content::before { content: ''; position: absolute; left: 0; top: 15px; bottom: 15px; width: 2.5px; background: var(--ahps-gold-exact); opacity: 0.6; }

.rts__title { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 900; color: var(--ahps-navy); line-height: 1.15; letter-spacing: -0.8px; margin: 0 0 12px 0; }
.ahps-small-est { font-size: 1rem; font-weight: 700; color: var(--ahps-gold-exact); letter-spacing: 2px; margin-bottom: 22px; text-transform: uppercase; }
.rts__description { color: var(--ahps-text-gray); font-size: 1.08rem; line-height: 1.85; margin-bottom: 18px; }
.ahps-navy-bold { color: var(--ahps-navy); font-weight: 700; }

.stroke__text { font-family: 'Inter', sans-serif; font-size: 3.8rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.8px var(--ahps-gold-exact); letter-spacing: 3px; margin: 25px 0 30px 0; line-height: 1; animation: ahpsPulse 3s infinite alternate; }
@keyframes ahpsPulse {
    0% { opacity: 0.5; text-shadow: 0 0 0 rgba(196, 166, 118, 0); }
    100% { opacity: 1; text-shadow: 0 0 15px rgba(196, 166, 118, 0.35); }
}

.ahps-btn-override { display: inline-flex; align-items: center; background: var(--ahps-navy); color: #ffffff; padding: 16px 40px; font-weight: 700; font-size: 1.05rem; border-radius: 50px; text-decoration: none; border: none; transition: all 0.3s ease; box-shadow: 0 8px 22px rgba(21, 49, 75, 0.25); }
.ahps-btn-override span { margin-left: 12px; transition: transform 0.3s ease; }
.ahps-btn-override:hover { background: #0d2133; color: #ffffff; box-shadow: 0 14px 28px rgba(21, 49, 75, 0.35); }
.ahps-btn-override:hover span { transform: translateX(6px); }

.about__slider-container { position: relative; width: 100%; max-width: 620px; margin: 0 auto; }
.ahps-spin-badge { position: absolute; top: -45px; left: -45px; width: 145px; height: 145px; background-color: #ffffff; border-radius: 50%; z-index: 10; box-shadow: 0 12px 35px rgba(21, 49, 75, 0.2); display: flex; align-items: center; justify-content: center; border: 4px solid var(--ahps-navy); }
.ahps-spin-badge svg.spin-text { position: absolute; width: 100%; height: 100%; animation: ahpsSpinText 13s linear infinite; }
.ahps-spin-badge text { font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 800; fill: var(--ahps-navy); letter-spacing: 2.5px; text-transform: uppercase; }
.ahps-spin-inner-circle { width: 56px; height: 56px; background-color: var(--ahps-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; }
.ahps-spin-inner-circle svg { width: 25px; height: 25px; fill: currentColor; }

@keyframes ahpsSpinText { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.about__slider-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 440px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 45px rgba(21, 49, 75, 0.12); border: 7px solid #ffffff; }
.about__slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 1.2s ease-in-out, visibility 1.2s; }
.about__slide.active { opacity: 1; visibility: visible; }
.about__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 4. PILLARS WRAPPER */
.ahps-pillars-wrapper {
    background: linear-gradient(135deg, rgba(21, 49, 75, 0.95) 0%, rgba(10, 25, 40, 0.98) 100%),
    url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
    position: relative; overflow: hidden; font-family: 'Inter', sans-serif;
}
.ahps-pillars-wrapper::before { content: ''; position: absolute; width: 150%; height: 150%; top: -25%; left: -25%; background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%); transform: rotate(20deg); pointer-events: none; }
.ahps-pillars-header { text-align: center; margin-bottom: 30px; position: relative; z-index: 2; }
.ahps-pillars-header p { color: #d1e3f8; font-size: 0.95rem; margin-top: 5px; font-weight: 500; }

.ahps-pillars-card { max-width: 1050px; margin: 0 auto; background: #ffffff; border-radius: 12px; padding: 40px 30px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.5); position: relative; z-index: 2; }
.ahps-pillars-track { display: flex; justify-content: space-between; align-items: center; position: relative; }

.ahps-pillar-item { width: 140px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; opacity: 0; transform: translateY(20px); }
.ahps-pillars-card.ahps-in-view .ahps-pillar-item:nth-child(1) { animation: ahpsSimpleFadeUp 0.6s ease-out 0.2s forwards; }
.ahps-pillars-card.ahps-in-view .ahps-pillar-item:nth-child(3) { animation: ahpsSimpleFadeUp 0.6s ease-out 0.4s forwards; }
.ahps-pillars-card.ahps-in-view .ahps-pillar-item:nth-child(5) { animation: ahpsSimpleFadeUp 0.6s ease-out 0.6s forwards; }
.ahps-pillars-card.ahps-in-view .ahps-pillar-item:nth-child(7) { animation: ahpsSimpleFadeUp 0.6s ease-out 0.8s forwards; }

.ahps-pillar-text { text-align: center; height: 80px; display: flex; flex-direction: column; }
.ahps-text-top { justify-content: flex-end; padding-bottom: 15px; }
.ahps-text-bottom { justify-content: flex-start; padding-top: 15px; }
.ahps-pillar-text h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: #15314b; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.ahps-pillar-text p { font-size: 0.75rem; color: #444; font-weight: 500; line-height: 1.4; font-style: italic; }

.ahps-theme-1 { --theme-color: #15314b; --tri-color: #7bc05b; }
.ahps-theme-2 { --theme-color: #f4a415; --tri-color: #eeb03b; }
.ahps-theme-3 { --theme-color: #0b4c30; --tri-color: #d87247; }
.ahps-theme-4 { --theme-color: #da6945; --tri-color: #4c61cc; }

.ahps-graphic-wrap { position: relative; display: flex; justify-content: center; align-items: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: default; }
.ahps-pillar-item:hover .ahps-graphic-wrap { transform: scale(1.1); }
.ahps-pillar-item:hover .ahps-inner-white { box-shadow: 0 8px 20px var(--theme-color); }

.ahps-outer-ring { width: 110px; height: 110px; border-radius: 50%; position: relative; display: flex; justify-content: center; align-items: center; }
.ahps-outer-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed #a5a5a5; animation: ahpsSpin 12s linear infinite; z-index: 0; }
.ahps-half-fill { position: absolute; left: -2px; width: calc(100% + 4px); height: calc(50% + 2px); background: var(--theme-color); z-index: 1; }
.ahps-half-bottom { bottom: -2px; border-radius: 0 0 110px 110px; }
.ahps-half-top { top: -2px; border-radius: 110px 110px 0 0; }
.ahps-inner-white { width: 64px; height: 64px; background: #ffffff; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); position: relative; z-index: 2; transition: box-shadow 0.3s ease; }
.ahps-pillar-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--theme-color); color: #ffffff; font-size: 0.8rem; font-weight: 700; padding: 4px 0; width: 72px; text-align: center; border-radius: 20px; border: 2px solid #ffffff; z-index: 3; }

.ahps-triangle { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; z-index: 5; }
.ahps-triangle-up { top: -7px; border-bottom: 10px solid var(--tri-color); }
.ahps-triangle-down { bottom: -7px; border-top: 10px solid var(--tri-color); }

.ahps-connector { flex: 1; min-width: 30px; height: 80px; position: relative; opacity: 0; }
.ahps-pillars-card.ahps-in-view .ahps-connector { animation: ahpsSimpleFade 0.6s ease-out 1s forwards; }
.ahps-connector svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ahps-dash-path { fill: none; stroke: #9e9e9e; stroke-width: 2.5; stroke-dasharray: 8, 6; animation: ahpsFlowLine 1s linear infinite; vector-effect: non-scaling-stroke; }
.ahps-connector::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #8a8a8a; z-index: 10; }

@keyframes ahpsSimpleFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ahpsSimpleFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ahpsSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ahpsFlowLine { to { stroke-dashoffset: -14; } }
@keyframes mobileLineFlow { to { background-position: 0 14px; } }

/* 5. SCHOOL WINGS */
.school-wings-section { background-color: #f4f7fb; padding: 80px 20px; font-family: 'Inter', sans-serif; }
.wings-header { text-align: center; max-width: 800px; margin: 0 auto 50px auto; display: flex; flex-direction: column; align-items: center; }
.wings-subtitle { font-family: sans-serif; font-size: 0.85rem; letter-spacing: 4px; color: #15314b; text-transform: uppercase; font-weight: 800; margin-bottom: 12px; }
.wings-title { color: #0b2c52; font-size: 2.2rem; margin: 0; font-family: 'Playfair Display', serif; }
.wings-header-divider { width: 80px; height: 4px; background: #dca331; border-radius: 4px; margin-top: 15px; }

.wings-container { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.wing-card { background: #ffffff; border-radius: 16px; overflow: hidden; border: 2px solid #15314b; box-shadow: 0 10px 30px rgba(21, 49, 75, 0.08); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; position: relative; top: 0; }
.wing-card:hover { top: -10px; box-shadow: 0 20px 40px rgba(21, 49, 75, 0.18); border-color: #dca331; }

.wing-image-wrap { width: 100%; height: 220px; position: relative; overflow: hidden; border-bottom: 1px solid rgba(21, 49, 75, 0.1); }
.wing-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.wing-card:hover .wing-image-wrap img { transform: scale(1.08) rotate(1deg); }
.wing-image-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(11,44,82,0.8), transparent); }

.wing-badge { position: absolute; bottom: 15px; right: 15px; background: #dca331; color: #15314b; padding: 6px 16px; border-radius: 30px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.wing-content { padding: 24px 20px; display: flex; flex-direction: column; flex-grow: 1; align-items: flex-start; }
.wing-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #15314b; margin-bottom: 12px; margin-top: 0; }
.wing-content p { color: #555555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

.wing-btn { display: inline-flex; align-items: center; gap: 8px; background: #15314b; color: #ffffff; font-weight: 600; font-size: 0.85rem; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 2px solid #15314b; margin-top: auto; }
.wing-btn svg { width: 18px; height: 18px; fill: none; transition: transform 0.3s ease; }
.wing-btn:hover { background: #dca331; border-color: #dca331; color: #15314b; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(220, 163, 49, 0.3); }
.wing-btn:hover svg { transform: translateX(5px); }

/* 6. LATEST UPDATES & EVENTS */
.ahps-updates-section { background: #fdfdfd; padding: 80px 20px; font-family: 'Inter', sans-serif; border-top: 1px solid #eef2f7; }
.ahps-updates-container { max-width: 1200px; margin: 0 auto; }
.ahps-updates-header-block { text-align: center; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; }
.ahps-updates-subtitle { font-family: sans-serif; font-size: 0.85rem; letter-spacing: 3px; color: #0b2c52; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.ahps-updates-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 2.5rem; color: #0b2c52; margin: 0; line-height: 1.2; }
.ahps-updates-line { width: 60px; height: 3px; background: #dca331; border-radius: 2px; margin: 15px auto 0; }

.ahps-updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ahps-fixed-box { height: 480px; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 40px rgba(11, 44, 82, 0.08); }

.ahps-img-slider-wrapper { position: relative; width: 100%; background: #000; border: 2px solid #eef2f7; }
.ahps-img-slider-track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.ahps-img-slide { flex: 0 0 100%; min-width: 100%; position: relative; height: 100%; }
.ahps-img-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 6s ease; }
.ahps-img-slide:hover img { transform: scale(1.05); }

.ahps-slide-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 30px 35px; background: linear-gradient(to top, rgba(11,44,82,0.95) 0%, rgba(11,44,82,0.7) 50%, transparent 100%); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.ahps-slide-date { font-weight: 700; color: #dca331; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.ahps-slide-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 600; margin: 0; line-height: 1.2; color: #ffffff; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; width: fit-content; }
.ahps-slide-title:hover { color: #dca331; }
.ahps-slide-title::after { content: '\f105'; font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free'; font-weight: 900; margin-left: 10px; font-size: 1.5rem; opacity: 0; transition: all 0.3s ease; transform: translateX(-10px); }
.ahps-slide-title:hover::after { opacity: 1; transform: translateX(0); }
.ahps-slide-desc { font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin: 5px 0 0 0; font-weight: 300; }

.ahps-notice-board { background: linear-gradient(180deg, #f8fafd 0%, #ffffff 100%); position: relative; display: flex; flex-direction: column; border: 2px solid #0b2c52; border-top: 6px solid #dca331; }
.ahps-notice-header { padding: 25px 30px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eef2f7; z-index: 2; background: #ffffff; }
.ahps-notice-title-wrap { display: flex; align-items: center; gap: 12px; }
.ahps-notice-title { color: #0b2c52; font-family: 'Playfair Display', serif; font-size: 1.7rem; margin: 0; font-weight: 700; }

.ahps-pulse-dot { width: 10px; height: 10px; background-color: #e74c3c; border-radius: 50%; display: inline-block; position: relative; margin-left: 5px; }
.ahps-pulse-dot::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border: 2px solid #e74c3c; border-radius: 50%; animation: pulse 2s linear infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.ahps-notice-body {
    flex: 1;
    padding: 15px 5px 15px 15px;
    overflow-y: auto;
    position: relative;
    max-height: 420px;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #f1f5f9;
}
.ahps-notice-body::-webkit-scrollbar {
    width: 6px;
}
.ahps-notice-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.ahps-notice-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}
.ahps-notice-item { background: #ffffff; padding: 20px 25px; margin: 5px 0; border-radius: 8px; box-shadow: 0 4px 12px rgba(11, 44, 82, 0.04); border: 1px solid #eef2f7; border-left: 4px solid #0b2c52; display: flex; align-items: flex-start; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.ahps-notice-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 10px 20px rgba(220, 163, 49, 0.12); border-color: #dca331; border-left: 4px solid #dca331; background: #fffcf7; }
.ahps-notice-text-wrap { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ahps-notice-meta { font-size: 0.75rem; color: #64748b; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.ahps-notice-meta span { background: #0b2c52; color: #ffffff; padding: 4px 12px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ahps-notice-link { color: #1e293b; font-weight: 400; text-decoration: none; font-size: 0.95rem; line-height: 1.6; transition: color 0.3s; }
.ahps-notice-item:hover .ahps-notice-link { color: #0b2c52; font-weight: 500; }

@keyframes ahpsScrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* 7. IMPORTANT LINKS SLIDER */
.ahps-links-section { background: #f4f5f7; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; overflow: hidden; }
.ahps-links-heading-block { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.ahps-links-sub { display: block; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 3px; color: var(--primary-blue); text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.ahps-links-line { width: 60px; height: 3px; background: #dca331; border-radius: 2px; margin: 15px auto 0; }
.ahps-links-track { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; max-width: 1200px; margin: 0 auto; padding: 10px 20px 30px 20px; }
.ahps-links-track::-webkit-scrollbar { display: none; }
.ahps-link-card { display: block; text-decoration: none; flex: 0 0 calc(20% - 12px); border: 1px solid var(--primary-blue); border-radius: 12px; padding: 6px; background: #fff; transition: 0.4s; cursor: pointer; }
.ahps-link-card:hover { box-shadow: 0 10px 25px rgba(11, 44, 77, 0.15); transform: translateY(-5px); }
.ahps-link-img { position: relative; width: 100%; aspect-ratio: 1 / 1.1; border-radius: 6px; overflow: hidden; background: #000; }
.ahps-link-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.9); }
.ahps-link-card:hover .ahps-link-img img { transform: scale(1.08); filter: brightness(1); }
.ahps-link-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(11, 44, 77, 0.95), transparent); padding: 30px 15px 15px; text-align: center; }
.ahps-link-overlay h3 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 400; margin: 0; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }

/* 8. LEARNING BEYOND BOOKS (INFRASTRUCTURE TABS) */
.lbb-section { background: #fdfdfd; font-family: var(--font-body, sans-serif); }
.lbb-container { max-width: 1250px; margin: 0 auto; }
.lbb-top-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.lbb-header-left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lbb-subtitle { font-family: sans-serif; font-size: 0.85rem; letter-spacing: 3px; color: #0b2c52; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.lbb-line { width: 60px; height: 3px; background: #dca331; border-radius: 2px; margin-top: 15px;}
.btn-view-all { background: #0b2c52; color: #ffffff; padding: 10px 24px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(11, 44, 77, 0.15); }
.btn-view-all:hover { background: #dca331; color: #0b2c52; transform: translateY(-2px); }
.btn-view-all svg { width: 16px; height: 16px; fill: none; transition: 0.3s; }
.btn-view-all:hover svg { transform: translateX(5px); }

.lbb-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: stretch; }
.lbb-tabs-wrapper { display: flex; flex-direction: column; gap: 12px; }
.lbb-tab { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; background: #ffffff; border: 1px solid #eef2f7; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.lbb-tab.active { background: #f0f5fa; border-left: 6px solid #0b2c52; box-shadow: 0 8px 20px rgba(11, 44, 77, 0.08); border-color: #d1e0f0; }
.lbb-tab:hover:not(.active) { border-color: #0b2c52; transform: translateX(4px); }
.lbb-tab-info h4 { font-size: 1.1rem; font-weight: 700; color: #333; margin: 0; transition: 0.3s; }
.lbb-tab.active .lbb-tab-info h4 { color: #0b2c52; }
.lbb-tab-line { width: 0; height: 2px; background: #dca331; margin-top: 6px; transition: width 0.4s ease; }
.lbb-tab.active .lbb-tab-line { width: 45px; }
.lbb-tab-btn { background: transparent; border: 1px solid #0b2c52; padding: 8px 18px; border-radius: 25px; font-size: 0.85rem; font-weight: 700; color: #0b2c52; transition: all 0.3s ease; white-space: nowrap; }
.lbb-tab.active .lbb-tab-btn { background: #0b2c52; color: #ffffff; border-color: #0b2c52; box-shadow: 0 4px 10px rgba(11, 44, 77, 0.2); }

.lbb-display-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: #000; height: 100%; min-height: 0; }
.lbb-display-wrapper a { display: block; position: absolute; inset: 0; }
.lbb-display-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease-in-out, transform 3s ease; }
.lbb-display-wrapper:hover .lbb-display-img { transform: scale(1.05); }
.lbb-fade-out { opacity: 0; }
.lbb-fade-in { opacity: 1; }

/* RESPONSIVE QUERIES */
@media (max-width: 1199px) {
    .rts__title { font-size: 2.8rem; }
    .about__slider-container { max-width: 520px; }
    .about__slider-wrapper { min-height: 380px; }
}

@media (max-width: 991px) {
    .wings-container { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
    .ahps-custom-section { padding: 60px 0; }
    .ahps-custom-section .col-lg-6 { width: 100%; }
    .ahps-custom-section .row { flex-direction: column; gap: 50px; }
    .about__content { padding-left: 20px; padding-right: 0; }
    .rts__title { font-size: 2.5rem; }
    .about__slider-container { max-width: 100%; margin-top: 30px; }
    .about__slider-wrapper { aspect-ratio: 16 / 9; min-height: auto; }
    
    .ahps-spin-badge { width: 115px; height: 115px; top: -25px; left: 10px; border-width: 3px; }
    .ahps-spin-badge text { font-size: 10.5px; }
    .ahps-spin-inner-circle { width: 44px; height: 44px; }
    .ahps-spin-inner-circle svg { width: 20px; height: 20px; }

    .ahps-pillars-card { padding: 40px 20px; }
    .ahps-pillars-track { flex-direction: column; gap: 30px; }
    .ahps-connector { display: none; }
    .ahps-pillars-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: linear-gradient(to bottom, transparent 50%, #b0b0b0 50%); background-size: 2px 14px; animation: mobileLineFlow 1s linear infinite; z-index: 1; }
    .ahps-pillar-item { width: 100%; }
    .ahps-pillar-text { height: auto; padding: 10px 0 !important; }
    .ahps-item-reverse { flex-direction: column-reverse; }
    .ahps-triangle { display: none; }
}

@media (max-width: 950px) {
    .ahps-updates-grid { grid-template-columns: 1fr; }
    .lbb-grid { grid-template-columns: 1fr; } 
    .lbb-display-wrapper { order: -1; min-height: 350px; } 
    .lbb-top-bar { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 768px) {
    .ahps-master-wrapper .ahps-video-banner { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .ahps-master-wrapper .ahps-video-banner video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .wings-container { grid-template-columns: 1fr; max-width: 450px; }
    .school-wings-section { padding: 50px 20px; }
    .ahps-link-card { flex: 0 0 calc(50% - 7.5px); }
}

@media (max-width: 575px) {
    .rts__title { font-size: 2.1rem; }
    .stroke__text { font-size: 2.6rem; }
    .ahps-btn-override { padding: 14px 30px; font-size: 0.95rem; }
    .ahps-spin-badge { width: 95px; height: 95px; top: -20px; left: 5px; }
    .ahps-spin-badge text { font-size: 9px; letter-spacing: 1.5px; }
    .ahps-spin-inner-circle { width: 36px; height: 36px; }
    .ahps-spin-inner-circle svg { width: 16px; height: 16px; }
    .ahps-fixed-box { height: 420px; }
    .ahps-slide-title { font-size: 1.8rem; }
    .ahps-notice-item { margin: 8px 15px; padding: 15px 20px; }
    .lbb-display-wrapper { min-height: 250px; } 
    .lbb-tab { padding: 15px; } 
    .lbb-tab-btn { padding: 6px 12px; font-size: 0.75rem; } 
    .lbb-tab-info h4 { font-size: 1rem; }
    .ahps-link-card { flex: 0 0 calc(65% - 10px); }
}

/* =========================================
   6. INSTAGRAM FEED SECTION STYLES
========================================= */
.ahps-instagram-section {
    padding: 70px 20px 80px;
    background: #ffffff;
    position: relative;
}

.insta-heading-wrap {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.insta-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(225, 48, 108, 0.08);
    color: #e1306c;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insta-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    color: #0b2c52;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.insta-section-title .insta-handle {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insta-section-subtitle {
    color: #64748b;
    font-size: 0.98rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.insta-grid {
    max-width: 1200px;
    margin: 0 auto 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insta-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 20px rgba(11, 44, 82, 0.08);
    background: #f1f5f9;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.insta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 44, 82, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    padding: 24px;
    text-align: center;
    transition: opacity 0.35s ease;
}

.insta-overlay svg {
    width: 46px;
    height: 46px;
    fill: #ffffff;
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insta-overlay .insta-card-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 90%;
    line-height: 1.4;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.insta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 44, 82, 0.18);
}

.insta-card:hover img {
    transform: scale(1.08);
}

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

.insta-card:hover .insta-overlay svg {
    transform: scale(1);
}

.insta-card:hover .insta-overlay .insta-card-caption {
    transform: translateY(0);
}

.insta-cta {
    text-align: center;
}

.btn-insta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 999px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-insta i {
    font-size: 1.2rem;
}

.btn-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(220, 39, 67, 0.42);
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .ahps-instagram-section { padding: 55px 20px 65px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .ahps-instagram-section { padding: 45px 16px 55px; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 540px; }
    .insta-section-title { font-size: 1.85rem; }
    .insta-overlay svg { width: 38px; height: 38px; }
    .btn-insta { padding: 12px 28px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .insta-grid { grid-template-columns: 1fr; max-width: 360px; }
}

