/* ==========================================================================
   KKU Vom Cooperative - Modern Responsive Design System Stylesheet
   Designed to match the modern aesthetic of register.php
   Supports Mobile (Single Grid), Tablet (2-Column), and Web/Desktop (Multi-Column)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --app-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Core Brand Colors */
    --navy-dark: #0f172a;        /* Slate 900 */
    --navy-deep: #091a42;        /* Deep Hero Dark Blue */
    --navy-blue: #1e3a8a;        /* Royal Blue 900 */
    --kku-blue: #1a2e6e;         /* University Core Blue */
    --kku-sky: #2563eb;          /* Blue 600 */
    --kku-sky-light: #3b82f6;    /* Blue 500 */
    --kku-gold: #f59e0b;         /* Amber 500 */
    --kku-gold-dark: #d97706;    /* Amber 600 */
    --kku-emerald: #10b981;      /* Emerald 500 */
    --kku-emerald-dark: #059669; /* Emerald 600 */
    --danger: #ef4444;           /* Red 500 */
    --danger-dark: #dc2626;      /* Red 600 */
    
    /* Surface & Background Neutrals */
    --bg-app: #f1f5f9;           /* Slate 100 */
    --bg-surface: #ffffff;
    --bg-surface-alt: #f8fafc;   /* Slate 50 */
    --border-light: #e2e8f0;     /* Slate 200 */
    --border-input: #cbd5e1;     /* Slate 300 */
    --text-primary: #0f172a;     /* Slate 900 */
    --text-secondary: #475569;   /* Slate 600 */
    --text-muted: #64748b;       /* Slate 500 */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #091a42 0%, #1a2e6e 60%, #0f172a 100%);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* Border Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    
    /* Shadows & Elevation */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 3px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
    --shadow-hero: 0 15px 35px -5px rgba(26, 46, 110, 0.3);
    
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #10b981;
    --accent-hover: #059669;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #090d16;
}

/* ==========================================================================
   1. Universal Base Styles & Typography
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--app-font);
    background-color: var(--bg-app);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ensure all text breaks gracefully without horizontal overflow */
h1, h2, h3, h4, h5, h6, p, span, a, label, .card, .btn {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Permanent Link Underline Removal */
a, a *, a:hover, a:hover *, a:focus, a:focus *, a:active, a:active *, a:visited, a:visited *,
.alert a, .alert a *, .alert-link, .alert-link:hover,
.nav-link, .dropdown-item, .btn, .page-link, .badge a {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Headings */
h1, .h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--navy-dark); line-height: 1.25; }
h2, .h2 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); font-weight: 700; letter-spacing: -0.015em; color: var(--navy-dark); line-height: 1.3; }
h3, .h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 700; letter-spacing: -0.01em; color: var(--navy-dark); line-height: 1.35; }
h4, .h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; color: var(--navy-dark); }
h5, .h5 { font-size: 1.05rem; font-weight: 600; }
h6, .h6 { font-size: 0.925rem; font-weight: 600; }

/* ==========================================================================
   2. Modern Public Navigation Bar
   ========================================================================== */

.custom-navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
    padding-top: 12px;
    padding-bottom: 12px;
}

.custom-navbar .navbar-brand {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin-right: 12px;
    max-width: calc(100% - 60px);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-navbar .brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--kku-gold);
    font-size: 1.15rem;
}

.custom-navbar .brand-main {
    color: #ffffff;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.custom-navbar .brand-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.custom-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition);
}

.custom-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.custom-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 600;
}

/* Mobile Navbar Overlay */
@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background: #0b1329;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 12px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
    }
    
    .custom-navbar .navbar-nav {
        gap: 6px;
    }
    
    .custom-navbar .nav-link {
        padding: 11px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .custom-navbar .nav-link.active {
        background: rgba(37, 99, 235, 0.25);
        border-left: 3px solid var(--kku-sky-light);
    }
    
    .custom-navbar .navbar-nav .btn {
        width: 100%;
        margin-top: 6px;
        margin-left: 0 !important;
        text-align: center;
        padding: 10px 16px;
    }
}

/* ==========================================================================
   3. Modern Hero Banners & Page Headers (Matching register.php)
   ========================================================================== */

