/*
   Cape Institute of Technology — global.css
   Variables · Reset · Utilities · Typography · Buttons
   ─────────────────────────────────────────────────────
   Imported by EVERY page. Do not put page-specific rules here.
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
    --primary:        #02147E;
    --primary-lift:   #0D2494;
    --primary-mid:    #1A3BAD;
    --primary-light:  #EEF2FF;
    --primary-pale:   #F5F7FF;
    --gold:           #C9973A;
    --gold-light:     #E0AE50;
    --gold-pale:      rgba(201,151,58,0.12);
    --gold-glow:      0 0 40px rgba(201,151,58,0.28);
    --white:          #FFFFFF;
    --off-white:      #F8FAFF;
    --light-blue:     #DDE6F7;
    --text:           #0B1033;
    --text-mid:       #3D4875;
    --text-muted:     #6B7BAD;
    --text-on-dark:   #C8D3F0;
    --border:         #D4DCF0;
    --green:          #2D5E3A;
    --font-display:   'Poppins', sans-serif;
    --font-ui:        'Poppins', sans-serif;
    --font-body:      'Poppins', sans-serif;
    --shadow-xs:  0 1px 4px rgba(2,20,126,0.06);
    --shadow-sm:  0 4px 12px rgba(2,20,126,0.08);
    --shadow-md:  0 8px 28px rgba(2,20,126,0.11);
    --shadow-lg:  0 20px 50px rgba(2,20,126,0.14);
    --shadow-xl:  0 32px 72px rgba(2,20,126,0.18);
    --shadow-gold:0 6px 24px rgba(201,151,58,0.38);
    --ease:     cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-out: cubic-bezier(0.0,  0.0, 0.2,  1);
    --t-fast:   0.18s ease;
    --t-med:    0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    --t-slow:   0.56s cubic-bezier(0.0,  0.0, 0.2,  1);
    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 50px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: clip;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
a   { text-decoration: none; color: inherit; transition: var(--t-fast); }
ul  { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.container    { max-width: 1260px; margin: 0 auto; padding: 0 40px; }
.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.text-light   { color: var(--text-on-dark) !important; }
.accent-color { color: var(--gold-light) !important; }
.text-primary { color: var(--gold) !important; }
.text-muted   { color: var(--text-muted) !important; }
.bg-light     { background-color: var(--primary-light); }
.mb-3 { margin-bottom: 1rem; }    .mb-4 { margin-bottom: 1.5rem; }  .mb-5 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1rem; }       .mt-4 { margin-top: 1.5rem; }     .mt-5 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2    { margin: 0 14px; }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.shadow-xl  { box-shadow: var(--shadow-xl); }
.rounded-xl { border-radius: var(--r-xl); }
.img-fluid  { width: 100%; display: block; }
.relative   { position: relative; }
.z-10       { position: relative; z-index: 10; }

/* ═══════════════════════════════════════════════════════════
   SECTION TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
.section { padding: 90px 0; }

.section-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
/* Left-aligned variants — suppress decorative lines */
.about-content .section-subtitle,
.placements-content .section-subtitle { justify-content: flex-start; }
.about-content .section-subtitle::before,
.about-content .section-subtitle::after,
.placements-content .section-subtitle::before,
.placements-content .section-subtitle::after { display: none; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.section-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 680px;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.section-header { margin-bottom: 20px; }
.section-header .section-text { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-med);
}
.btn-large         { padding: 16px 38px; font-size: 1rem; }
.btn-primary       { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--primary); font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); color: var(--primary); box-shadow: var(--shadow-gold); }
.btn-secondary       { background: var(--primary); color: white; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-lift); transform: translateY(-2px); color: white; }
.btn-outline         { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover   { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-outline-light       { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: white; color: var(--primary); transform: translateY(-2px); }
.btn-glow       { box-shadow: var(--shadow-gold); }
.btn-glow:hover { box-shadow: 0 10px 32px rgba(201,151,58,0.55); }

.btn-ghost-hero {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--t-med);
    text-decoration: none;
}
.btn-ghost-hero:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.7); }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gold);
    transition: gap var(--t-fast), color var(--t-fast);
}
.btn-link:hover { gap: 12px; color: var(--gold-light); }
.btn-link i { font-size: 0.85rem; }

.view-all-btn         { border-color: var(--primary); color: var(--primary); }
.view-all-btn:hover   { background: var(--primary); color: white; }

/* ═══════════════════════════════════════════════════════════
   FORM CONTROLS  (shared across enquiry popup + contact page)
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--t-fast);
    background: var(--primary-pale);
    color: var(--text);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-mid);
    background: white;
    box-shadow: 0 0 0 3px rgba(2,20,126,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
.w-100 { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .section   { padding: 72px 0; }
}
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .section   { padding: 64px 0; }
}
@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .section   { padding: 52px 0; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .btn-large { padding: 12px 22px; font-size: 0.9rem; }
}
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .section   { padding: 44px 0; }
    .section-title { font-size: 1.4rem; }
}