/* =========================================================
   RGPV STUDENT PORTAL
   Premium HTML5 / CSS3 Design
   ========================================================= */

/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;

    --dark: #0f172a;
    --dark-2: #111827;
    --slate: #334155;
    --muted: #64748b;

    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --body-bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;

    --text: #0f172a;
    --text-muted: #64748b;

    --shadow-sm: 0 4px 15px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 15px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.14);

    --gradient-primary: linear-gradient(135deg, #2563eb, #7c3aed);
    --gradient-hero: linear-gradient(135deg, #07152f 0%, #101d42 45%, #25105c 100%);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1180px;
    --header-height: 76px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= DARK THEME ================= */
body.dark-theme {
    --body-bg: #070d1a;
    --surface: #0f172a;
    --surface-2: #111c31;

    --text: #f8fafc;
    --text-muted: #94a3b8;

    --border: #1e293b;
    --light: #0f172a;

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--body-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ================= SMOOTH THEME TRANSITION ================= */
body,
.site-header,
.feature-card,
.resource-card,
.directory-card,
.notice-card,
.tool-card,
.table-wrapper,
.faq-item,
.support-card,
.form-card,
.search-input-wrapper input,
.form-group input,
.form-group select,
.form-group textarea,
.icon-button,
.filter-btn,
.btn-outline,
th,
td {
    transition: 
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Theme toggle icon rotation & scale animation */
.theme-toggle .fa-svg {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle:active .fa-svg {
    transform: rotate(90deg) scale(0.75);
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 50px;
}

/* ================= GLOBAL ================= */
.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 50px;
}

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 750px;
    margin-inline: auto;
    margin-bottom: 55px;
}

.section-heading.centered p {
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .section-kicker {
    justify-content: center;
}

.section-heading h2,
.faq-intro h2,
.feedback-info h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-top: 10px;
}

.section-heading h2 span,
.faq-intro h2 span,
.feedback-info h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    max-width: 500px;
    color: var(--text-muted);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.section-kicker.light {
    color: #93c5fd;
}

/* ================= BUTTONS ================= */
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-glass {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-dark-glass {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.25);
}

.btn-small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

/* ================= HEADER ================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(18px);
    transition: var(--transition);
}

.dark-theme .site-header {
    background: rgba(7, 13, 26, 0.82);
    border-color: rgba(30, 41, 59, 0.7);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.brand-text small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.icon-button:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    display: block;
    margin: 5px 0;
    background: var(--text);
    transition: var(--transition);
}

/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* ================= LOADER ================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background: #07152f;
    color: white;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
    overflow: hidden;
    padding: 10px;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.loader h2 {
    font-family: "Space Grotesk", sans-serif;
}

.loader small {
    color: #94a3b8;
}

.loader-line {
    width: 220px;
    height: 3px;
    margin: 18px auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.loader-line span {
    width: 45%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
    animation: loaderMove 1.3s infinite ease-in-out;
}

@keyframes loaderMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(320%);
    }
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 850px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background: var(--gradient-hero);
    padding-top: var(--header-height);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.hero-orb-one {
    top: 10%;
    left: -180px;
    background: #2563eb;
}

.hero-orb-two {
    right: -160px;
    bottom: -120px;
    background: #7c3aed;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 70px;
    padding: 90px 0;
}

.eyebrow {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.status-dot {
    width: 7px;
    height: 7px;
    display: block;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 15px #34d399;
}

.hero h1 {
    max-width: 800px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    margin-top: 10px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    margin: 25px 0 30px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.trust-item .fa-svg {
    color: #67e8f9;
}

/* ================= HERO DASHBOARD ================= */
.hero-dashboard {
    position: relative;
    overflow: visible;
}

.dashboard-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
}

.window-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.7rem;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.dashboard-body {
    padding: 25px;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-heading small {
    color: #94a3b8;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.dashboard-heading h3 {
    margin-top: 3px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.dashboard-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-stat > .fa-svg {
    color: #67e8f9;
}

.mini-stat div {
    display: flex;
    flex-direction: column;
}

.mini-stat strong {
    font-size: 0.75rem;
}

.mini-stat span {
    color: #93c5fd;
    font-size: 0.68rem;
}

.dashboard-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-card-header .fa-svg {
    color: #fbbf24;
}

.dashboard-links {
    display: grid;
}

.dashboard-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: var(--transition);
}

.dashboard-links a:hover {
    color: white;
    padding-left: 5px;
}

.dashboard-links a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-links a span .fa-svg {
    color: #60a5fa;
}

.dashboard-progress {
    margin-top: 20px;
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 0.65rem;
}

.progress-heading strong {
    color: #67e8f9;
}

.progress-track {
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.progress-track span {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    animation: floating 4s ease-in-out infinite;
}

.floating-card .fa-svg {
    color: #67e8f9;
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.7rem;
}

.floating-card small {
    color: #94a3b8;
    font-size: 0.58rem;
}

.floating-card-one {
    left: -121px;
    top: 10px;
    animation-delay: -2s;
    font-size: 0.58rem;
    height: 50px;
}

.floating-card-two {
    left: -152px;
    top: 61px;
    animation-delay: -2s;
    font-size: 0.58rem;
    height: 50px;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ================= ABOUT ================= */
.about-section {
    background: var(--surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 15px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ================= QUICK SECTION ================= */
.quick-section {
    background: var(--surface-2);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.resource-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.featured-card {
    background: linear-gradient(145deg, var(--surface), rgba(37, 99, 235, 0.04));
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.card-category,
.directory-category {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
}

.resource-card p {
    min-height: 52px;
    margin: 8px 0 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.card-link .fa-svg {
    transition: var(--transition);
}

.card-link:hover .fa-svg {
    transform: translate(3px, -3px);
}

/* ================= RESOURCES ================= */
.resources-section {
    background: var(--surface);
}

.resource-search-box {
    max-width: 850px;
    margin: 0 auto 22px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper > .fa-svg {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-input-wrapper input {
    width: 100%;
    height: 62px;
    padding: 0 55px;
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
    color: var(--text);
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.clear-search {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: none;
    border-radius: 9px;
    color: var(--text-muted);
    background: transparent;
}

.clear-search:hover {
    background: var(--border);
}

.search-result-count {
    margin-top: 9px;
    color: var(--text-muted);
    text-align: right;
    font-size: 0.7rem;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    background: var(--surface);
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}

.resource-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.directory-card {
    display: flex;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition: var(--transition);
}

.directory-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.directory-content {
    min-width: 0;
}

.directory-content h3 {
    margin: 4px 0 5px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.directory-content p {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.directory-content a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.directory-content a:hover {
    text-decoration: underline;
}

.directory-card.hidden {
    display: none;
}

.no-results {
    padding: 70px 20px;
    text-align: center;
}

.no-results > .fa-svg {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 2rem;
}

.no-results h3 {
    margin-bottom: 7px;
}

.no-results p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ================= TICKER ================= */
.ticker-section {
    display: flex;
    min-height: 55px;
    overflow: hidden;
    background: var(--dark);
    color: white;
}

.ticker-label {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 25px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.ticker-window {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.ticker-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 55px;
    padding-left: 30px;
    animation: ticker 28s linear infinite;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
}

.ticker-track b {
    color: #60a5fa;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ================= NOTICES ================= */
.notices-section {
    background: var(--surface-2);
}

.demo-badge {
    padding: 7px 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.62rem;
    font-weight: 800;
}

.dark-theme .demo-badge {
    color: #fbbf24;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.notice-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.notice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.4);
}

.notice-card:hover::before {
    transform: scaleX(1);
}

.notice-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.notice-tag.academic {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.25);
}

.notice-tag.student {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}

.notice-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.notice-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.notice-card-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--text);
}

.notice-snippet {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.notice-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

/* ================= TOOLS ================= */
.tools-section {
    background: var(--surface);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tool-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.tool-header span {
    color: var(--primary);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tool-header h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.tool-description {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.tool-form {
    display: grid;
    gap: 12px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label,
.form-label {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
}

.form-group label span {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--surface-2);
    transition: var(--transition);
}

.form-group input,
.form-group select {
    min-height: 44px;
    padding: 0 12px;
}

.form-group textarea {
    padding: 12px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.tool-result {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    background: var(--surface-2);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.tool-result.success {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

.subject-row {
    display: grid;
    grid-template-columns: 1fr 1fr 38px;
    gap: 7px;
    margin-bottom: 8px;
}

.subject-row input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: var(--surface-2);
    font-size: 0.72rem;
}

.remove-subject {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--danger);
    background: var(--surface);
}

.remove-subject:hover {
    background: rgba(239, 68, 68, 0.08);
}

.tool-buttons {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}

/* ================= TABLE ================= */
.table-section {
    background: var(--surface-2);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

caption {
    padding: 20px;
    color: var(--text-muted);
    text-align: left;
    font-size: 0.75rem;
}

th,
td {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    text-align: left;
    font-size: 0.76rem;
}

th {
    color: var(--text-muted);
    background: var(--surface-2);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: var(--text-muted);
}

td strong {
    color: var(--text);
}

td a {
    color: var(--primary);
    font-weight: 800;
}

.table-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 50px;
    font-size: 0.58rem;
    font-weight: 800;
}

.table-badge.academic {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.table-badge.examination {
    color: var(--secondary);
    background: rgba(124, 58, 237, 0.1);
}

.table-badge.student {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* ================= FAQ ================= */
.faq-section {
    background: var(--surface);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-intro p {
    margin: 20px 0 25px;
    color: var(--text-muted);
}

.faq-list {
    display: grid;
    gap: 9px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--primary);
    background: var(--surface-2);
    transition: var(--transition);
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 18px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ================= SUPPORT ================= */
.support-section {
    background: var(--surface-2);
}

.support-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    overflow: hidden;
    padding: 55px;
    border-radius: 30px;
    color: white;
    background: linear-gradient(120deg, #0f2c68, #31206f);
    box-shadow: var(--shadow-lg);
}

.support-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 20% 20%, white 1px, transparent 1px);
    background-size: 25px 25px;
}

.support-content {
    position: relative;
    z-index: 2;
}

.support-content h2 {
    max-width: 650px;
    margin-top: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.support-content h2 span {
    color: #67e8f9;
}

.support-content p {
    max-width: 600px;
    margin: 18px 0 25px;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.support-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.support-card-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 13px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.support-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.support-card p {
    margin: 7px 0 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.support-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

/* ================= FEEDBACK ================= */
.feedback-section {
    background: var(--surface);
}

.feedback-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.feedback-info > p {
    margin: 20px 0;
    color: var(--text-muted);
}

.feedback-info blockquote {
    padding: 20px;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--surface-2);
}

.feedback-info blockquote p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-style: italic;
}

.feedback-info cite {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.feedback-list {
    display: grid;
    gap: 9px;
    margin-top: 25px;
}

.feedback-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.feedback-list .fa-svg {
    color: var(--success);
}

.form-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

fieldset {
    border: none;
}

legend {
    margin-bottom: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.full-span {
    grid-column: 1 / -1;
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.6rem;
}

.field-error {
    min-height: 12px;
    color: var(--danger) !important;
}

.rating {
    display: flex;
    gap: 8px;
}

.rating label {
    cursor: pointer;
}

.rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    min-height: 0;
}

.rating span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 800;
    transition: var(--transition);
}

.rating input:checked + span,
.rating span:hover {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}

.checkbox-label {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    min-height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* ================= FOOTER ================= */
.site-footer {
    padding: 70px 0 25px;
    color: #cbd5e1;
    background: #07101f;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr));
    gap: 36px 24px;
    padding-bottom: 45px;
}

.footer-brand p {
    max-width: 320px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.footer-brand-logo .brand-text strong {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid #1e293b;
    border-radius: 9px;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: white;
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.2);
}

.footer-column h3 {
    margin-bottom: 15px;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
}

.footer-column ul {
    display: grid;
    gap: 8px;
}

.footer-column a {
    color: #94a3b8;
    font-size: 0.72rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: #60a5fa;
    padding-left: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.footer-bottom p,
.footer-bottom a {
    color: #64748b;
    font-size: 0.65rem;
}

.footer-bottom > div {
    display: flex;
    gap: 18px;
}

.footer-disclaimer {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    color: #64748b;
    font-size: 0.63rem;
}

.footer-disclaimer .fa-svg {
    color: #60a5fa;
    margin-top: 3px;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 500;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 13px;
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: min(100%, 520px);
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.96);
    transition: var(--transition);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface-2);
}

.modal-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 14px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.modal-date {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
}

.modal h2 {
    margin: 7px 0;
    font-family: "Space Grotesk", sans-serif;
}

.modal p {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ================= TOAST ================= */
.toast {
    position: fixed;
    right: 25px;
    bottom: 85px;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    padding: 13px 17px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: #047857;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    font-size: 0.75rem;
    font-weight: 700;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast .fa-svg {
    color: var(--success);
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal="left"].visible,
[data-reveal="right"].visible {
    transform: translateX(0);
}

/* ================= FOCUS ================= */
:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= TABLET ================= */
@media (max-width: 1050px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 750px;
        margin-inline: auto;
        text-align: center;
    }
    .eyebrow {
        margin-inline: auto;
    }
    .hero-actions,
    .hero-trust {
        justify-content: center;
    }
    .hero-dashboard {
        width: min(100%, 650px);
        margin-inline: auto;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-grid,
    .resource-directory,
    .notice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tools-grid .tool-card:last-child {
        grid-column: 1 / -1;
    }
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ================= MOBILE NAV ================= */
@media (max-width: 850px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        display: block;
        padding: 15px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-list {
        display: grid;
        gap: 4px;
    }
    .nav-link {
        width: 100%;
        padding: 12px;
    }
    .nav-link::after {
        display: none;
    }
    .nav-actions {
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
}

/* ================= MOBILE ================= */
@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }
    .section {
        padding: 75px 0;
    }
    .section-heading {
        display: block;
        margin-bottom: 35px;
    }
    .section-heading p {
        margin-top: 15px;
    }
    .hero {
        min-height: auto;
    }
    .hero-container {
        gap: 45px;
        padding: 70px 0;
    }
    .hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }
    .hero-description {
        font-size: 0.9rem;
    }
    .hero-trust {
        display: grid;
        justify-content: center;
    }
    .floating-card {
        display: none;
    }
    .feature-grid,
    .quick-grid,
    .resource-directory,
    .notice-grid,
    .tools-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid .tool-card:last-child {
        grid-column: auto;
    }
    .support-banner {
        grid-template-columns: 1fr;
        padding: 35px 25px;
    }
    .faq-layout,
    .feedback-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-span {
        grid-column: auto;
    }
    .form-card {
        padding: 22px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        display: grid;
    }
    .ticker-label {
        padding: 0 12px;
        font-size: 0.62rem;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 430px) {
    .brand-text {
        display: none;
    }
    .dashboard-body {
        padding: 17px;
    }
    .mini-stat-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        display: grid;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .subject-row {
        grid-template-columns: 1fr 1fr 35px;
    }
    .tool-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: auto;
    }
}

/* ================= HIDDEN UTILITY ================= */
[hidden] {
    display: none !important;
}

/* ================= INLINE SVG ICONS ================= */
.fa-svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    vertical-align: -0.125em;
    overflow: visible;
}

button .fa-svg,
a .fa-svg {
    pointer-events: none;
}

/* ================= COUNTDOWN BANNER ================= */
.countdown-section {
    padding: 40px 0 0 0;
}

.countdown-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 42px;
    background: linear-gradient(135deg, #0e1e42 0%, #15103a 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.countdown-info h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 4px;
}

.countdown-info p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.countdown-grid {
    display: flex;
    gap: 16px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 76px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.countdown-unit span {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
}

.countdown-unit small {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ================= TOOL RESULT STATES ================= */
.tool-result.danger {
    border-style: solid;
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 768px) {
    .countdown-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .countdown-grid {
        width: 100%;
        justify-content: center;
    }
}

/* ================= ASYNC API UI STATES ================= */
@keyframes pulseShimmer {
    0% { opacity: 0.45; }
    50% { opacity: 0.85; }
    100% { opacity: 0.45; }
}

.skeleton-pulse {
    animation: pulseShimmer 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, var(--surface-2) 0%, rgba(59, 130, 246, 0.08) 50%, var(--surface-2) 100%);
    border-radius: 8px;
}

.skeleton-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.skeleton-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
}

.skeleton-line.title {
    width: 70%;
    height: 20px;
}

.skeleton-line.desc {
    width: 95%;
    height: 12px;
}

.skeleton-line.desc-short {
    width: 55%;
    height: 12px;
}

.empty-state-box,
.api-error-box {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    background: rgba(15, 23, 42, 0.4);
    margin: 10px 0;
    width: 100%;
}

.api-error-box {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.empty-state-box p,
.api-error-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
    max-width: 460px;
}

.api-error-box p {
    color: #fca5a5;
}

.retry-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.btn:disabled,
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================= LEGAL PAGES (PRIVACY, TERMS, DISCLAIMER) ================= */
.legal-page-container {
    max-width: 920px;
    margin: 105px auto 70px auto;
    padding: 0 20px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .legal-page-container {
        margin-top: 85px;
        margin-bottom: 40px;
        padding: 0 14px;
    }
    .legal-card {
        padding: 24px 18px;
    }
}

.legal-nav-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legal-nav-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-nav-pill:hover,
.legal-nav-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.legal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 28px;
}

.legal-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    margin: 10px 0 8px 0;
    color: var(--text);
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-content h2:first-of-type {
    margin-top: 10px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.legal-content strong {
    color: var(--text);
}

.legal-content ul {
    margin-bottom: 18px;
    padding-left: 24px;
    list-style: disc;
}

.legal-content li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content .highlight-box {
    background: rgba(37, 99, 235, 0.07);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
}

.legal-content .highlight-box.warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: var(--warning);
}

.legal-content .highlight-box p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
}

/* ================= ACADEMIC GUIDES & KNOWLEDGE BASE ================= */
.guides-section {
    padding: 90px 0;
    position: relative;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.guide-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.guide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.45);
}

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-card-top,
.guide-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.guide-badge.academic {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.25);
}

.guide-badge.exam {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.guide-badge.career {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}

.guide-read-time {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.guide-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--text);
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}

.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

/* ================= ARTICLE VIEW STYLES ================= */
.guide-article-container {
    max-width: 940px;
    margin: 105px auto 70px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .guide-article-container {
        margin-top: 85px;
        padding: 0 14px;
    }
}

.guide-article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .guide-article-card {
        padding: 24px 18px;
    }
}

.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.guide-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.guide-article-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 12px 0 10px 0;
    line-height: 1.3;
    color: var(--text);
}

.guide-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.guide-toc {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 28px 0 34px 0;
}

.guide-toc h4 {
    font-size: 0.96rem;
    margin: 0 0 12px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-toc ul {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.guide-toc li {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.guide-toc a {
    color: var(--primary);
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.guide-body {
    line-height: 1.8;
    color: var(--text);
    font-size: 0.95rem;
}

.guide-body h2 {
    font-size: 1.4rem;
    margin: 38px 0 14px 0;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.guide-body h3 {
    font-size: 1.15rem;
    margin: 24px 0 10px 0;
    color: var(--text);
}

.guide-body p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.guide-body strong {
    color: var(--text);
}

.guide-body ul,
.guide-body ol {
    margin: 14px 0 20px 24px;
}

.guide-body li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.75;
}

/* Custom Table */
.guide-table-wrapper {
    overflow-x: auto;
    margin: 24px 0 30px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.guide-table th {
    background: var(--surface-2);
    color: var(--text);
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

/* Callout Boxes */
.guide-callout {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border-left: 4px solid var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.guide-callout.tip {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

.guide-callout.warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.guide-callout h5 {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-callout p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
}

/* Author Box */
.guide-author-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    padding: 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.guide-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.guide-author-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    color: var(--text);
}

.guide-author-info p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

