/* ================================================================
   news.css  —  LNMS College News / Notice / Tender Page
   Follows the same design system as home.css & nss.css:
     · CSS variables (blue / green tokens)
     · Poppins + Playfair Display + DM Sans
     · AOS-compatible fade-up pattern
     · Mini-hero identical to nss.aspx
   ================================================================ */

/* ── Design tokens (mirror from home.css / nss.css) ── */
:root {
    --blue:        #1E3A8A;
    --blue-dark:   #162d6e;
    --blue-mid:    #2a4fa8;
    --blue-light:  #dbeafe;
    --green:       #22C55E;
    --green-dark:  #16a34a;
    --green-light: #dcfce7;
    --bg:          #F8FAFC;
    --card:        #ffffff;
    --text:        #0F172A;
    --text-muted:  #475569;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 10px rgba(15,23,42,.08);
    --shadow-md:   0 6px 24px rgba(15,23,42,.12);
    --shadow-lg:   0 16px 48px rgba(15,23,42,.18);
    --shadow-blue: 0 8px 28px rgba(30,58,138,.28);
    --r-sm:        8px;
    --r-md:        14px;
    --r-lg:        20px;
    --r-pill:      50px;
    --t:           0.3s ease;
    --font:        'Poppins','Noto Sans Devanagari',sans-serif;
}

/* ================================================================
   1. MINI HERO — identical pattern to nss.css
   ================================================================ */

.news-mini-hero {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1E3A8A 55%, #2a4fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

/* Noise overlay */
.news-mini-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* Decorative rings */
.news-mini-hero__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.news-mini-hero__ring--lg {
    top: -90px;
    right: -90px;
    width: 340px;
    height: 340px;
    border: 64px solid rgba(30,58,138,.22);
}

.news-mini-hero__ring--sm {
    bottom: -55px;
    left: -55px;
    width: 210px;
    height: 210px;
    border: 42px solid rgba(34,197,94,.10);
}

/* Animated grid lines */
.news-mini-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: newsGridDrift 18s linear infinite;
}

@keyframes newsGridDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}

/* Content block */
.news-mini-hero__body {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Breadcrumb */
.news-mini-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: newsFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

.news-mini-hero__bc-link {
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.news-mini-hero__bc-link:hover {
    color: var(--green);
    text-decoration: none;
}

.news-mini-hero__bc-sep {
    color: rgba(255,255,255,.25);
    font-size: .78rem;
}

.news-mini-hero__bc-current {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.80);
}

/* Eyebrow badge */
.news-mini-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.45);
    color: var(--green);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(14px);
    animation: newsFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}

.news-mini-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: newsPulse 2s ease-in-out infinite;
}

/* Heading */
.news-mini-hero__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: newsFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.42s forwards;
}

.news-mini-hero__heading em {
    font-style: normal;
    color: var(--green);
    position: relative;
}

.news-mini-hero__heading em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    animation: newsUnderline 0.55s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}

/* Sub text */
.news-mini-hero__sub {
    color: rgba(255,255,255,.62);
    font-size: clamp(.85rem, 1.6vw, 1rem);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    transform: translateY(16px);
    animation: newsFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.58s forwards;
}

/* Keyframes */
@keyframes newsFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes newsUnderline {
    to { transform: scaleX(1); }
}

@keyframes newsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

/* Responsive – mini hero */
@media (max-width: 768px) {
    .news-mini-hero {
        height: 260px;
        min-height: 220px;
    }

    .news-mini-hero__ring--lg {
        width: 200px;
        height: 200px;
        border-width: 40px;
        top: -60px;
        right: -60px;
    }
}

@media (max-width: 480px) {
    .news-mini-hero { height: 230px; }
    .news-mini-hero__sub { display: none; }
}

/* ================================================================
   2. AOS ANIMATION SUPPORT
   ================================================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.65s cubic-bezier(0.22,1,0.36,1),
        transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   3. NEWS / NOTICE / TENDER LIST AREA
   ================================================================ */
.news-area {
    background: var(--bg);
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Dot-grid background texture */
.news-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(30,58,138,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.news-area .container {
    position: relative;
    z-index: 1;
}

/* Section title block */
.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}

.news-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.news-section-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(.92rem, 1.6vw, 1.05rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* List card wrapper */
.news-list-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--t);
}

.news-list-card:hover {
    box-shadow: var(--shadow-md);
}

/* Each repeater row becomes a styled list item.
   NOTE: the inner structure/attributes of the Repeater's ItemTemplate
   (server-side Eval bindings, control IDs) are untouched — only the
   surrounding wrapper classes below are targeted for styling. */
.news-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--border);
    transition: background var(--t);
    flex-wrap: wrap;
}

.news-list-card .news-row:last-child {
    border-bottom: none;
}

.news-row:hover {
    background: var(--bg);
}

/* Date pill */
.news-row .news-date {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    color: #fff;
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(30,58,138,.22);
}

/* "New" flag icon */
.news-row .news-flag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: var(--green-dark);
    font-size: 1rem;
}

.news-row .news-flag i {
    animation: newsPulse 1.8s ease-in-out infinite;
}

/* Type / category pill */
.news-row .news-type {
    background: var(--blue-light);
    color: var(--blue-dark);
    font-family: var(--font);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Title link */
.news-row .news-title {
    flex: 1;
    min-width: 220px;
}

.news-row .news-title a {
    font-family: var(--font);
    font-size: clamp(.9rem, 1.5vw, .98rem);
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--t);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-row .news-title a::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .78rem;
    color: var(--green);
    flex-shrink: 0;
}

.news-row .news-title a:hover {
    color: var(--blue);
    text-decoration: none;
}

/* Empty state (shown when repeater has no data) */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-family: var(--font);
}

.news-empty i {
    font-size: 2.4rem;
    color: var(--blue-light);
    margin-bottom: 14px;
    display: block;
}

/* ================================================================
   4. RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
    .news-area {
        padding: 60px 0 70px;
    }

    .news-row {
        padding: 16px 18px;
        gap: 10px;
    }

    .news-row .news-title {
        min-width: 100%;
        order: 10;
        margin-top: 4px;
    }
}
