/***************************
 IMAGE GROUP OF SCHOOLS
 Modern, Mobile-First Website CSS (v2)
****************************/

:root {
    --primary: #1a5f7a;
    --primary-dark: #0d3d52;
    --primary-light: #2a8faf;
    --secondary: #c84b31;
    --secondary-dark: #a03a23;
    --accent: #f9d423;
    --accent-dark: #e1a800;
    --success: #28a745;
    --light: #f5f8fb;
    --dark: #0f1a2b;
    --text: #2b2f3a;
    --text-light: #6b7280;
    --white: #ffffff;
    --border: #e5e9f0;
    --shadow-sm: 0 2px 8px rgba(15,26,43,.06);
    --shadow: 0 6px 20px rgba(15,26,43,.08);
    --shadow-hover: 0 14px 40px rgba(15,26,43,.14);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all .35s cubic-bezier(.22,.61,.36,1);
    --container-px: clamp(14px, 4vw, 28px);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;       /* modern browsers — does NOT break position:sticky on descendants */
    overflow-x: hidden;     /* fallback for older browsers */
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

img,svg { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: var(--transition); }
button { border:none; background:none; cursor:pointer; font:inherit; }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: .85rem;
}
.top-bar a { color: var(--accent); margin: 0 6px; transition: var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar i { color: var(--accent); }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: 0 6px 24px rgba(15,26,43,.12);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    line-height: 1.1;
}
.navbar-brand .brand-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,95,122,.25);
}
.navbar-brand .brand-logo img,
.navbar-brand .brand-logo svg { width:100%; height:100%; }
.navbar-brand .brand-text {
    display: flex; flex-direction: column;
    font-size: 1rem; font-weight: 800;
    color: var(--primary);
}
.navbar-brand .brand-text small {
    font-size: .65rem; font-weight: 600;
    color: var(--secondary);
    letter-spacing: .4px;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1.5px solid var(--border) !important;
    border-radius: 8px;
    padding: 7px 10px !important;
    transition: var(--transition);
}
.navbar-toggler:focus { box-shadow:none !important; }
.navbar-toggler-icon {
    width: 22px; height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a5f7a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 600;
    font-size: .95rem;
    color: var(--dark) !important;
    padding: 18px 14px !important;
    position: relative;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Normalize button nav-links to look like anchor links */

.nav-link:hover::after, .nav-link.active::after { width: 26px; }

.dropdown-menu {
    border: none;
    box-shadow: 0 12px 36px rgba(15,26,43,.14);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 4px;
    min-width: 220px;
}
.dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-item:hover { background: var(--light); color: var(--primary); }
.dropdown-item > i { color: var(--primary); width: 16px; text-align: center; }

.btn-login {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white) !important;
    padding: 9px 22px !important;
    border-radius: 50px;
    margin-left: 10px;
    box-shadow: 0 4px 14px rgba(200,75,49,.35);
}
.btn-login:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200,75,49,.45);
    color: var(--white) !important;
}
.btn-login::after { display:none; }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}
.hero-slide {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    /* background-image is set inline via style="..." — we move it onto ::after so text doesn't scale */
    background-size: cover;
    background-position: center;
}
.hero-slide::before {
    content:'';
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(13,61,82,.92) 0%, rgba(26,95,122,.75) 55%, rgba(26,95,122,.45) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(249,212,35,.95);
    color: var(--dark);
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .82rem;
    margin-bottom: 16px;
    animation: slideInDown .8s .2s both;
}
.hero-title {
    font-size: clamp(1.85rem, 5.5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
    animation: slideInLeft 1s .35s both;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: clamp(.95rem, 2.4vw, 1.2rem);
    color: rgba(255,255,255,.92);
    margin-bottom: 26px;
    max-width: 620px;
    animation: slideInLeft 1s .55s both;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
    animation: slideInUp 1s .75s both;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    transition: var(--transition);
}
.btn-primary-hero {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 8px 22px rgba(200,75,49,.4);
}
.btn-primary-hero:hover { transform: translateY(-3px); color: var(--white); box-shadow: 0 14px 30px rgba(200,75,49,.5); }
.btn-outline-hero {
    background: rgba(255,255,255,.08);
    color: var(--white);
    border: 2px solid rgba(255,255,255,.45);
    backdrop-filter: blur(6px);
}
.btn-outline-hero:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    max-width: 520px;
    animation: fadeIn 1s 1s both;
}
.hero-stats .stat-num {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stats .stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* slider controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    background: rgba(0,0,0,.25);
    opacity: 0;
    transition: var(--transition);
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: 1; }
.hero-slider .carousel-indicators {
    margin-bottom: 22px;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 28px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.5);
    border: none;
}
.hero-slider .carousel-indicators .active { background: var(--accent); }