/* Universal Page Hero Banner */
.page-hero-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero);
    position: relative;
    overflow: hidden;
    padding: 2rem 1.75rem;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(26, 46, 110, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-banner .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.page-hero-banner h1,
.page-hero-banner h2 {
    color: #ffffff !important;
    font-size: clamp(1.25rem, 3.5vw, 1.95rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.page-hero-banner p {
    color: #ffffff !important;
    font-size: clamp(0.88rem, 2vw, 1.02rem);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Landing Page Carousel Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #ffffff;
    padding: clamp(50px, 8vw, 100px) 0 clamp(40px, 6vw, 75px) 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(30, 58, 138, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(1.85rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 2.2vw, 1.18rem);
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 620px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0.85;
    z-index: 10;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--kku-sky);
    border-color: var(--kku-sky);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   4. Modern Cards & Component Layouts (Matching register.php)
   ========================================================================== */

.card,
.custom-card {
    background: #ffffff;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover,
.custom-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.card-title {
    font-size: clamp(0.98rem, 2.5vw, 1.12rem);
    font-weight: 700;
    color: var(--navy-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.card-body {
    padding: 1.4rem;
}

/* Modern Feature Box / Service Card */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3.5vw, 32px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--kku-sky);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 16px -2px rgba(30, 58, 138, 0.3);
}

/* Icon disc variations */
.icon-wrapper-gold {
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--kku-gold-dark);
}
.feature-card:hover .icon-wrapper-gold {
    background: var(--gradient-gold);
    color: #ffffff;
}

.icon-wrapper-emerald {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--kku-emerald);
}
.feature-card:hover .icon-wrapper-emerald {
    background: var(--gradient-accent);
    color: #ffffff;
}

/* ==========================================================================
   5. Modern Form Controls & Inputs (Matching register.php)
   ========================================================================== */

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
    letter-spacing: 0.1px;
}

.form-control,
.form-select {
    font-family: var(--app-font);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-input);
    color: var(--text-primary);
    background-color: #ffffff;
    transition: var(--transition);
    max-width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kku-sky);
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
    outline: none;
}

.form-control[readonly],
.form-control:disabled {
    background-color: #f8fafc;
    border-color: var(--border-light);
    color: #64748b;
    cursor: default;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid var(--border-input);
    color: #64748b;
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
}

.input-group > .input-group-text:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Notice / Callout Boxes */
.bursar-notice,
.info-notice {
    background: #fffbeb;
    border-left: 4px solid var(--kku-gold);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
    color: #78350f;
    line-height: 1.55;
    overflow-wrap: break-word;
    margin-bottom: 1.25rem;
}

.info-notice-blue {
    background: #eff6ff;
    border-left: 4px solid var(--kku-sky);
    color: #1e40af;
}

.info-notice-green {
    background: #ecfdf5;
    border-left: 4px solid var(--kku-emerald);
    color: #065f46;
}

/* ==========================================================================
   6. Modern Buttons (Matching register.php)
   ========================================================================== */

.btn {
    font-family: var(--app-font);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.15rem;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

/* Primary Button (Royal Blue Gradient) */
.btn-primary,
.btn-submit-reg {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px -2px rgba(30, 58, 138, 0.35);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-submit-reg:hover,
.btn-submit-reg:focus {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(30, 58, 138, 0.45);
}

/* Accent Button (Emerald Gradient) */
.btn-accent,
.btn-success {
    background: var(--gradient-accent);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover,
.btn-accent:focus,
.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.4);
}

/* Gold / Warning Button */
.btn-warning,
.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-gold:hover,
.btn-gold:focus {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Outline Buttons */
.btn-outline-primary {
    border: 1.5px solid var(--navy-blue);
    color: var(--navy-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-lg {
    padding: 0.75rem 1.6rem;
    font-size: 1.02rem;
    border-radius: 12px;
}

/* ==========================================================================
   7. Modern Stats Counters & Testimonials
   ========================================================================== */

.stats-section {
    background: #091a42;
    color: #ffffff;
    padding: clamp(35px, 5vw, 60px) 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.stat-num {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--kku-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

/* ==========================================================================
   8. Modern Badges & Status Indicators
   ========================================================================== */

.badge {
    font-weight: 600;
    padding: 0.4em 0.85em;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bg-success, .badge-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

.bg-warning, .badge-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

.bg-primary, .badge-primary {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe;
}

.bg-danger, .badge-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca;
}

.bg-secondary, .badge-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   9. Modern Public Footer
   ========================================================================== */

.footer-section {
    background-color: #080d1a;
    color: rgba(255, 255, 255, 0.65);
    padding: clamp(50px, 7vw, 75px) 0 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--kku-gold);
    transform: translateX(4px);
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 8px;
}

.social-icon-btn:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ==========================================================================
   10. Responsiveness Rules (Mobile, Tablet, Desktop)
   ========================================================================== */

@media (max-width: 576px) {
    .page-hero-banner {
        padding: 1.35rem 1.15rem;
        border-radius: 12px;
    }
    
    .card,
    .custom-card {
        border-radius: 12px !important;
        margin-bottom: 1.25rem;
    }
    
    .card-header {
        padding: 0.9rem 1.1rem;
    }
    
    .card-body {
        padding: 1.1rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.88rem;
        padding: 0.6rem 0.85rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}
