﻿/* =========================================
   Paravada & Associates - Main Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
    --primary:        #005051;
    --primary-light:  #006668;
    --primary-dark:   #004D4F;
    --accent:         #CD7F32;
    --accent-light:   #E8A87C;
    --accent-dark:    #A0521A;
    --text:           #1a2a2a;
    --text-light:     #4a6060;
    --text-muted:     #7a9090;
    --bg:             #ffffff;
    --bg-light:       #f2f8f8;
    --bg-card:        #ffffff;
    --border:         #d4e6e6;
    --border-light:   #e8f2f2;
    --success:        #16a34a;
    --success-bg:     #f0fdf4;
    --danger:         #dc2626;
    --danger-bg:      #fef2f2;
    --warning:        #d97706;
    --warning-bg:     #fffbeb;
    --info:           #0284c7;
    --info-bg:        #f0f9ff;
    --shadow-sm:      0 1px 3px rgba(0,80,81,0.08);
    --shadow:         0 4px 20px rgba(0,80,81,0.12);
    --shadow-lg:      0 8px 40px rgba(0,80,81,0.18);
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --transition:     0.25s ease;
    --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading:   'Cormorant Garant', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }
svg { display: inline-block; vertical-align: middle; }
h1, h2, h3 { text-wrap: balance; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left svg { width: 13px; height: 13px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right span { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.btn-topbar {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.78rem;
    transition: background var(--transition);
}
.btn-topbar:hover { background: var(--accent-light); color: var(--primary-dark); }

/* --- Header --- */
.main-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: background var(--transition);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }

/* Logo */
.icai-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    border-radius: 6px;
    padding: 4px 6px;
}
.logo { display: flex; align-items: center; gap: 14px; color: white; text-decoration: none; }
.logo:hover { color: var(--accent-light); }
.logo-emblem {
    position: relative;
    width: 52px; height: 52px;
    flex-shrink: 0;
}
.logo-emblem-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid var(--accent);
    opacity: 0.7;
}
.logo-emblem::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1.5px solid rgba(205,127,50,0.35);
}
.logo-emblem-ca {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: 0.01em;
}
.logo-tag { font-size: 0.63rem; color: rgba(255,255,255,0.85); letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }

/* Main Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: rgba(255,255,255,0.88);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    display: block;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
    background: rgba(255,255,255,0.08);
}
.main-nav .nav-btn {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 8px 18px;
    font-weight: 600;
}
.main-nav .nav-btn:hover { background: var(--accent-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-arrow { font-size: 0.7rem; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    color: var(--text) !important;
    padding: 10px 16px !important;
    background: transparent !important;
    font-size: 0.875rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-light);
}
.dropdown-menu a:hover { background: var(--bg-light) !important; color: var(--primary) !important; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

/* Flash Messages */
.flash-message {
    padding: 12px 0;
    font-weight: 500;
    font-size: 0.9rem;
}
.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.flash-message button {
    background: none; border: none; cursor: pointer;
    font-size: 1.3rem; line-height: 1; opacity: 0.7;
    padding: 0 4px;
}
.flash-success { background: var(--success-bg); color: var(--success); border-bottom: 2px solid var(--success); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-bottom: 2px solid var(--danger); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-bottom: 2px solid var(--info); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-bottom: 2px solid var(--warning); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(205,127,50,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(205,127,50,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(205,127,50,0.15);
    border: 1px solid rgba(205,127,50,0.3);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; line-height: 1.7; max-width: 580px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary-dark); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: white; }
.btn-secondary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); display: block; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: white; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    background: rgba(205,127,50,0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(205,127,50,0.2);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-dark .section-badge { background: rgba(205,127,50,0.15); color: var(--accent-light); border-color: rgba(205,127,50,0.25); }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
    text-wrap: balance;
}
.section-dark .section-header h2 { color: white; }
.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
    text-wrap: balance;
}
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* =========================================
   SERVICE CARDS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform var(--transition);
    transform-origin: bottom;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
    width: 56px; height: 56px;
    background: rgba(0,80,81,0.08);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--primary); }