/* Animations */
@keyframes slideInDown { from { opacity:0; transform:translateY(-20px);} to{ opacity:1; transform:none;} }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-26px);} to{ opacity:1; transform:none;} }
@keyframes slideInUp { from { opacity:0; transform:translateY(22px);} to{ opacity:1; transform:none;} }
@keyframes fadeIn { from { opacity:0;} to{ opacity:1;} }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@keyframes spin { to { transform: rotate(360deg);} }
@keyframes pulse { 0%,100% {transform:scale(1);} 50% {transform:scale(1.06);} }

/* zoomKenBurns for slider bg - applied as a slow background-size pulse so text is NOT scaled */
.hero-slide.kb { animation: kb 16s ease-in-out infinite alternate; background-size: 110%; }
@keyframes kb {
    from { background-size: 110%; background-position: 50% 50%; }
    to   { background-size: 122%; background-position: 52% 48%; }
}

/* ---------- Notice Ticker (single-line, no wrap) ---------- */
.notice-section {
    background: linear-gradient(135deg, #fff8d6, #fff3a8);
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent-dark);
    padding: 0;
    overflow: hidden;
}
.notice-wrap {
    display: flex;
    align-items: center;
    height: 44px;
    gap: 12px;
}
.notice-label {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    padding: 8px 14px;
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    height: 100%;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 24px;
}
.notice-label i { animation: pulse 1.6s ease-in-out infinite; }
.notice-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker 38s linear infinite;
    will-change: transform;
}
.notice-track:hover { animation-play-state: paused; }
.notice-track a {
    color: var(--dark);
    font-weight: 600;
    font-size: .9rem;
    padding: 0 22px;
    display: inline-flex; align-items: center; gap: 8px;
    border-right: 1px solid rgba(0,0,0,.12);
    white-space: nowrap;
}
.notice-track a:hover { color: var(--secondary); }
.notice-track a i { color: var(--secondary); }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section Styles ---------- */
.section-padding { padding: clamp(50px, 8vw, 90px) 0; }
.section-title { text-align: center; margin-bottom: clamp(30px, 5vw, 56px); }
.section-title .eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}
.section-title p {
    color: var(--text-light);
    max-width: 620px;
    margin: 22px auto 0;
    font-size: .98rem;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--white);
    padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 26px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content:'';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,95,122,.05), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-bottom-color: var(--secondary); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 22px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(26,95,122,.25);
}
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}
.feature-card p {
    font-size: .92rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Quick Stats Strip ---------- */
.quick-stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 36px 0;
    color: var(--white);
}
.quick-stats .stat-item { text-align: center; padding: 10px; }
.quick-stats .stat-item h3 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 4px;
}
.quick-stats .stat-item span {
    font-size: .85rem; opacity: .9;
    text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- About ---------- */
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.about-image img { width: 100%; transition: var(--transition); }
.about-image:hover img { transform: scale(1.05); }
.about-exp {
    position: absolute;
    bottom: -20px; right: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 28px rgba(200,75,49,.35);
}
.about-exp h3 { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1; }
.about-exp span { font-size: .82rem; opacity: .95; }
.about-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}
.about-content p { color: var(--text-light); margin-bottom: 16px; font-size: .96rem; }
.about-list { list-style: none; padding: 0; margin: 22px 0; }
.about-list li {
    padding: 8px 0;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    font-size: .94rem;
}
.about-list li i { color: var(--success); font-size: 1.1rem; }

