/* ==========================================================================
   GLOBAL STYLE SHEET FOR SBSMT PORTAL ENGINE
   ========================================================================== */

:root {
    --primary: #1b5e20;
    --primary-light: #2e7d32;
    --primary-dark: #0d47a1;
    --accent: #e65100;
    --accent-light: #ffb74d;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Top Bar & Navigation --- */
.top-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.brand-identity-hub {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.portal-logo:hover {
    transform: scale(1.05);
}

.logo-fallback-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: 1px;
}

.brand-divider {
    width: 2px;
    height: 40px;
    background-color: var(--border);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
    transition: var(--transition);
}

.btn-nav:hover {
    background: #bf4300;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 81, 0, 0.35);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(27, 94, 32, 0.04), rgba(27, 94, 32, 0.01));
    padding: 80px 0 60px 0;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    color: #0f172a;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 20px auto;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

/* --- Interactive Two-Column / Grids Layouts --- */
.featured-layout-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.media-frame-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.media-frame-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.placeholder-img-display {
    width: 100%;
    height: 380px;
    background: #f1f5f9;
    border-radius: calc(var(--radius-md) - 4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed #cbd5e1;
    overflow: hidden;
    position: relative;
}

.placeholder-img-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption-area {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.hero-text-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.hero-text-block h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-text-block p {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 16px;
}

/* --- Content Areas --- */
.main-content-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    margin-bottom: 60px;
}

.about-section-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.about-section-panel h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.about-section-panel p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-note-box {
    background: #f0fdf4;
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
    margin-top: 30px;
}

/* --- Multi-Block Split Layout --- */
.bottom-info-hub {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.info-block-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-block-item h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 4px;
}

/* --- Operational Grid Cards --- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.portal-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 12px;
}

.portal-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.portal-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.portal-card:hover .portal-btn {
    background: var(--primary);
    color: white;
}

.portal-card:hover .portal-btn svg {
    transform: translateX(4px);
}

.cbt-highlight {
    border: 2px solid var(--accent);
    background: linear-gradient(to bottom dashed, #fff, rgba(230, 81, 0, 0.02));
}

.cbt-badge {
    background: #ff3d00;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

.cbt-btn-color {
    background: var(--accent);
    color: white;
}

.portal-card.cbt-highlight:hover .portal-btn.cbt-btn-color {
    background: #bf4300;
}

/* --- Professional Form Configurations --- */
.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    background-color: #f8fafc;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* --- Team Component Profiles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.team-email {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    word-break: break-all;
}

.team-email:hover {
    color: var(--primary);
}

/* --- CBT Exam Engine Styles --- */
.cbt-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
}

.cbt-header-hub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.timer-box {
    background: #fee2e2;
    color: #ef4444;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    border: 1px solid #fca5a5;
}

.q-card {
    margin-bottom: 30px;
    animation: fadeIn 0.4s ease;
}

.q-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0f172a;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #f8fafc;
    transition: var(--transition);
}

.option-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.option-item input {
    margin-right: 16px;
    transform: scale(1.2);
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0;
    font-size: 14px;
    border-top: 4px solid var(--primary);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-sub {
    max-width: 500px;
    line-height: 1.6;
}

.footer-copy {
    text-align: right;
}

.footer-credit {
    color: var(--accent-light);
    font-weight: 600;
    margin-top: 8px;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .featured-layout-wrapper, .main-content-layout {
        grid-template-columns: 1fr;
    }
    .bottom-info-hub {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .bottom-info-hub { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .hero h1 { font-size: 32px; }
}

/* ==========================================================================
   STRICT A4 PRINT COMPLIANCE STYLESHEET OVERRIDES
   ========================================================================== */
@media print {
    body, html {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt !important;
    }
    header, footer, .top-bar, .portal-grid, .btn-submit, button, .no-print {
        display: none !important;
    }
    .print-page-layout {
        width: 210mm;
        height: 297mm;
        padding: 15mm !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
        page-break-after: always;
    }
    .print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 15px;
    }
    .print-table th, .print-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        text-align: left !important;
        font-size: 10pt !important;
    }
}