/*
 * ====================================================================
 *                    GIGCCL ADMISSION PORTAL
 *                    Main Public Stylesheet
 * ====================================================================
 *  Replaces Tailwind CSS CDN for all public/student pages.
 * ====================================================================
 */

/* =============================================================
   BOOTSTRAP 5 — BRAND COLOR OVERRIDES (Brown #6B4F48)
   Applied globally to ALL pages (student + admin).
============================================================= */
[data-bs-theme], :root {
    --bs-primary: #6B4F48;
    --bs-primary-rgb: 107, 79, 72;
    --bs-link-color: #6B4F48;
    --bs-link-color-rgb: 107, 79, 72;
    --bs-link-hover-color: #5a423c;
    --bs-link-hover-color-rgb: 90, 66, 60;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

.bg-primary {
    background-color: #6B4F48 !important;
}
.text-primary {
    color: #6B4F48 !important;
}
.border-primary {
    border-color: #6B4F48 !important;
}
.btn-primary {
    --bs-btn-bg: #6B4F48;
    --bs-btn-border-color: #6B4F48;
    --bs-btn-hover-bg: #5a423c;
    --bs-btn-hover-border-color: #5a423c;
    --bs-btn-active-bg: #4e3832;
    --bs-btn-active-border-color: #4e3832;
    --bs-btn-disabled-bg: #6B4F48;
    --bs-btn-disabled-border-color: #6B4F48;
}
.btn-outline-primary {
    --bs-btn-color: #6B4F48;
    --bs-btn-border-color: #6B4F48;
    --bs-btn-hover-bg: #6B4F48;
    --bs-btn-hover-border-color: #6B4F48;
    --bs-btn-active-bg: #5a423c;
    --bs-btn-active-border-color: #5a423c;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #6B4F48;
    border-color: #6B4F48;
}
.form-control:focus,
.form-select:focus {
    border-color: #A98C82;
    box-shadow: 0 0 0 0.25rem rgba(107, 79, 72, 0.25);
}
.form-check-input:checked {
    background-color: #6B4F48;
    border-color: #6B4F48;
}
.badge.bg-primary {
    background-color: #6B4F48 !important;
}
.bg-primary.bg-opacity-10 {
    background-color: rgba(107, 79, 72, 0.1) !important;
}
.page-item.active .page-link {
    background-color: #6B4F48;
    border-color: #6B4F48;
}
.page-link {
    color: #6B4F48;
}
.page-link:hover {
    color: #5a423c;
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: #6B4F48;
}

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
============================================================ */
:root {
    /* Updated color palette – brown shades and white background */
    /* Brand Colors */
    --color-primary: #5A3E2F;           /* Deep brown */
    --color-primary-dark: #462720;      /* Darker brown */
    --color-primary-light: #A67C5D;     /* Light brown */
    --color-accent: #E5D5C5;            /* Soft beige */
    --color-bg: #ffffff;                /* Pure white background */
    --color-bg-mid: #f5f5f5;            /* Light gray */
    --color-bg-deep: #eaeaea;           /* Slightly darker gray */

    /* Brand Colors */
    --color-primary: #6B4F48;
    --color-primary-dark: #5a423c;
    --color-primary-light: #A98C82;
    --color-accent: #EAE0D5;
    --color-bg: #FDFDFB;
    --color-bg-mid: #f4efe9;
    --color-bg-deep: #e6ddd5;

    /* Semantic Colors */
    --color-success: #16a34a;
    --color-success-light: #f0fdf4;
    --color-success-border: #86efac;
    --color-error: #dc2626;
    --color-error-light: #fef2f2;
    --color-error-border: #fca5a5;
    --color-warning: #f59e0b;
    --color-warning-light: #fffbeb;
    --color-info: #2563eb;
    --color-info-light: #eff6ff;
    --color-info-border: #93c5fd;

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Container */
    --container-max: 1280px;
}

/* ============================================================
   2. RESET & BASE STYLES
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
/* .container is handled by Bootstrap — do not override */

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-1-5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-5>*+* {
    margin-top: 1.25rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.min-h-screen {
    min-height: 100vh;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Margin */
.m-4 {
    margin: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-auto {
    margin-top: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-7 {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-5 {
    padding-left: 1.25rem;
}

.pr-12 {
    padding-right: 3rem;
}

/* ============================================================
   5. COLORS & BACKGROUNDS
============================================================ */
.bg-white {
    background-color: #fff;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-body {
    background-color: var(--color-bg);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-purple-50 {
    background-color: #faf5ff;
}

.bg-gradient-body {
    background: linear-gradient(to bottom right, var(--color-bg), var(--color-bg-mid), var(--color-bg-deep));
}

.text-white {
    color: #fff;
}

.text-primary {
    color: var(--color-primary);
}

.text-gray-200 {
    color: var(--gray-200);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-green-500 {
    color: #22c55e;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.text-green-800 {
    color: #166534;
}

.text-red-300 {
    color: #fca5a5;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-700 {
    color: #b91c1c;
}

.text-red-800 {
    color: #991b1b;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

/* ============================================================
   6. BORDER & RADIUS
============================================================ */
.border {
    border: 1px solid var(--gray-200);
}

.border-t {
    border-top: 1px solid var(--gray-200);
}

.border-b {
    border-bottom: 1px solid var(--gray-200);
}

.border-l {
    border-left: 1px solid var(--gray-200);
}

.border-r {
    border-right: 1px solid var(--gray-200);
}

.border-2 {
    border: 2px solid var(--gray-200);
}

.border-t-2 {
    border-top: 2px solid var(--gray-200);
}

.border-b-2 {
    border-bottom: 2px solid var(--gray-200);
}

.border-primary {
    border-color: var(--color-primary);
}

.border-primary-dark {
    border-color: var(--color-primary-dark);
}

.border-gray-100 {
    border-color: var(--gray-100);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-white {
    border-color: #fff;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ============================================================
   7. SHADOWS & TRANSITIONS
============================================================ */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

.transition {
    transition: all var(--transition-base);
}

.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

.transition-opacity {
    transition: opacity var(--transition-base);
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   8. TRANSFORM & ANIMATION
============================================================ */
.transform {
    transform: translateZ(0);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.scale-105 {
    transform: scale(1.05);
}

.scale-110 {
    transform: scale(1.1);
}

.-translate-y-1 {
    transform: translateY(-0.25rem);
}

.-translate-y-2 {
    transform: translateY(-0.5rem);
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-1 {
    transform: translateY(0.25rem);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* ============================================================
   9. BACKDROP & OVERLAY
============================================================ */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-opacity-15 {
    background-color: rgba(255, 255, 255, 0.15);
}

.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-opacity-25 {
    background-color: rgba(255, 255, 255, 0.25);
}

.bg-opacity-30 {
    background-color: rgba(255, 255, 255, 0.3);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-black\/75 {
    background-color: rgba(0, 0, 0, 0.75);
}

.bg-white\/15 {
    background-color: rgba(255, 255, 255, 0.15);
}

.bg-white\/25 {
    background-color: rgba(255, 255, 255, 0.25);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   10. HOVER & FOCUS STATES
============================================================ */
.hover\:bg-primary:hover {
    background-color: var(--color-primary);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-gray-200:hover {
    background-color: var(--gray-200);
}

.hover\:bg-white:hover {
    background-color: #fff;
}

.hover\:bg-white\/25:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.hover\:text-primary:hover {
    color: var(--color-primary);
}

.hover\:text-primary-dark:hover {
    color: var(--color-primary-dark);
}

.hover\:text-gray-700:hover {
    color: var(--gray-700);
}

.hover\:text-gray-800:hover {
    color: var(--gray-800);
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:border-primary:hover {
    border-color: var(--color-primary);
}

.hover\:border-gray-300:hover {
    border-color: var(--gray-300);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hover\:shadow-xl:hover {
    box-shadow: var(--shadow-xl);
}

.hover\:shadow-2xl:hover {
    box-shadow: var(--shadow-2xl);
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.focus\:ring-offset-2:focus {
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* ============================================================
   11. SIZING & DIMENSIONS
============================================================ */
.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-24 {
    height: 6rem;
}

.h-32 {
    height: 8rem;
}

.h-40 {
    height: 10rem;
}

.h-48 {
    height: 12rem;
}

.h-56 {
    height: 14rem;
}

.h-64 {
    height: 16rem;
}

.h-auto {
    height: auto;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-40 {
    width: 10rem;
}

.w-48 {
    width: 12rem;
}

.w-56 {
    width: 14rem;
}

.w-64 {
    width: 16rem;
}

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

.min-h-0 {
    min-height: 0;
}

.min-h-full {
    min-height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-\[85vh\] {
    min-height: 85vh;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* ============================================================
   12. Z-INDEX & POSITIONING
============================================================ */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.z-\[100\] {
    z-index: 100;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.inset-x-0 {
    left: 0;
    right: 0;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* ============================================================
   13. GRADIENTS & BACKGROUNDS
============================================================ */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-\[\\#6B4F48\]\/80 {
    --tw-gradient-from: rgb(107, 79, 72) / 0.8;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-\[\\#3a2a26\]\/75 {
    --tw-gradient-stops: var(--tw-gradient-from), rgb(58, 42, 38) / 0.75, var(--tw-gradient-to);
}

.to-\[\\#1a0e0c\]\/90 {
    --tw-gradient-to: rgb(26, 14, 12) / 0.9;
}

/* ============================================================
   14. ANIMATIONS
============================================================ */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pop-in {
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   15. UTILITY CLASSES
============================================================ */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

.filter {
    filter: var(--tw-filter);
}

.blur-5 {
    filter: blur(5px);
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-center {
    object-position: center;
}

.list-disc {
    list-style-type: disc;
}

.list-decimal {
    list-style-type: decimal;
}

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

.list-inside {
    list-style-position: inside;
}

.list-outside {
    list-style-position: outside;
}

/* ============================================================
   16. RESPONSIVE HELPERS
============================================================ */
@media (max-width: 640px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }

    .sm\:hidden {
        display: none;
    }

    .sm\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .sm\:w-auto {
        width: auto;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .md\:w-auto {
        width: auto;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:flex-col {
        flex-direction: column;
    }

    .md\:justify-center {
        justify-content: center;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .md\:max-w-5xl {
        max-width: 64rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

.text-yellow-800 {
    color: #854d0e;
}

.text-indigo-800 {
    color: #3730a3;
}

.text-purple-600 {
    color: #9333ea;
}

.text-purple-700 {
    color: #7e22ce;
}

/* ============================================================
   6. BORDERS
============================================================ */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.border-4 {
    border-width: 4px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-t-4 {
    border-top-width: 4px;
    border-top-style: solid;
}

.border-t-8 {
    border-top-width: 8px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-gray-100 {
    border-color: var(--gray-100);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-primary {
    border-color: var(--color-primary);
}

.border-secondary {
    border-color: var(--color-primary-light);
}

.border-green-300 {
    border-color: #86efac;
}

.border-green-400 {
    border-color: #4ade80;
}

.border-red-300 {
    border-color: #fca5a5;
}

.border-red-400 {
    border-color: #f87171;
}

.border-blue-100 {
    border-color: #dbeafe;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-purple-100 {
    border-color: #f3e8ff;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-white-30 {
    border-color: rgba(255, 255, 255, 0.3);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ============================================================
   7. SHADOWS
============================================================ */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

/* ============================================================
   8. NAVIGATION
============================================================ */
.site-nav {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all var(--transition-slow);
}

.site-nav.scrolled {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    box-shadow: 0 4px 24px rgba(107, 79, 72, 0.18);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
    transition: all var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-desktop {
    display: none;
}

.mobile-menu-btn {
    display: block;
}

/* ============================================================
   9. BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.875rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   17. CUSTOM FORM STYLES
============================================================ */
#admissionForm {
    border-radius: 2rem !important;
}

#admissionForm .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#admissionForm .form-row>div {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 200px;
}

#admissionForm .form-row.bg-gray-50 {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
}

#admissionForm .form-row.pt-6 {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

#admissionForm .form-row-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

#admissionForm .form-row-multi>div {
    flex: 1 1 calc(20% - 0.8rem);
    /* Force 5 columns roughly */
    min-width: 110px;
}

#admissionForm .form-input,
#admissionForm .file-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#admissionForm .form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(107, 79, 72, 0.2);
    outline: none;
}

#admissionForm .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-white {
    background-color: #fff;
    color: var(--color-primary);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.btn-white:hover {
    background-color: var(--gray-100);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-4px);
}

.btn-disabled {
    background-color: var(--gray-400);
    color: #fff;
    cursor: not-allowed;
}

/* Button Loading Spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================
  10. CARDS
============================================================ */
.card {
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.card-header {
    background-color: var(--color-primary);
    padding: 1.5rem 2rem;
}

.card-body {
    padding: 1.75rem 2rem;
}

/* ============================================================
  11. FORMS & INPUTS
============================================================ */

/* Fix fieldset default styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    margin: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    background: #fff;
    outline: none;
}

.form-input:hover {
    border-color: var(--color-primary-light);
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-primary);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    resize: none;
}

/* ============================================================
  12. ALERTS
============================================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ============================================================
  13. BADGES
============================================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #854d0e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #854d0e;
}

.badge-pulse {
    background: #fee2e2;
    color: #991b1b;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
  14. TABLES
============================================================ */
.data-table {
    width: 100%;
    white-space: nowrap;
    text-align: left;
}

.data-table thead {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.data-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(234, 224, 213, 0.2);
}

/* ============================================================
  15. ACCORDION / FAQ
============================================================ */
details {
    cursor: pointer;
}

details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details>summary::-moz-list-bullet {
    list-style-type: none;
}

details[open] .faq-icon {
    transform: rotate(180deg);
}

details>summary:hover {
    background-color: var(--gray-50);
}

.faq-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-800);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-slow);
    border: none;
    cursor: pointer;
}

.faq-toggle:hover {
    background: var(--gray-50);
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    transition: transform var(--transition-slow);
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* ============================================================
  16. PAGE LOADER (REMOVED)
============================================================ */

/* ============================================================
  17. ANIMATIONS
============================================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.7s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
}

.animate-fade-up {
    animation: fadeUp 0.7s cubic-bezier(.4, 0, .2, 1) both;
}

.animate-pop-in {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(.4, 0, .2, 1),
        transform 0.65s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
  18. BACK TO TOP
============================================================ */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: var(--color-primary);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    pointer-events: none;
    cursor: pointer;
    border: none;
}

#back-to-top:hover {
    background-color: var(--color-primary-dark);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================================
  19. FOCUS (ACCESSIBILITY)
============================================================ */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
  20. HERO SECTION
============================================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    overflow: hidden;
    flex-grow: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(107, 79, 72, 0.8), rgba(58, 42, 38, 0.75), rgba(26, 14, 12, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1.5rem 6rem;
}

/* ============================================================
  21. FOOTER
============================================================ */
.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    border-top: 4px solid var(--color-primary-light);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--gray-300);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
  22. MODAL
============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

/* ============================================================
  23. PASSWORD STRENGTH BAR
============================================================ */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* Strength bar colors (applied via JS) */
.strength-red {
    background-color: #ef4444;
}

.strength-orange {
    background-color: #fb923c;
}

.strength-yellow {
    background-color: #facc15;
}

.strength-green {
    background-color: #22c55e;
}

/* ============================================================
  24. UTILITY HELPERS
============================================================ */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.object-cover {
    object-fit: cover;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.transition {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

.transition-all {
    transition: all var(--transition-slow);
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.underline {
    text-decoration: underline;
}

.underline-offset-2 {
    text-underline-offset: 2px;
}

.opacity-0 {
    opacity: 0;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

.pointer-events-none {
    pointer-events: none;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.list-disc {
    list-style-type: disc;
}

.list-decimal {
    list-style-type: decimal;
}

.list-inside {
    list-style-position: inside;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.rotate-180 {
    transform: rotate(180deg);
}

.divide-y>*+* {
    border-top: 1px solid var(--gray-100);
}

/* Icon sizes */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* ============================================================
  25. RESPONSIVE BREAKPOINTS (md: 768px, lg: 1024px)
============================================================ */
@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .nav-desktop {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .md\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .md\:p-10 {
        padding: 2.5rem;
    }

    .md\:p-12 {
        padding: 3rem;
    }

    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:w-auto {
        width: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
}

/* Small screens only */
@media (max-width: 639px) {
    .sm\:hidden {
        /* no-op at this breakpoint */
    }
}

@media (min-width: 640px) {
    .sm\:inline {
        display: inline;
    }

    .sm\:hidden {
        display: none;
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:flex-row-reverse {
        flex-direction: row-reverse;
    }

    .sm\:items-center {
        align-items: center;
    }

    .sm\:items-start {
        align-items: flex-start;
    }

    .sm\:mt-0 {
        margin-top: 0;
    }

    .sm\:ml-3 {
        margin-left: 0.75rem;
    }

    .sm\:ml-4 {
        margin-left: 1rem;
    }

    .sm\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .sm\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .sm\:p-0 {
        padding: 0;
    }

    .sm\:p-4 {
        padding: 1rem;
    }

    .sm\:p-6 {
        padding: 1.5rem;
    }

    .sm\:p-8 {
        padding: 2rem;
    }

    .sm\:h-16 {
        height: 4rem;
    }

    .sm\:w-16 {
        width: 4rem;
    }

    .sm\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .sm\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .sm\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .sm\:pb-4 {
        padding-bottom: 1rem;
    }

    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:text-left {
        text-align: left;
    }

    .sm\:w-auto {
        width: auto;
    }

    .sm\:w-full {
        width: 100%;
    }

    .sm\:max-w-sm {
        max-width: 24rem;
    }

    .sm\:h-10 {
        height: 2.5rem;
    }

    .sm\:w-10 {
        width: 2.5rem;
    }
}

/* ============================================================
  26. TAILWIND COMPATIBILITY LAYER
      Classes used in existing HTML that map to our design tokens.
============================================================ */

/* --- Gigccl Brand Color Aliases --- */
.bg-gigccl-primary {
    background-color: var(--color-primary);
}

.bg-gigccl-secondary {
    background-color: var(--color-primary-light);
}

.bg-gigccl-accent {
    background-color: var(--color-accent);
}

.bg-gigccl-bg {
    background-color: var(--color-bg);
}

.text-gigccl-primary {
    color: var(--color-primary);
}

.text-gigccl-secondary {
    color: var(--color-primary-light);
}

.text-gigccl-accent {
    color: var(--color-accent);
}

.border-gigccl-primary {
    border-color: var(--color-primary);
}

.border-gigccl-secondary {
    border-color: var(--color-primary-light);
}

/* --- White Opacity Variants --- */
.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/15 {
    background-color: rgba(255, 255, 255, 0.15);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/25 {
    background-color: rgba(255, 255, 255, 0.25);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3);
}

.border-white\/50 {
    border-color: rgba(255, 255, 255, 0.5);
}

.border-gigccl-secondary\/30 {
    border-color: rgba(169, 140, 130, 0.3);
}

.border-gigccl-primary\/10 {
    border-color: rgba(107, 79, 72, 0.1);
}

.bg-gigccl-accent\/30 {
    background-color: rgba(234, 224, 213, 0.3);
}

.bg-gigccl-accent\/40 {
    background-color: rgba(234, 224, 213, 0.4);
}

.bg-gray-50\/30 {
    background-color: rgba(249, 250, 251, 0.3);
}

.bg-gray-50\/50 {
    background-color: rgba(249, 250, 251, 0.5);
}

/* --- Gradient Backgrounds --- */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--color-bg), var(--color-bg-mid), var(--color-bg-deep));
}

.from-gigccl-bg,
.via-\[\#f4efe9\],
.to-\[\#e6ddd5\] {
    /* handled by bg-gradient-to-br */
}

/* --- Hover States --- */
.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hover\:bg-white\/25:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-gigccl-primary:hover {
    background-color: var(--color-primary);
}

.hover\:bg-\[\#5a423c\]:hover {
    background-color: var(--color-primary-dark);
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:text-primary:hover {
    color: var(--color-primary);
}

.hover\:text-gigccl-primary:hover {
    color: var(--color-primary);
}

.hover\:text-gray-600:hover {
    color: var(--gray-600);
}

.hover\:text-gray-700:hover {
    color: var(--gray-700);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hover\:shadow-xl:hover {
    box-shadow: var(--shadow-xl);
}

.hover\:border-gigccl-primary:hover {
    border-color: var(--color-primary);
}

.hover\:border-gigccl-secondary:hover {
    border-color: var(--color-primary-light);
}

.hover\:border-gray-400:hover {
    border-color: var(--gray-400);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.hover\:translate-x-1:hover {
    transform: translateX(0.25rem);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:shadow-md:hover {
    box-shadow: var(--shadow-md);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark);
}

.hover\:bg-\[\#5a423c\]:hover {
    background-color: #5a423c;
}

.hover\:border-primary-light:hover {
    border-color: var(--color-primary-light);
}

.hover\:border-\[\#A98C82\]:hover {
    border-color: #A98C82;
}

/* --- Active / Focus States --- */
.active\:scale-95:active {
    transform: scale(0.95);
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.2);
}

.focus\:ring-gigccl-primary:focus {
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.2);
}

.focus\:border-primary:focus {
    border-color: var(--color-primary);
}

.focus\:border-gigccl-primary:focus {
    border-color: var(--color-primary);
}

.focus\:border-\[\#6B4F48\]:focus {
    border-color: #6B4F48;
}

.focus\:ring-\[\#6B4F48\]\/20:focus {
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.2);
}

.focus\:ring-primary\/20:focus {
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.2);
}

.ring-2 {
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.3);
}

/* --- Group Hover --- */
.group:hover .group-hover\:opacity-40 {
    opacity: 0.4;
}

.group:hover .group-hover\:text-white {
    color: #fff;
}

.group:hover .group-hover\:text-gigccl-primary {
    color: var(--color-primary);
}

.group:hover .group-hover\:text-gray-600 {
    color: var(--gray-600);
}

.group:hover .group-hover\:bg-gigccl-primary {
    background-color: var(--color-primary);
}

.group:hover .group-hover\:bg-gray-600 {
    background-color: var(--gray-600);
}

/* --- Sizing --- */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.max-h-60 {
    max-height: 15rem;
}

.min-h-\[85vh\] {
    min-height: 85vh;
}

.shrink-0 {
    flex-shrink: 0;
}

.select-none {
    user-select: none;
}

/* --- Grid --- */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-4 {
    grid-column: span 4 / span 4;
}

@media (min-width: 768px) {
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Additional Spacing --- */
.py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.mb-1\.5 {
    margin-bottom: 0.375rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.-inset-0\.5 {
    inset: -0.125rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-10>*+* {
    margin-top: 2.5rem;
}

/* --- Decoration --- */
.underline-offset-4 {
    text-underline-offset: 4px;
}

.decoration-2 {
    text-decoration-thickness: 2px;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* --- Transforms --- */
.transform {
    /* enables GPU compositing */
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.-translate-x-full {
    transform: translateX(-100%);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* --- File Input --- */
.file-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.file-input:hover {
    border-color: var(--color-primary-light);
    background: #fff;
}

/* --- Checkbox/Radio --- */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* --- z-index --- */
.z-\[100\] {
    z-index: 100;
}

.z-\[1\] {
    z-index: 1;
}

.z-\[2\] {
    z-index: 2;
}

.z-10 {
    z-index: 10;
}

/* --- Additional Colors --- */
.text-yellow-600 {
    color: #ca8a04;
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-green-700 {
    color: #15803d;
}

.text-red-300 {
    color: #fca5a5;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.border-yellow-100 {
    border-color: #fef9c3;
}

.border-red-200 {
    border-color: #fecaca;
}

.text-red-600 {
    color: #dc2626;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

/* --- Blur on modal-active --- */
.blur {
    filter: blur(5px);
}

/* --- Arbitrary bg colors used inline --- */
.bg-\[\#6B4F48\] {
    background-color: #6B4F48;
}

.bg-\[\#5a423c\] {
    background-color: #5a423c;
}

.text-\[\#6B4F48\] {
    color: #6B4F48;
}

.border-\[\#6B4F48\] {
    border-color: #6B4F48;
}

.hover\:text-\[\#6B4F48\]:hover {
    color: #6B4F48;
}

.hover\:border-\[\#A98C82\]:hover {
    border-color: #A98C82;
}

/* Custom Reset & General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    /* bg-gray-100 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex-grow: 1;
}

/* Base Styles */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Typography Utility equivalents */
.text-white {
    color: #ffffff;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* -------------------------------------------------------------
   1. MAIN NAVIGATION (Header)
------------------------------------------------------------- */
.main-nav {
    background-color: #6B4F48;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
}

.logo-image-wrapper {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.logo-text-wrapper {
    color: #ffffff;
}

.logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.025em;
    margin: 0;
}

@media (min-width: 768px) {
    .logo-title {
        font-size: 1.25rem;
    }
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

@media (min-width: 768px) {
    .logo-subtitle {
        font-size: 0.875rem;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.desktop-nav>a,
.desktop-nav>.user-info {
    margin-left: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.desktop-nav .nav-link:hover {
    color: #ffffff;
}

.desktop-nav .nav-link.active {
    font-weight: 700;
    color: #ffffff;
}

/* Auth Buttons */
.btn-login,
.btn-logout {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
}

.btn-login:hover,
.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-signup {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #6B4F48;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.btn-signup:hover {
    background-color: #f3f4f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.mobile-btn {
    color: #ffffff;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Menu Box */
.mobile-menu {
    display: none;
    /* hidden by default */
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.mobile-menu.is-open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu.is-open {
        display: none;
        /* Never show on desktop */
    }
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
}

.mobile-auth-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-user-name {
    display: block;
    padding: 0.25rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.mobile-logout {
    color: #fca5a5;
    font-weight: 600;
}

.mobile-signup {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
}

.mobile-signup:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   2. MAIN FOOTER
------------------------------------------------------------- */
.main-footer {
    background-color: #6B4F48;
    color: #ffffff;
    border-top: 4px solid #A98C82;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 1px solid #A98C82;
    display: inline-block;
    padding-bottom: 0.25rem;
    margin: 0 0 0.5rem 0;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #d1d5db;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-icon-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-icon-item svg {
    width: 1rem;
    height: 1rem;
    color: #A98C82;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Display utility for hiding things globally */
.d-none {
    display: none !important;
}

/* -------------------------------------------------------------
   3. AUTHENTICATION PAGES (Login / Signup)
------------------------------------------------------------- */
.auth-body {
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* We hide the old split background since gradient looks cleaner and scrolls correctly */
.auth-bg-top,
.auth-bg-bottom {
    display: none;
}

.auth-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(107, 79, 72, 0.1);
    width: 100%;
    max-width: 28rem;
    border-top: 5px solid #6B4F48;
    position: relative;
    box-sizing: border-box;
    margin: auto;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
}

.auth-card-large {
    max-width: 32rem;
    /* Give sign up slightly more room since fields overlap */
}

.auth-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    height: 5rem;
    width: 5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #ffffff;
    object-fit: cover;
}

.auth-logo {
    height: 5rem;
    width: 5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: #6B4F48;
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin: 0 0 2rem 0;
    font-size: 0.875rem;
}

.auth-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input.has-icon {
    padding-right: 3rem;
}

.auth-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #6B4F48;
    box-shadow: 0 0 0 2px rgba(107, 79, 72, 0.2);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding-right: 1rem;
    display: flex;
    align-items: center;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.auth-password-toggle:hover {
    color: #6B4F48;
}

.auth-forgot-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.auth-forgot-link {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #6B4F48;
}

.auth-btn {
    width: 100%;
    background-color: #6B4F48;
    color: #ffffff;
    font-weight: 700;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(107, 79, 72, 0.3);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.auth-btn:hover {
    background-color: #5a423c;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
}

.auth-footer-link {
    color: #6B4F48;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

/* Eye icon sizing */
.eye-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.eye-icon.active {
    color: #6B4F48;
}

/* -------------------------------------------------------------
   4. EXTRA AUTH PAGES (Forgot Password, Reset, Verify)
------------------------------------------------------------- */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-\[\#FDFDFB\] {
    --tw-gradient-from: #FDFDFB;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253, 253, 251, 0));
}

.via-\[\#f4efe9\] {
    --tw-gradient-stops: var(--tw-gradient-from), #f4efe9, var(--tw-gradient-to, rgba(244, 239, 233, 0));
}

.to-\[\#e6ddd5\] {
    --tw-gradient-to: #e6ddd5;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.p-4 {
    padding: 1rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.h-14 {
    height: 3.5rem;
}

.w-14 {
    width: 3.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border-4 {
    border-width: 4px;
}

.border-\[\#6B4F48\] {
    border-color: #6B4F48;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.object-cover {
    object-fit: cover;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-extrabold {
    font-weight: 800;
}

.text-\[\#6B4F48\] {
    color: #6B4F48;
}

.text-gray-500 {
    color: #6b7280;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.bg-white {
    background-color: #ffffff;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.border {
    border-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.overflow-hidden {
    overflow: hidden;
}

.bg-\[\#6B4F48\] {
    background-color: #6B4F48;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: #ffffff;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.py-7 {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

/* ============================================================
   PROFILE AVATAR DROPDOWN
============================================================ */
.profile-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.profile-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(107, 79, 72, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-avatar-btn:hover,
.profile-avatar-btn.active {
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.profile-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 220px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.profile-dropdown-header {
    padding: 16px;
    background-color: var(--gray-50);
}

.profile-name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.profile-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.profile-divider {
    height: 1px;
    background-color: var(--gray-200);
    border: none;
    margin: 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.profile-dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--color-primary);
}

.profile-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.logout-link {
    color: var(--color-error);
}

.logout-link:hover {
    background-color: var(--color-error-light);
    color: var(--color-error);
}

.logout-link .profile-icon {
    opacity: 1;
}

.d-none {
    display: none !important;
}

/* ============================================================
   RESPONSIVE IMPROVEMENTS — STUDENT PAGES
============================================================ */

/* --- Profile Icon in Navbar --- */
/* --- Profile Icon & Dropdown Animation --- */
.navbar .dropdown-toggle::after {
    display: none;
}
.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Profile avatar hover */
.navbar .dropdown-toggle .rounded-circle {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.navbar .dropdown-toggle:hover .rounded-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 2px 10px rgba(0,0,0,0.15) !important;
}
.navbar .dropdown.show .dropdown-toggle .rounded-circle {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Dropdown menu slide animation */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
    pointer-events: none;
}
.navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.navbar .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.navbar .dropdown-item:hover {
    background: #f4efe9;
    color: #6B4F48;
    padding-left: 1.5rem;
}

/* --- Hamburger Animation (3 lines → X) --- */
.navbar-toggler {
    position: relative;
    transition: transform 0.3s ease;
}
.navbar-toggler:hover {
    transform: scale(1.1);
}
.navbar-toggler .hamburger-icon svg line {
    transition: all 0.3s ease;
    transform-origin: center;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon svg line:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Collapse Menu Slide Animation --- */
.navbar-collapse {
    transition: none;
}
@media (max-width: 991.98px) {
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }
    /* Staggered link fade-in */
    .navbar-collapse.show .nav-item {
        animation: navLinkSlideIn 0.3s ease forwards;
        opacity: 0;
    }
    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.03s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.06s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.09s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.12s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.18s; }
    .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 0.21s; }
    .navbar-collapse.show .nav-item:nth-child(8) { animation-delay: 0.24s; }
    .navbar-collapse.show .nav-item:nth-child(9) { animation-delay: 0.27s; }
}
@keyframes navLinkSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Mobile (< 576px) --- */
@media (max-width: 575.98px) {
    /* Navbar brand */
    .navbar-brand h1 {
        font-size: 0.85rem !important;
    }
    .navbar-brand p {
        font-size: 0.65rem !important;
    }
    .navbar-brand img {
        width: 36px !important;
        height: 36px !important;
    }

    /* Hero section */
    .display-3 {
        font-size: 1.8rem !important;
    }
    .hero-bg .lead {
        font-size: 0.9rem !important;
    }
    .hero-bg .btn-lg {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Cards */
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Footer */
    footer .fs-5 {
        font-size: 1rem !important;
    }
    footer .col-lg-4 {
        text-align: center;
    }
    footer .d-flex.align-items-start,
    footer .d-flex.align-items-center {
        justify-content: center;
    }

    /* Instruction modal */
    #instructionModal .rounded-4 {
        margin: 0.75rem !important;
        padding: 1.25rem !important;
    }
    #instructionModal h2 {
        font-size: 1.1rem !important;
    }
    #instructionModal .badge {
        font-size: 0.65rem !important;
    }
}

/* --- Small tablets (576px - 767px) --- */
@media (max-width: 767.98px) {
    /* Admission form */
    .form-control-lg, .form-select-lg {
        font-size: 0.95rem !important;
        padding: 0.6rem 0.85rem !important;
    }
    
    /* General spacing */
    .py-md-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* --- Navbar collapse (below lg breakpoint) --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(78, 56, 50, 0.97);
        border-radius: 0 0 0.75rem 0.75rem;
        padding: 0.75rem;
        margin-top: 0.5rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    .navbar-collapse .nav-link {
        padding: 0.6rem 1rem !important;
        border-radius: 0.5rem;
        margin-bottom: 0.1rem;
        font-size: 0.9rem;
    }
    .navbar-collapse .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: none !important;
    }
}

/* img/svg display handled by base reset */

/* --- Smooth animations --- */
.card, .alert, .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.btn:active {
    transform: scale(0.98);
}

/* --- Print improvements --- */
@media print {
    .navbar, footer, .btn, .navbar-toggler { display: none !important; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* Make form input placeholders lighter globally so they don't look like pre-filled values */
input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder,
.form-input::placeholder {
    color: #9e9e9e !important;
    opacity: 0.6 !important;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
select::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder,
.form-input::-webkit-input-placeholder {
    color: #9e9e9e !important;
    opacity: 0.6 !important;
}
input::-moz-placeholder,
textarea::-moz-placeholder,
select::-moz-placeholder,
.form-control::-moz-placeholder,
.form-input::-moz-placeholder {
    color: #9e9e9e !important;
    opacity: 0.6 !important;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
select:-ms-input-placeholder,
.form-control:-ms-input-placeholder,
.form-input:-ms-input-placeholder {
    color: #9e9e9e !important;
    opacity: 0.6 !important;
}