/* ---------- Director ---------- */
.director-section { background: var(--light); }
.director-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; max-width: 350px; aspect-ratio: 4/5; }
.director-image img { width: 100%; height: 100%; object-fit: cover; }
.director-quote {
    background: var(--white);
    padding: clamp(22px, 3.5vw, 38px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    margin-left: 0;
    z-index: 2;
}
.director-quote::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    opacity: .12;
    position: absolute;
    top: -10px; left: 18px;
    font-family: Georgia, serif;
    line-height: 1;
}
.director-quote p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 22px;
}
.director-name { font-weight: 800; color: var(--dark); font-size: 1.1rem; }
.director-role { color: var(--secondary); font-weight: 600; font-size: .9rem; }
@media (min-width: 992px) {
    .director-quote { margin-left: -40px; }
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%; height: 240px; object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,26,43,.85) 0%, rgba(15,26,43,.2) 50%, transparent 100%);
    display: flex; align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-weight: 700; margin: 0; font-size: 1.05rem; }

/* ---------- News Cards ---------- */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-image { height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-image img { transform: scale(1.1); }
.news-content { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date {
    display: inline-block;
    background: rgba(26,95,122,.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.news-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}
.news-content h3 a:hover { color: var(--primary); }
.news-content p { color: var(--text-light); font-size: .9rem; margin-bottom: 14px; flex: 1; }
.read-more {
    color: var(--secondary);
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.read-more:hover { gap: 12px; }

/* ---------- App Section ---------- */
.app-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2740 100%);
    position: relative;
    overflow: hidden;
}
.app-section::before {
    content:'';
    position: absolute;
    top: -60%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(249,212,35,.08), transparent 70%);
    border-radius: 50%;
}
.app-section h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.app-section p {
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    margin-bottom: 22px;
}
.app-features { margin-top: 22px; list-style: none; padding: 0; }
.app-features li {
    color: rgba(255,255,255,.92);
    padding: 6px 0;
    display: flex; align-items: center; gap: 10px;
    font-size: .94rem;
}
.app-features li i { color: var(--accent); }

.btn-app {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--dark);
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    margin-top: 8px;
    box-shadow: 0 10px 28px rgba(249,212,35,.3);
    transition: var(--transition);
}
.btn-app:hover { transform: translateY(-3px); color: var(--dark); box-shadow: 0 14px 36px rgba(249,212,35,.45); }
.btn-app i { font-size: 1.4rem; }

.btn-app-store {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.08);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 12px;
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 600;
    transition: var(--transition);
}
.btn-app-store:hover { background: rgba(255,255,255,.16); color: var(--white); }
.btn-app-store i { font-size: 1.6rem; }

.qr-code {
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
}
.qr-code img { width: 170px; height: 170px; display: block; }

/* ---------- Contact ---------- */
.contact-info-card {
    background: var(--white);
    padding: 28px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    text-align: center;
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.contact-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 16px;
}
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-light); margin-bottom: 4px; font-size: .94rem; word-break: break-word; }
.contact-form { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-control { padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: .96rem; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .18rem rgba(26,95,122,.14); }

/* ---------- Floating Action Buttons (mobile-friendly) ---------- */
.floating-actions {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 998;
    display: flex; flex-direction: column;
    gap: 10px;
}
/* NOTE: do NOT use ".fab" - that's Font Awesome Brands. We use ".float-btn". */
.float-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: var(--transition);
    text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); color: var(--white); }
.float-btn.float-whatsapp { background: #25d366; }
.float-btn.float-call     { background: var(--primary); }
.float-btn.float-app      { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, #07101e 100%);
    color: rgba(255,255,255,.78);
    padding: 64px 0 0;
}
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); padding: 4px; }
.footer-brand .brand-logo svg, .footer-brand .brand-logo img { width: 100%; height: 100%; }
.footer-about p { line-height: 1.75; margin-bottom: 20px; font-size: .92rem; }
.footer-title {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after { content:''; position:absolute; bottom:0; left:0; width:36px; height:3px; background: var(--secondary); border-radius:2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,.78);
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .92rem;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex; align-items: flex-start;
    gap: 12px; margin-bottom: 14px;
    font-size: .92rem;
}
.footer-contact i { color: var(--secondary); font-size: 1.05rem; margin-top: 3px; flex-shrink: 0; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); transform: translateY(-3px); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom .powered {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06);
    padding: 6px 14px;
    border-radius: 50px;
    color: rgba(255,255,255,.8);
}
.footer-bottom .powered a {
    color: var(--accent); font-weight: 700;
    transition: var(--transition);
}
.footer-bottom .powered a:hover { color: var(--white); }

