/* ============================================================
   Karaama College for Science and Technology
   Main Stylesheet
   ============================================================ */

/* ---------- Google Font + CSS Custom Properties ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --primary:     #c62128;
    --primary-dark:#8b1115;
    --primary-mid: #a51a1f;
    --gold:        #fecb00;
    --gold-light:  #fff185;
    --gold-dark:   #d4aa00;
    --accent-blue: #004a99;
    --white:       #ffffff;
    --light:       #f8f9ff;
    --light-gray:  #eef0f7;
    --text-dark:   #1a1a2e;
    --text-muted:  #6b7280;
    --border:      #e2e6f3;
    --shadow-sm:   0 2px 10px rgba(198,33,40,0.08);
    --shadow-md:   0 8px 30px rgba(198,33,40,0.12);
    --shadow-lg:   0 20px 60px rgba(198,33,40,0.18);
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   30px;
    --transition:  0.3s cubic-bezier(0.4,0,0.2,1);

    /* Legacy aliases to maintain compatibility */
    --navy:        var(--primary);
    --navy-dark:   var(--primary-dark);
    --navy-mid:    var(--primary-mid);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

/* ---------- Utility Classes ---------- */
.text-gold  { color: var(--gold) !important; }
.text-navy  { color: var(--navy) !important; }
.bg-navy    { background-color: var(--navy) !important; }
.bg-gold    { background-color: var(--gold) !important; }
.bg-light-custom { background-color: var(--light) !important; }

/* ---------- Buttons ---------- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    border: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
    color: var(--navy-dark);
}

.btn-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(10,31,68,0.3);
}
.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 22px;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 0;
    overflow: hidden;
}
.announcement-bar .marquee-text { display: inline-block; white-space: nowrap; }
.announcement-links a {
    color: var(--navy-dark);
    font-weight: 700;
    white-space: nowrap;
    border-left: 1px solid rgba(10,31,68,0.3);
    padding-left: 12px;
}
.announcement-links a:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
#mainNav {
    background: var(--navy) !important;
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    transition: var(--transition);
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy-dark);
    font-weight: 900;
    flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}
.logo-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--gold) !important;
    background: rgba(201,168,76,0.1);
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after { width: 60%; }

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    border-top: 3px solid var(--gold);
    animation: dropFade 0.2s ease;
}
@keyframes dropFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: var(--light);
    color: var(--navy);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: 2.8rem; }
.page-hero .lead { color: rgba(255,255,255,0.8); }
.page-hero .breadcrumb-item a { color: var(--gold); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---------- Section Titles ---------- */
.section-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: var(--gold-dark);
    border: 1px solid rgba(201,168,76,0.4);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 16px;
}
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    margin: 0 auto 20px;
}
.section-divider.left { margin-left: 0; }

/* ---------- HOME HERO ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0d3b7e 100%);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.5);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title .highlight { color: var(--gold); }

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.quick-link-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    min-width: 160px;
    text-decoration: none;
}
.quick-link-card:hover {
    background: rgba(201,168,76,0.2);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-3px);
}
.quick-link-card .ql-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-dark);
    font-size: 1rem;
    flex-shrink: 0;
}
.quick-link-card .ql-text { font-size: 0.85rem; font-weight: 600; }

.hero-image-area { position: relative; z-index: 2; }
.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    color: var(--white);
}
.hero-card-icon {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin: 0 auto 20px;
    box-shadow: 0 20px 40px rgba(201,168,76,0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(201,168,76,0.4); }
    50%       { box-shadow: 0 20px 60px rgba(201,168,76,0.7); }
}

/* ---------- STAT ITEMS (hero) ---------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; justify-content: center; }
.hero-stat-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    text-align: center;
    flex: 1; min-width: 100px;
}
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--gold); font-family: 'Inter', sans-serif; }
.hero-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }

/* ---------- STATS SECTION ---------- */
.stats-section { padding: 100px 0; background: var(--light); }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.stat-icon {
    width: 80px; height: 80px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.stat-number { font-size: 3rem; font-weight: 800; color: var(--navy); font-family: 'Inter', sans-serif; line-height: 1; }
.stat-label  { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ---------- COURSE CARDS ---------- */
.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 5px solid var(--card-color, var(--primary));
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.course-card-header {
    padding: 30px 24px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
}
.course-card-header h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 4px 0 0;
    line-height: 1.25;
    color: var(--text-dark);
}
.course-tag {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 2px;
}
.course-icon {
    width: 52px; height: 52px;
    background: var(--light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--card-color, var(--primary));
    transition: all 0.3s ease;
}
.course-card:hover .course-icon {
    transform: scale(1.1);
    background: var(--card-color, var(--primary));
    color: #fff;
}
.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-card-body p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.program-count {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    color: var(--text-muted);
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.course-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.programs-preview {
    margin-top: auto;
    margin-bottom: 24px;
    border-top: 1px solid #f0f2f9;
}
.preview-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 0 8px;
    letter-spacing: 0.08em;
}
.preview-label::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(0,0,0,0.05);
}
.programs-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.programs-preview li {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f2f9;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.programs-preview li:last-child { border-bottom: none; }
.programs-preview li:hover { padding-left: 5px; color: var(--navy); }
.btn-view-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: var(--light);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-view-course:hover {
    background: #fff;
    border-color: var(--card-color, var(--primary));
    color: var(--card-color, var(--primary));
}
.btn-view-course i {
    transition: transform 0.3s ease;
}
.btn-view-course:hover i {
    transform: translateX(5px);
}

/* ---------- NEWS CARDS ---------- */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-img {
    height: 200px;
    overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-card-img-placeholder {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.news-card-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.news-card-title a { color: var(--navy); }
.news-card-title a:hover { color: var(--gold-dark); }
.news-excerpt { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 16px;
    transition: var(--transition);
}
.read-more:hover { gap: 10px; color: var(--navy); }

/* ---------- PORTAL FORMS ---------- */
.portal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.portal-card-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
    padding: 40px;
    color: var(--white);
    text-align: center;
}
.portal-card-header .portal-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--navy-dark);
    margin: 0 auto 16px;
}
.portal-card-body { padding: 40px; }

