/* ========================================
   Noor Girls Hostel — Privacy Policy
   Premium UI Stylesheet
   ======================================== */

:root {
    --navy: #1a2752;
    --navy-dark: #0f1a3a;
    --navy-light: #2d3d6e;
    --pink: #e91e63;
    --pink-soft: #f8bbd0;
    --pink-bg: #fdf2f6;
    --gold: #d4a64a;
    --bg: #fafbfd;
    --bg-alt: #f3f5fa;
    --white: #ffffff;
    --text: #1f2438;
    --text-soft: #5b6478;
    --text-muted: #8a92a6;
    --border: #e7eaf2;
    --shadow-sm: 0 2px 8px rgba(26, 39, 82, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 39, 82, 0.08);
    --shadow-lg: 0 18px 40px rgba(26, 39, 82, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--navy));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
}

.brand-tag {
    font-size: 0.82rem;
    color: var(--pink);
    font-weight: 500;
    margin-top: 2px;
}

.brand-tag i { margin-right: 4px; }

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--pink-bg);
    color: var(--navy);
    border: 1px solid var(--pink-soft);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.meta-pill i { color: var(--pink); }

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(233, 30, 99, 0.12), transparent 60%),
        radial-gradient(1000px 500px at -10% 110%, rgba(26, 39, 82, 0.10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    padding: 70px 28px 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.hero-badge i { color: var(--pink); }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 500;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.stat i {
    color: var(--pink);
    font-size: 1.05rem;
}

/* ===== Layout ===== */
.layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 28px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== TOC Sidebar ===== */
.toc-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.toc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title i { color: var(--pink); }

.toc-list { list-style: none; }

.toc-list li { margin: 2px 0; }

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.toc-link:hover {
    background: var(--pink-bg);
    color: var(--navy);
}

.toc-link.active {
    background: linear-gradient(90deg, var(--pink-bg), transparent);
    color: var(--pink);
    border-left-color: var(--pink);
    font-weight: 600;
}

.toc-link .num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 24px;
}

.toc-link.active .num { color: var(--pink); }

.toc-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.toc-footer i { color: var(--navy); margin-top: 3px; }

/* ===== Content ===== */
.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    scroll-margin-top: 110px;
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--pink), var(--navy));
    opacity: 0;
    transition: var(--transition);
}

.policy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.policy-card:hover::before { opacity: 1; }

.card-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    border-radius: 14px;
    font-size: 1.3rem;
    box-shadow: 0 6px 14px rgba(26, 39, 82, 0.25);
}

.card-no {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.card-body p {
    color: var(--text-soft);
    margin-bottom: 14px;
    font-size: 1rem;
}

.card-body p:last-child { margin-bottom: 0; }

.lead-line {
    color: var(--navy) !important;
    font-size: 1.05rem !important;
    padding: 12px 16px;
    background: var(--pink-bg);
    border-radius: 10px;
    border-left: 3px solid var(--pink);
}

/* Callouts */
.callout {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff8fb, #f6f8ff);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 14px 0;
}

.callout i {
    color: var(--pink);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.callout p { margin: 0 !important; color: var(--text) !important; }

.callout.success { background: linear-gradient(135deg, #effaf2, #f4f9ff); }
.callout.success i { color: #2d9f5e; }

/* Checklist */
.checklist {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    border-left: 3px solid var(--border);
    transition: var(--transition);
}

.checklist li:hover {
    background: var(--pink-bg);
    border-left-color: var(--pink);
    transform: translateX(4px);
}

.checklist.negative li i { color: #d33b5e; font-size: 1.05rem; }

/* Mini cards grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.mini-card:hover {
    background: var(--white);
    border-color: var(--pink-soft);
    box-shadow: var(--shadow-sm);
}

.mini-card i {
    color: var(--navy);
    font-size: 1.05rem;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--white);
    border-radius: 8px;
    flex-shrink: 0;
}

/* Contact card */
.contact-card {
    margin-top: 16px;
    padding: 22px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    border-radius: var(--radius-md);
    color: var(--white);
    display: grid;
    gap: 16px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-row > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--pink-soft);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.contact-row > div { display: flex; flex-direction: column; }

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pink-soft);
    margin-bottom: 2px;
}

.contact-value {
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

a.contact-value:hover { color: var(--pink-soft); }

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 60px 28px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; gap: 16px; align-items: center; }

.footer-logo {
    width: 60px; height: 60px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--white);
    padding: 4px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4, .footer-meta h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pink-soft);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-links a, .footer-meta p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--pink-soft); }

.footer-links a i, .footer-meta p i { color: var(--pink); width: 16px; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 52px; height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #c2185b);
    color: var(--white);
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 26px rgba(233, 30, 99, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .toc-sidebar {
        position: relative;
        top: 0;
    }
    .toc-card { padding: 18px; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .header-inner { padding: 12px 18px; flex-wrap: wrap; }
    .meta-pill { font-size: 0.78rem; padding: 6px 12px; }
    .brand-name { font-size: 1.15rem; }
    .brand-logo { width: 48px; height: 48px; }
    .hero { padding: 50px 18px 40px; }
    .layout { padding: 30px 18px 60px; }
    .policy-card { padding: 22px; }
    .card-head { gap: 14px; }
    .card-icon { width: 46px; height: 46px; font-size: 1.1rem; }
    .card-title { font-size: 1.25rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

/* Reveal animation */
.policy-card {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.6s ease forwards;
}

.policy-card:nth-child(1) { animation-delay: 0.05s; }
.policy-card:nth-child(2) { animation-delay: 0.1s; }
.policy-card:nth-child(3) { animation-delay: 0.15s; }
.policy-card:nth-child(4) { animation-delay: 0.2s; }
.policy-card:nth-child(5) { animation-delay: 0.25s; }

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