/* ---------- Admin (unchanged) ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 20px; }
.login-card { background: var(--white); padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; max-width: 440px; }
.login-card h2 { text-align: center; margin-bottom: 26px; color: var(--dark); font-weight: 800; }
.admin-sidebar { min-height: 100vh; background: var(--dark); color: var(--white); padding: 30px 0; position: fixed; width: 260px; }
.admin-sidebar-brand { text-align: center; padding: 0 20px 26px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.admin-nav { list-style: none; padding: 0; }
.admin-nav li a { display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: rgba(255,255,255,.8); font-weight: 500; transition: var(--transition); border-left: 4px solid transparent; }
.admin-nav li a:hover, .admin-nav li a.active { background: rgba(255,255,255,.05); color: var(--white); border-left-color: var(--secondary); }
.admin-main { margin-left: 260px; padding: 28px; min-height: 100vh; background: #f5f7fa; }
.stat-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card h3 { font-size: 1.8rem; font-weight: 800; margin: 0; color: var(--dark); }
.stat-card span { color: var(--text-light); font-size: .9rem; }
.admin-table { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table th { background: var(--light); font-weight: 700; color: var(--dark); border: none; padding: 14px 18px; }
.admin-table td { padding: 14px 18px; vertical-align: middle; }
.btn-action { padding: 6px 12px; border-radius: 6px; font-size: .82rem; font-weight: 600; }

/* ---------- Preloader (with pure-CSS fallback auto-hide) ---------- */
.preloader {
    position: fixed; inset: 0;
    background: var(--white); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease;
    animation: preloaderAutoHide 3s forwards;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
@keyframes preloaderAutoHide {
    0%, 80% { opacity: 1; pointer-events: auto; }
    100%    { opacity: 0; pointer-events: none; visibility: hidden; }
}
.spinner { width: 48px; height: 48px; border: 4px solid rgba(26,95,122,.15); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }

/* ---------- Scroll Top ---------- */
.scroll-top {
    position: fixed; bottom: 24px; right: 16px;
    width: 44px; height: 44px;
    background: var(--secondary); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 999;
    box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); transform: translateY(-3px); }

/* =========================
   MOBILE-FIRST RESPONSIVE
   ========================= */

/* Do NOT override Bootstrap's .container padding — it conflicts with row gutters. */

/* large desktop and below */
@media (max-width: 1199.98px) {
    .nav-link { padding: 16px 10px !important; font-size: .9rem; }
}