.form-label { font-weight: 600; color: var(--navy); font-size: 0.88rem; margin-bottom: 6px; }
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
    outline: none;
}

/* Result Display */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.result-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
    padding: 30px;
    color: var(--white);
}
.result-body { padding: 30px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.info-item { }
.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.info-value { font-size: 1rem; font-weight: 600; color: var(--navy); }

.download-btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* Alert / Status badges */
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-valid   { background: #dcfce7; color: #166534; }
.status-invalid { background: #fee2e2; color: #991b1b; }

/* ---------- CONTACT ---------- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.contact-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-card-text h6 { color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.contact-card-text p, .contact-card-text a { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- ABOUT PAGE ---------- */
.leadership-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.leadership-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.leadership-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin: 0 auto 16px;
    border: 4px solid var(--gold);
}

/* ---------- ADMIN LOGIN ---------- */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0d3b7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 80px 0 60px; }
.footer-brand { }
.footer-logo-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--navy-dark);
    flex-shrink: 0;
}
.footer-logo-name  { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-logo-sub   { font-size: 0.72rem; color: var(--gold); }
.footer-desc       { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-heading    { color: var(--gold); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-links      { list-style: none; padding: 0; }
.footer-links li   { margin-bottom: 10px; }
.footer-links a    { color: rgba(255,255,255,0.65); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-links a i  { font-size: 0.6rem; color: var(--gold); }
.footer-contact    { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 20px; }
.footer-contact .contact-icon {
    width: 38px; height: 38px;
    background: rgba(201,168,76,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 0.9rem;
    flex-shrink: 0; margin-top: 2px;
}
.footer-contact strong { color: rgba(255,255,255,0.9); font-size: 0.8rem; display: block; margin-bottom: 2px; }
.footer-contact p, .footer-contact a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--gold); }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom strong { color: rgba(255,255,255,0.8); }

/* ---------- TABLES ---------- */
.custom-table { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.custom-table thead { background: var(--navy); color: var(--white); }
.custom-table thead th { border: none; padding: 14px 16px; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.custom-table tbody tr { transition: var(--transition); }
.custom-table tbody tr:hover { background: var(--light); }
.custom-table td { padding: 14px 16px; vertical-align: middle; border-color: var(--border); }

/* ---------- MISC ---------- */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230a1f44' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.card-hover { transition: var(--transition); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Alert styles */
.alert-navy { background: rgba(10,31,68,0.08); border-color: var(--navy); color: var(--navy); }

/* Programs list */
.program-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    margin-bottom: 16px;
}
.program-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.program-item h6 { color: var(--navy); font-weight: 700; margin-bottom: 8px; }

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    border-radius: var(--radius-md);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
#backToTop:hover { background: var(--gold-dark); transform: translateY(-3px); }
#backToTop.visible { display: flex; }

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item, .breadcrumb-item a { font-size: 0.85rem; }

/* Grade badges */
.grade-A { background: #dcfce7; color: #166534; }
.grade-B { background: #dbeafe; color: #1e40af; }
.grade-C { background: #e0f2fe; color: #0369a1; }
.grade-D { background: #fef9c3; color: #854d0e; }
.grade-E { background: #f3f4f6; color: #374151; }
.grade-F { background: #fee2e2; color: #991b1b; }

.grade-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* GPA Banner */
.gpa-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.gpa-value { font-size: 3rem; font-weight: 800; color: var(--gold); font-family: 'Inter', sans-serif; line-height: 1; }
.gpa-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.gpa-classification { font-size: 1.1rem; font-weight: 700; color: var(--gold-light); }

/* Semester group */
.semester-group { margin-bottom: 32px; }
.semester-heading {
    background: var(--light);
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Tweaks */
@media (max-width: 992px) {
    .hero-section { min-height: auto; padding: 100px 0 60px; }
    .hero-title   { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .page-hero h1  { font-size: 2rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .hero-cta   { flex-direction: column; }
    .portal-card-body { padding: 24px; }
    .gpa-banner { flex-direction: column; text-align: center; }
}
