/* NIT Chattogram — small custom utilities (no build step) */

.font-bn {
    font-family: 'Noto Serif Bengali', 'Noto Sans Bengali', Georgia, serif;
}

.content-body > * + * {
    margin-top: 0.9rem;
}

.content-body p {
    white-space: pre-line;
}

.content-body strong {
    color: #111827;
    font-weight: 700;
}

.content-body ul,
.content-body ol {
    padding-left: 1.25rem;
}

.content-body ul {
    list-style: disc;
}

.content-body ol {
    list-style: decimal;
}

.content-body a {
    color: #070485;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

[x-cloak] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    border-radius: 7px;
    background: #FFFF01;
    color: #111827;
    padding: 0.5rem 1rem;
    font-weight: 800;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid #070485;
    outline-offset: 2px;
}

/* Yellow (#FFFF01) text is reserved for navy/dark surfaces only */
.text-accent-on-light {
    color: #070485;
}

.bg-hero {
    background-image: linear-gradient(120deg, #05036B, #070485 58%, #1512A5);
}

.ring-decorative {
    box-shadow: 0 0 0 1px rgba(7, 4, 133, 0.08), 0 0 0 8px rgba(7, 4, 133, 0.04);
}

/* Display heading: 72px / weight 800 on desktop, scales down on mobile */
.text-display {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-size: clamp(2rem, 4vw + 0.75rem, 4.5rem); /* ~32px → 72px */
    overflow-wrap: anywhere;
}

.focus-ring:focus-visible {
    outline: 2px solid #FFFF01;
    outline-offset: 2px;
}

/* Footer uses slate utilities; ensure Play CDN has them available via arbitrary fallback */
.bg-footer {
    background-color: #050226;
}

.icon-tile-bg {
    background-color: #EEF2FF;
}

.badge-important {
    background-color: #FFF0CF;
    color: #8A5A00;
}

.card-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(7, 4, 133, 0.1);
}

.decor-ring {
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    pointer-events: none;
}

/* Homepage notices ticker */
@keyframes notice-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.notice-marquee {
    animation: notice-marquee 40s linear infinite;
}

.notice-marquee--paused {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .notice-marquee {
        animation: none;
    }

    .notice-pulse .animate-ping {
        animation: none;
        display: none;
    }
}

/* Scroll fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card-lift,
    .card-lift:hover,
    .skip-link {
        transition: none;
    }

    .card-lift:hover {
        transform: none;
    }
}

/* Image tile placeholders when assets are missing */
.space-tile-fallback-1 { background: linear-gradient(145deg, #05036B, #1512A5); }
.space-tile-fallback-2 { background: linear-gradient(145deg, #070485, #2a27c2); }
.space-tile-fallback-3 { background: linear-gradient(145deg, #050226, #070485); }
.space-tile-fallback-4 { background: linear-gradient(145deg, #0a0870, #3d3ad0); }

.approach-media {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 1, 0.18), transparent 45%),
        linear-gradient(135deg, #05036B, #070485 50%, #1512A5);
}

.facility-media-1,
.facility-media-2,
.facility-media-3,
.facility-media-4,
.gallery-fallback {
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 1, 0.16), transparent 42%),
        linear-gradient(145deg, #05036B, #070485 55%, #1512A5);
}

.facility-media-2 {
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 1, 0.12), transparent 40%),
        linear-gradient(145deg, #070485, #1512A5 60%, #2a27c2);
}

.facility-media-3 {
    background:
        linear-gradient(145deg, #050226, #070485 50%, #1512A5);
}

.facility-media-4 {
    background:
        linear-gradient(145deg, #0a0870, #070485 45%, #3d3ad0);
}

.gallery-masonry {
    column-count: 1;
    column-gap: 1rem;
}

.gallery-masonry-item {
    break-inside: avoid;
}

@media (min-width: 640px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 3;
    }
}