/* tablet & mobile menu (offcanvas style) */
@media (max-width: 991.98px) {
    .navbar-brand { font-size: .95rem; }
    .navbar-brand .brand-logo { width: 44px; height: 44px; }
    .navbar-brand .brand-text { font-size: .92rem; }
    .navbar-brand .brand-text small { font-size: .58rem; }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 86%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        z-index: 1040;
        padding: 22px;
        overflow-y: auto;
        box-shadow: 0 0 60px rgba(0,0,0,.25);
        transform: translateX(-105%);
        transition: transform .35s ease;
        display: block !important;
        visibility: hidden;
    }
    .navbar-collapse.show { transform: translateX(0); visibility: visible; }
    /* .show handled above via transform for off-screen safety */
    .navbar-collapse::before {
        content: 'Menu';
        display: block;
        font-weight: 800; color: var(--primary);
        font-size: 1.1rem;
        margin: 0 0 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    .navbar-nav { gap: 4px; }
    .nav-item { width: 100%; }
    .nav-link {
        padding: 14px 14px !important;
        border-radius: 10px;
        background: var(--light);
        font-size: .98rem;
    }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { background: var(--primary); color: var(--white) !important; }
    .dropdown-menu { box-shadow: none; border: 1px solid var(--border); margin-top: 6px; }
    .btn-login {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-left: 0 !important;
        margin-top: 6px;
        padding: 14px !important;
        background: linear-gradient(135deg, #e04e2f, #c0392b) !important;
        color: #fff !important;
        border-radius: 10px;
    }
    .btn-login:hover { background: #c0392b !important; color: #fff !important; }

    /* Mobile dropdown — show inline inside offcanvas */
    .navbar-collapse .dropdown-menu {
        position: static !important; float: none; width: 100%;
        margin-top: 2px !important; border: none;
        padding: 4px 0 4px 12px; background: transparent; box-shadow: none;
    }
    .navbar-collapse .dropdown-item {
        padding: 10px 14px; border-radius: 8px; margin: 2px 0;
        color: #1e293b; background: #f1f5f9;
    }
    .navbar-collapse .dropdown-item:hover { background: #2563eb; color: #fff; }
    .navbar-collapse .dropdown-item i { margin-right: 8px; color: #2563eb; }
    .navbar-collapse .dropdown-toggle::after { margin-left: 6px; }
    .navbar-collapse .dropdown-divider { margin: 6px 0; opacity: .3; }

    /* backdrop */
    body.menu-open::before {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1035;
        animation: fadeIn .3s both;
    }
    body.menu-open { overflow: hidden; }

    .hero-slide { min-height: 70vh; padding: 60px 0 50px; }
    .director-quote { margin-left: 0; margin-top: 24px; }
    .admin-sidebar { position: relative; width: 100%; min-height: auto; }
    .admin-main { margin-left: 0; }
}

/* phone */
@media (max-width: 767.98px) {
    .top-bar { font-size: .78rem; padding: 6px 0; }
    .top-bar .container > div { justify-content: center !important; text-align: center; }
    .top-bar .col-md-6 { padding: 2px 0; }
    .top-bar .mx-3 { display: none; }

    .navbar { padding: 4px 0; }
    .navbar-brand .brand-logo { width: 40px; height: 40px; }
    .navbar-brand .brand-text { font-size: .85rem; line-height: 1; }
    .navbar-brand .brand-text small { font-size: .54rem; }

    .hero-slide { min-height: auto; padding: 56px 0 44px; }
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: .94rem; }
    .hero-actions { gap: 8px; }
    .hero-btn { padding: 11px 18px; font-size: .88rem; flex: 1; justify-content: center; min-width: 140px; }
    .hero-stats { gap: 8px; margin-top: 22px; }
    .hero-stats .stat-item { padding: 0; }

    .notice-wrap { height: 40px; gap: 8px; }
    .notice-label { font-size: .72rem; padding: 6px 18px 6px 10px; }
    .notice-track a { padding: 0 14px; font-size: .82rem; }

    .section-padding { padding: 50px 0; }

    .feature-card { padding: 24px 18px; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.4rem; margin-bottom: 18px; }

    .about-exp { right: 12px; padding: 12px 16px; }
    .about-exp h3 { font-size: 1.5rem; }

    .footer { padding-top: 44px; }
    .footer-bottom { flex-direction: column; text-align: center; margin-top: 36px; }

    .scroll-top { bottom: 70px; right: 14px; width: 40px; height: 40px; }
    .floating-actions { right: 14px; bottom: 124px; }
    .float-btn { width: 48px; height: 48px; font-size: 1.2rem; }

    .news-image { height: 180px; }
    .gallery-item img { height: 200px; }

    .qr-code img { width: 140px; height: 140px; }
    .btn-app-store { margin-left: 0; margin-top: 8px; display: inline-flex; }
}

/* very small phones */
@media (max-width: 380px) {
    .hero-title { font-size: 1.45rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-stats .stat-num { font-size: 1.2rem; }
    .hero-stats .stat-label { font-size: .65rem; }
    .navbar-brand .brand-text { font-size: .8rem; }
    .hero-btn { padding: 10px 14px; font-size: .82rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Page Banner (sub pages) ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
    color: var(--white);
    padding: clamp(40px, 6vw, 70px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content:'';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E");
}
.page-banner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 8px; position: relative; }
.page-banner .breadcrumb { background: transparent; justify-content: center; margin: 0; padding: 0; position: relative; }
.page-banner .breadcrumb a, .page-banner .breadcrumb .active { color: rgba(255,255,255,.92); font-size: .9rem; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }


/* Mobile menu click fix — prevent links from disappearing before click registers */
@media (max-width: 991.98px) {
    .navbar-collapse.show .nav-link,
    .navbar-collapse.show .dropdown-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        position: relative;
        z-index: 1050;
    }
    /* Prevent backdrop from intercepting link clicks */
    .navbar-collapse.show {
        pointer-events: auto;
    }
    body.menu-open::before {
        pointer-events: none; /* let clicks pass through backdrop to menu */
    }
}
