/* css/style.css - Vibrant Student Vibe Redesign */
:root {
    --bg-color: #f4f6f8; /* Soft cool gray */
    --surface-color: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #5a6b7c;
    
    --accent-red: #b5111e; /* Dark red */
    --accent-dark-red: #8b0d17;
    --accent-black: #1d3557; /* Deep navy-black */

    --gradient-red: linear-gradient(135deg, #b5111e 0%, #e63946 100%);
    --gradient-dark: linear-gradient(135deg, #1d3557 0%, #000000 100%);
    
    --border-color: rgba(29, 53, 87, 0.1);
    
    --shadow-soft: 0 10px 30px -5px rgba(29, 53, 87, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(181, 17, 30, 0.3);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    /* Subtle dot grid pattern for that "study/tech" vibe */
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--accent-black);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.9rem 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

.cookie-banner a {
    color: #ff6b6b;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--accent-dark-red); }

.cookie-btn-decline {
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.cookie-btn-decline:hover { background: rgba(255,255,255,0.2); }

/* ===== HEADER ===== */
.main-header {
    background: var(--gradient-dark);
    border-bottom: 2px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.logo-name em {
    font-style: normal;
    color: var(--accent-red);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: white; }

.main-nav .nav-btn {
    background: var(--gradient-red);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 3px 12px rgba(230, 57, 70, 0.3);
}

.main-nav .nav-btn::after { display: none; }
.main-nav .nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(230, 57, 70, 0.4);
}

/* Hero Section with High Energy Background */
.hero {
    position: relative;
    padding: 3.5rem 0 3rem;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 60%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 8s infinite alternate ease-in-out;
}

.shape-1 {
    background: var(--accent-red);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -50px;
}

.shape-2 {
    background: var(--accent-black);
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 5%;
    animation-delay: -4s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--accent-black);
    font-weight: 800;
}

.hero-title span {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 500;
}

/* Main Content Area */
.content-area {
    padding: 3rem 0 6rem;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    margin-bottom: 3rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    width: fit-content;
    box-shadow: var(--shadow-soft);
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.breadcrumb span {
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb span:hover {
    color: var(--accent-red);
}

.breadcrumb .separator {
    color: #ccc;
    cursor: default;
}

/* Dynamic Content Animation */
#dynamic-content {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-black);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-red);
    border-radius: 5px;
}

/* Grid Layouts for Branches and Semesters */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--surface-color);
    border: none;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient card background on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-red);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

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

.card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.branch-icon-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.branch-svg-icon {
    width: 96px;
    height: 96px;
    color: var(--accent-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.branch-svg-icon svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.card:hover .branch-svg-icon {
    color: white;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-black);
    font-weight: 800;
    transition: var(--transition);
}

.card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

/* White text when card is hovered (red background) */
.card:hover h3, .card:hover p, .card:hover .card-icon {
    color: white;
}
.card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Tables for Question Papers */
.table-container {
    background: var(--surface-color);
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--gradient-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #fcfcfc;
}

.paper-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.paper-icon {
    font-size: 1.5rem;
    background: rgba(230, 57, 70, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.paper-name strong {
    font-size: 1.1rem;
    color: var(--accent-black);
}

.badge {
    background: var(--bg-color);
    color: var(--accent-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    color: white;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 4rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-red);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1.5rem auto;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--gradient-dark);
    padding: 1.5rem 0 1rem;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.footer-top {
    margin-bottom: 0.25rem;
}

.footer-brand-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.8rem;
    width: 100%;
}

.footer-legal-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover { color: #ff6b6b; }

.footer-legal-links span { color: #4a5568; }

.copyright {
    color: #4a5568;
    font-size: 0.78rem;
    margin: 0;
}

/* ===== LATEST UPDATES ===== */

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 780px;
    margin: 0 auto;
}

.update-card {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(181,17,30,0.1);
}

.update-left-bar {
    width: 5px;
    background: var(--gradient-red);
    flex-shrink: 0;
}

.update-body {
    padding: 22px 26px;
    flex: 1;
    min-width: 0;
}

.update-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.update-icon-wrap {
    background: rgba(181,17,30,0.08);
    color: var(--accent-red);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-black);
    margin: 0;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.date-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

.update-media {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.update-media img { width: 100%; display: block; }

/* ===== BLOG CARDS ===== */

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.blog-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.blog-image-placeholder {
    width: 100%;
    height: 130px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(181,17,30,0.07);
    color: var(--accent-red);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-black);
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.blog-actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ===== RICH TEXT (Quill output) ===== */

.rich-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.96rem;
    margin-bottom: 4px;
}

.rich-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rich-text h1 { font-size: 1.4rem; font-weight: 800; color: var(--accent-black); margin: 1.2rem 0 0.6rem; font-family: 'Outfit', sans-serif; }
.rich-text h2 { font-size: 1.15rem; font-weight: 700; color: var(--accent-black); margin: 1rem 0 0.5rem; font-family: 'Outfit', sans-serif; }
.rich-text h3 { font-size: 1rem; font-weight: 700; color: var(--accent-black); margin: 0.8rem 0 0.4rem; }
.rich-text p { margin-top: 0; margin-bottom: 1rem; }
.rich-text a { color: var(--accent-red); text-decoration: none; font-weight: 600; }
.rich-text a:hover { text-decoration: underline; }
.rich-text ul, .rich-text ol { margin-bottom: 1rem; padding-left: 22px; }
.rich-text li { margin-bottom: 0.4rem; }
.rich-text strong { color: var(--text-primary); font-weight: 700; }
.rich-text em { font-style: italic; }
.rich-text blockquote { border-left: 3px solid var(--accent-red); margin: 1rem 0; padding: 8px 16px; background: rgba(181,17,30,0.04); border-radius: 0 8px 8px 0; color: var(--text-secondary); font-style: italic; }
.rich-text code { background: var(--bg-color); padding: 2px 6px; border-radius: 4px; font-size: 0.88rem; border: 1px solid var(--border-color); }
.rich-text img { max-width: 100%; border-radius: 8px; margin: 0.75rem 0; }

/* Read More button */
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0 10px;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.2s;
    display: block;
}
.read-more-btn:hover { opacity: 0.7; }

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

/* ===== RECENTLY ADDED TICKER (below hero, full width) ===== */

.recent-ticker {
    display: flex;
    align-items: center;
    height: 42px;
    background: var(--accent-black);
    overflow: hidden;
    position: relative;
}

.ticker-label {
    background: var(--accent-red);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 1.1rem;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}

.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1.6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-branch {
    background: var(--accent-red);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.ticker-name {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
}

.ticker-meta {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.74rem;
}

.ticker-dl {
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.ticker-dl:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* ===== SEARCH BAR ===== */

.search-bar-wrapper {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 8px 32px rgba(29, 53, 87, 0.15), 0 2px 8px rgba(230, 57, 70, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-red);
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.2);
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-bar:focus-within .search-icon {
    color: var(--accent-red);
}

#global-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    padding: 1rem 0.75rem;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

#global-search::placeholder {
    color: #b0bec5;
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.search-clear:hover {
    color: var(--accent-red);
    background: rgba(230, 57, 70, 0.08);
}

.search-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.search-hint kbd {
    background: rgba(29, 53, 87, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--accent-black);
}

/* Search results count tag */
.search-results-meta {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.search-results-meta strong {
    color: var(--accent-red);
}

/* Empty search state */
.search-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.search-empty .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.search-empty h3 {
    font-size: 1.4rem;
    color: var(--accent-black);
    margin-bottom: 0.5rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 768px) {

    /* --- Header --- */
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .main-nav {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .main-nav .nav-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1.5rem;
    }

    /* --- Ticker on mobile: hide meta to keep items compact --- */
    .ticker-meta { display: none; }
    .ticker-label { padding: 0 0.75rem; font-size: 0.65rem; }

    /* --- Search Bar --- */
    .search-bar-wrapper {
        padding: 0 1rem;
    }

    .search-bar {
        max-width: 100%;
    }

    #global-search {
        font-size: 0.92rem;
        padding: 0.85rem 0.5rem;
    }

    /* --- Content Area --- */
    .content-area {
        padding: 2rem 0 3.5rem;
    }

    /* --- Section Title --- */
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 6px;
        font-size: 0.82rem;
        max-width: 92%;
        border-radius: 16px;
    }

    /* --- Cards Grid --- */
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .card {
        padding: 1.75rem 1rem;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .branch-svg-icon { width: 82px; height: 82px; }
    .branch-icon-img { width: 82px; height: 82px; }

    /* --- Responsive Table: stack as cards on mobile --- */
    .table-container {
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    table {
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tbody tr {
        display: block;
        background: var(--surface-color);
        border-radius: 16px;
        box-shadow: var(--shadow-soft);
        margin-bottom: 1.25rem;
        overflow: hidden;
        border: 1px solid var(--border-color);
    }

    td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.1rem;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.95rem;
    }

    td:last-child {
        border-bottom: none;
        padding: 1rem 1.1rem;
        justify-content: center;
    }

    /* Label pulled from data-label attribute */
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-black);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        font-family: 'Outfit', sans-serif;
        flex-shrink: 0;
        margin-right: 1rem;
        min-width: 60px;
    }

    td:last-child::before {
        display: none;
    }

    /* Paper name cell: hide icon on mobile, align text right */
    .paper-name {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        text-align: right;
    }

    .paper-icon {
        display: none;
    }

    /* Full-width download button */
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 1rem;
    }

    /* --- Blog / Update Cards --- */
    .blogs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .blog-body { padding: 14px 16px; }
    .blog-title { font-size: 1rem; }
    .update-title { font-size: 1rem; }
    .blog-image, .blog-image-placeholder { height: 160px; }

    /* --- Footer --- */
    .footer-brand h2 {
        font-size: 1.5rem;
    }

    .footer-brand p {
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .card {
        padding: 1.25rem 0.75rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .main-nav a {
        font-size: 0.72rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .blogs-grid { grid-template-columns: 1fr; }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */

@keyframes wa-drop-in {
    0%   { transform: translateY(-140px) scale(0.4); opacity: 0; }
    55%  { transform: translateY(16px)   scale(1.15); opacity: 1; }
    72%  { transform: translateY(-8px)   scale(0.95); }
    88%  { transform: translateY(5px)    scale(1.03); }
    100% { transform: translateY(0)      scale(1);    opacity: 1; }
}

@keyframes wa-ring {
    0%   { box-shadow: 0 8px 28px rgba(37,211,102,0.5), 0 0 0 0   rgba(37,211,102,0.55); }
    70%  { box-shadow: 0 8px 28px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 28px rgba(37,211,102,0.5), 0 0 0 0   rgba(37,211,102,0); }
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 13px 20px 13px 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    /* drop-in at 1s, then pulse ring every 3s starting at 2.5s */
    animation:
        wa-drop-in 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both,
        wa-ring    2.2s ease-out 3s infinite;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    color: white;
    animation-play-state: paused;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        font-size: 0;
        gap: 0;
    }
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}
