/* =========================================================
   HHH Foundation School Job Application Portal Stylesheet
   Color Theme: Navy (#0b2545), Blue (#0284c7), Gold (#f59e0b)
   ========================================================= */

:root {
    --primary: #0b2545;
    --primary-light: #133b5c;
    --primary-dark: #07182c;
    --secondary: #0284c7;
    --accent-yellow: #f59e0b;
    --accent-green: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;
    --border-focus: #0284c7;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 6px 0;
    font-size: 13px;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.branding-box {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.school-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.school-titles h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.school-titles p {
    font-size: 13px;
    color: #d97706;
    font-weight: 600;
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background: #e0f2fe;
    color: var(--secondary);
}

.nav-link.btn-apply {
    background: var(--primary);
    color: #ffffff;
}

.nav-link.btn-apply:hover {
    background: var(--primary-light);
    color: #ffffff;
}

/* Main Container */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(11, 37, 69, 0.92), rgba(19, 59, 92, 0.92)), url('../img/logo.png') center/contain no-repeat;
    background-color: var(--primary);
    border-radius: var(--radius-md);
    color: #ffffff;
    padding: 45px 35px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--accent-yellow);
}

.hero-banner h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-banner p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
}
.btn-secondary:hover {
    background: #0369a1;
}

.btn-accent {
    background: var(--accent-yellow);
    color: #1e293b;
    font-weight: 700;
}
.btn-accent:hover {
    background: #d97706;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}
.btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
}

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

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Cards & Sections */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Form Section Banners matching Official Document */
.form-section-header {
    background: #64748b;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin: 25px 0 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-section-header.primary-accent {
    background: var(--primary);
}

/* Dynamic Table Styles */
.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dynamic-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.dynamic-table td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dynamic-table input,
.dynamic-table select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}

/* Passport Upload Container */
.passport-box {
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
    width: 160px;
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin: 0 auto 10px auto;
    text-align: center;
}

.passport-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.passport-placeholder {
    color: #64748b;
    font-size: 12px;
    padding: 10px;
}

/* Vacancy Card */
.vacancy-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vacancy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.vacancy-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vacancy-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.vacancy-dept {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.vacancy-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: auto;
}

/* Badges & Status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-submitted { background: #e0f2fe; color: #0369a1; }
.badge-review { background: #fef3c7; color: #92400e; }
.badge-shortlisted { background: #dcfce7; color: #166534; }
.badge-interview { background: #f3e8ff; color: #6b21a8; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 45px 20px 25px 20px;
    border-top: 4px solid var(--secondary);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-yellow);
    padding-left: 10px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}