.service-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; line-height: 1.3; }
.service-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.75; text-wrap: balance; }

/* =========================================
   PARTNER CARDS
   ========================================= */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.partner-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.partner-card-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 36px 28px 24px;
    text-align: center;
    position: relative;
}
.partner-avatar {
    width: 90px; height: 90px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.2);
}
.partner-card-top h3 { color: white; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.partner-card-top .partner-title { color: var(--accent-light); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.partner-card-body { padding: 28px; }
.partner-card-body p { font-size: 0.875rem; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; text-wrap: balance; }
.partner-focus { border-top: 1px solid var(--border); padding-top: 18px; }
.partner-focus h4 { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.focus-tag {
    background: rgba(0,80,81,0.07);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 500;
    border: 1px solid rgba(0,80,81,0.1);
}

/* Footer logo alignment */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* =========================================
   SECTORS
   ========================================= */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sector-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
.sector-card:hover {
    background: rgba(205,127,50,0.1);
    border-color: rgba(205,127,50,0.3);
    transform: translateY(-4px);
}
.sector-icon {
    width: 64px; height: 64px;
    background: rgba(205,127,50,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.sector-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.sector-card h3 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.sector-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.6; }

/* Sector detail (light bg) */
.sector-card-light {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.sector-card-light:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.sector-card-light .sector-icon { background: rgba(0,80,81,0.06); }
.sector-card-light .sector-icon svg { stroke: var(--primary); }
.sector-card-light h3 { color: var(--primary); margin-bottom: 10px; line-height: 1.3; }
.sector-card-light p { color: var(--text-light); font-size: 0.875rem; line-height: 1.75; text-wrap: balance; }
.sector-services { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.sector-services ul { display: flex; flex-direction: column; gap: 6px; }
.sector-services li { color: var(--text-light); font-size: 0.82rem; display: flex; align-items: flex-start; gap: 8px; }
.sector-services li::before { content: '✓'; color: var(--accent-dark); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* =========================================
   NEWSROOM
   ========================================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-image-placeholder { color: rgba(255,255,255,0.3); font-family: var(--font-heading); font-size: 3rem; font-weight: 700; }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.news-category {
    background: rgba(0,80,81,0.08);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.news-date { color: var(--text-muted); font-size: 0.8rem; }
.news-card-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-card-body p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; flex: 1; }
.news-card-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.news-author { font-size: 0.8rem; color: var(--text-muted); }
.news-read-more { font-size: 0.85rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.news-read-more:hover { color: var(--accent-dark); }

/* =========================================
   AUTH / FORMS
   ========================================= */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 24px;
}
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon { margin: 0 auto 12px; width: 60px; height: 60px; font-size: 1.2rem; }
.auth-logo h1 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin-bottom: 4px; }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,80,81,0.08); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* =========================================
   DASHBOARD / PORTAL
   ========================================= */
.portal-layout { display: flex; min-height: calc(100vh - 120px); }
.sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
    padding: 24px 0;
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    overflow-y: auto;
}
.sidebar-user { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.sidebar-avatar {
    width: 48px; height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.sidebar-user h4 { font-size: 0.9rem; font-weight: 600; color: white; }
.sidebar-user span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.sidebar-nav { padding: 0 12px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; padding: 0 8px; margin-bottom: 8px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}
.sidebar-link.active { background: rgba(205,127,50,0.2); color: var(--accent-light); }
.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
}

.portal-main { flex: 1; background: var(--bg-light); padding: 32px; overflow-x: hidden; }
.portal-header { margin-bottom: 28px; }
.portal-header h1 { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); margin-bottom: 4px; }
.portal-header p { color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* Stats Cards */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.stat-card-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-icon.blue { background: #eff6ff; }
.stat-card-icon.blue svg { stroke: #2563eb; }
.stat-card-icon.green { background: #f0fdf4; }
.stat-card-icon.green svg { stroke: var(--success); }
.stat-card-icon.amber { background: #fffbeb; }
.stat-card-icon.amber svg { stroke: var(--warning); }
.stat-card-icon.red { background: var(--danger-bg); }
.stat-card-icon.red svg { stroke: var(--danger); }
.stat-card-info .stat-val { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-card-info .stat-lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Card */
.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--primary); }
.card-body { padding: 22px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-light); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending  { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg);  color: var(--danger); }
.badge-info     { background: var(--info-bg);    color: var(--info); }
.badge-primary  { background: rgba(0,80,81,0.08); color: var(--primary); }

/* Alert boxes */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.875rem; border-left: 4px solid; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; stroke: var(--border); margin: 0 auto 16px; display: block; }
.empty-state h3 { font-size: 1rem; color: var(--text-light); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
    display: none;
}
.modal-overlay.active { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.5rem; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo-name { color: white; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 320px; }
.footer-links h4, .footer-contact h4 { font-size: 0.82rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact ul { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    gap: 12px;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* =========================================
   NEWS SINGLE PAGE
   ========================================= */
.news-single { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.news-single-header { margin-bottom: 32px; }
.news-single-header h1 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--primary); line-height: 1.3; margin-bottom: 16px; }
.news-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.news-content h2, .news-content h3 { color: var(--primary); margin: 28px 0 14px; }
.news-content p { margin-bottom: 18px; }
.news-content ul, .news-content ol { margin: 14px 0 18px 24px; }
.news-content li { margin-bottom: 8px; }
.news-content img { border-radius: var(--radius); margin: 24px 0; }

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
    background: linear-gradient(140deg, #003536 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: white;
    padding: 72px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(205,127,50,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute; bottom: -60px; left: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 6px;
    line-height: 1.2;
    text-wrap: balance;
}
.page-hero .page-hero-bar {
    width: 52px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto;
}
.page-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
    text-wrap: balance;
}

/* CTA Section */
.cta-section {
    background: var(--accent);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--primary-dark); margin-bottom: 12px; }
.cta-section p { color: rgba(0,80,81,0.8); margin-bottom: 28px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .portal-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .sidebar-user { padding: 0; border: none; margin: 0; display: flex; align-items: center; gap: 12px; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
    .sidebar-section { margin: 0; }
    .sidebar-section-title { display: none; }
}
@media (max-width: 768px) {
    /* Top bar */
    .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
    .top-bar-left { gap: 12px; justify-content: center; }
    /* Header nav */
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--primary-dark);
        padding: 12px 16px 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 11px 16px; font-size: 0.92rem; border-radius: 6px; }
    .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); border: none; border-radius: 0; margin-top: 2px; }
    .dropdown-menu a { color: rgba(255,255,255,0.75) !important; background: transparent !important; padding: 9px 20px !important; font-size: 0.85rem !important; }
    /* Logo on mobile */
    .icai-logo-img { height: 44px; }
    .logo-name { font-size: 1.05rem; }
    .logo-tag { font-size: 0.58rem; letter-spacing: 1.5px; }
    /* Layout */
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 44px 0 32px; }
    .footer-links h4, .footer-contact h4 { margin-bottom: 14px; }
    .auth-card { padding: 32px 24px; }
    .portal-main { padding: 20px 16px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section-header p { font-size: 0.95rem; }
    .page-hero { padding: 52px 0 44px; }
    .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .section { padding: 56px 0; }
    /* Partner cards */
    .partner-card-top { padding: 28px 24px 20px; }
    .partner-card-body { padding: 22px 22px 24px; }
    /* News cards */
    .news-card-body { padding: 20px; }
    .news-card-footer { padding: 14px 20px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 11px 20px; font-size: 0.88rem; }
    .stats-row { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    /* Header */
    .icai-logo-img { height: 38px; }
    .logo-name { font-size: 0.95rem; }
    .header-inner { padding: 12px 0; }
    /* Page hero */
    .page-hero { padding: 44px 0 36px; }
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero p { font-size: 0.9rem; }
    /* Section */
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.45rem; }
    .section-badge { font-size: 0.68rem; padding: 4px 12px; }
    /* Partner card */
    .partner-avatar { width: 76px; height: 76px; font-size: 1.5rem; }
    /* Auth */
    .auth-card { padding: 28px 20px; }
    /* Footer */
    .footer-grid { gap: 24px; }
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
