
/* =====================================================
   MTs ALMUTTAQIIIN PIR C3
   Main Stylesheet
   File: assets/css/style.css
   ===================================================== */

/* ================= ROOT ================= */

:root {
    --primary: #123b70;
    --primary-dark: #0a2345;
    --primary-light: #1f5da8;
    --secondary: #e8b84c;
    --secondary-light: #fff1c9;

    --white: #ffffff;
    --background: #f5f8fc;
    --surface: #ffffff;

    --text: #172b4d;
    --text-light: #64748b;
    --border: #e3eaf3;

    --success: #15803d;
    --danger: #dc2626;

    --shadow-sm: 0 4px 12px rgba(15, 40, 75, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 40, 75, 0.10);
    --shadow-lg: 0 20px 50px rgba(15, 40, 75, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container: 1200px;
    --transition: all 0.3s ease;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style-position: inside;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 85px 0;
}

.section-white {
    background: var(--white);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.25;
    color: var(--primary-dark);
    font-weight: 800;
}

.section-heading p {
    color: var(--text-light);
    font-size: 16px;
}

.text-primary {
    color: var(--primary);
}

.text-gold {
    color: var(--secondary);
}

.text-center {
    text-align: center;
}

/* ================= TOP BAR ================= */

.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    padding: 9px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar a:hover {
    color: var(--secondary);
}

/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(227, 234, 243, 0.8);
    backdrop-filter: blur(15px);
}

.navbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-text strong {
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 800;
}

.brand-text span {
    margin-top: 3px;
    color: var(--text-light);
    font-size: 11px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #42536c;
    font-size: 13px;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--primary);
    font-size: 20px;
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 7px 18px rgba(18, 59, 112, 0.18);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    color: var(--primary-dark);
    background: var(--secondary);
}

.btn-gold:hover {
    background: #f3cb70;
}

.btn-outline {
    color: var(--primary);
    background: transparent;
    border-color: var(--primary);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--primary);
}

.btn-white {
    color: var(--primary);
    background: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(54, 120, 195, 0.4),
            transparent 35%
        ),
        linear-gradient(120deg, #071d3b 0%, #123b70 55%, #1c589b 100%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 500px;
    height: 500px;
    top: -240px;
    right: -100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, 0.025),
        0 0 0 90px rgba(255, 255, 255, 0.02);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
    padding: 75px 0;
}

.hero-content {
    max-width: 660px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    color: #ffdf8c;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    font-weight: 850;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    max-width: 560px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    left: -22px;
    bottom: 28px;
    max-width: 230px;
    padding: 17px 20px;
    color: var(--text);
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.hero-badge strong {
    display: block;
    color: var(--primary);
    font-size: 14px;
}

.hero-badge span {
    color: var(--text-light);
    font-size: 12px;
}

/* ================= STATISTICS ================= */

.stats-section {
    position: relative;
    z-index: 2;
    margin-top: -38px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    padding: 28px 18px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--border);
}

.stat-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 30px;
    font-weight: 800;
}

.stat-item span {
    color: var(--text-light);
    font-size: 12px;
}

/* ================= GENERAL CARDS ================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e7edf5;
}

.card-body {
    padding: 23px;
}

.card-title {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 750;
}

.card-text {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.8;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 11px;
}

/* ================= FEATURE CARDS ================= */

.feature-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: #b5c9e4;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    color: var(--primary);
    background: #eaf1fb;
    border-radius: 15px;
    font-size: 25px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 13px;
}

/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.about-image img {
    width: 100%;
    max-height: 490px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.3;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 22px 0 28px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
}

.check-list li i {
    margin-top: 5px;
    color: var(--success);
}

/* ================= NEWS / ARTICLES ================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    background: #e7edf5;
}

.news-content {
    padding: 23px;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 12px;
    color: var(--primary);
    background: #eaf1fb;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-content h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 18px;
    line-height: 1.5;
}

.news-content p {
    margin-bottom: 17px;
    color: var(--text-light);
    font-size: 13px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.read-more:hover {
    color: var(--primary-light);
    gap: 12px;
}

/* ================= GALLERY ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border-radius: var(--radius-md);
    background: #dce6f2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(
        transparent 25%,
        rgba(5, 23, 49, 0.88)
    );
}

.gallery-overlay h3 {
    font-size: 17px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* ================= CALL TO ACTION ================= */

.cta-section {
    padding: 65px 0;
    color: var(--white);
    background:
        radial-gradient(
            circle at right top,
            rgba(71, 130, 201, 0.35),
            transparent 40%
        ),
        var(--primary-dark);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-content h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.3;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

/* ================= FOOTER ================= */

.footer {
    padding-top: 65px;
    color: rgba(255, 255, 255, 0.78);
    background: #07182f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 45px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 14px;
}

.footer p {
    font-size: 12px;
    line-height: 1.9;
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 12px;
    list-style: none;
}

.footer-links a {
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 11px;
}

/* =========================================
   LOGIN PORTAL MTs ALMUTTAQIIN PIR C3
   ========================================= */

.login-page {
    --login-blue: #1646a0;
    --login-dark: #102b62;
    --login-gold: #f2c866;
    --login-text: #182747;
    --login-muted: #71809b;

    margin: 0;
    min-height: 100vh;
    background: #f5f8fe;
    color: var(--login-text);
    font-family: 'DM Sans', sans-serif;
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.login-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px clamp(26px, 5vw, 76px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(75,137,255,.32), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(242,200,102,.15), transparent 28%),
        linear-gradient(145deg, #1a4ca4, #102b62 62%, #091b3f);
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    pointer-events: none;
}

.login-showcase::before {
    width: 520px;
    height: 520px;
    right: -250px;
    top: 15%;
}

.login-showcase::after {
    width: 380px;
    height: 380px;
    right: -180px;
    top: 23%;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.login-brand-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    padding: 5px;
    overflow: hidden;
    border-radius: 17px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
}

.login-brand-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-logo i {
    position: absolute;
    font-size: 26px;
    color: #fff;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-brand-text strong {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    letter-spacing: .5px;
}

.login-brand-text small {
    color: #c8d9ff;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.login-showcase-content {
    max-width: 570px;
    margin: 65px 0;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #f7d98d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.login-showcase h1 {
    margin: 26px 0 20px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(38px, 4.5vw, 65px);
    line-height: 1.14;
    letter-spacing: -2px;
    font-weight: 800;
}

.login-showcase h1 span {
    color: var(--login-gold);
}

.login-showcase-content > p {
    max-width: 490px;
    color: #d3e0ff;
    font-size: 15px;
    line-height: 1.9;
}

.login-feature-list {
    display: grid;
    gap: 21px;
    margin-top: 40px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-feature-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    color: #f7d98d;
    font-size: 18px;
}

.login-feature > span:last-child {
    display: grid;
    gap: 5px;
}

.login-feature strong {
    font-size: 14px;
}

.login-feature small {
    color: #bdcfee;
    font-size: 12px;
    line-height: 1.6;
}

.login-showcase-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    color: #c8d9ff;
    font-size: 11px;
}

.login-showcase-footer i {
    margin-right: 5px;
    color: var(--login-gold);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(25px, 5vw, 80px);
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 430px;
}

.login-mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 17px;
    background: #eaf1ff;
    color: #1646a0;
    font-size: 22px;
}

.login-form-label {
    color: #1646a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.login-heading h2 {
    margin: 10px 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-heading p {
    margin: 0;
    color: #71809b;
    font-size: 13px;
    line-height: 1.8;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px 15px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #b42318;
    font-size: 12px;
    line-height: 1.7;
}

.login-alert i {
    margin-top: 2px;
}

.login-field {
    margin-bottom: 22px;
}

.login-field > label,
.login-label-row label {
    display: block;
    margin-bottom: 10px;
    color: #233453;
    font-size: 12px;
    font-weight: 700;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 15px;
    border: 1px solid #e0e7f2;
    border-radius: 13px;
    background: #fbfcff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-input-wrap:focus-within {
    border-color: #4777d7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22,70,160,.08);
}

.login-input-wrap > i {
    flex-shrink: 0;
    color: #8493ae;
    font-size: 15px;
}

.login-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 16px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #182747;
    font-size: 13px;
}

.login-input-wrap input::placeholder {
    color: #a0abc0;
}

.login-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #71809b;
    cursor: pointer;
}

.login-password-toggle:hover {
    background: #eaf1ff;
    color: #1646a0;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-height: 55px;
    margin-top: 9px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(110deg, #1d54b4, #102b62);
    box-shadow: 0 10px 24px rgba(16,43,98,.17);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16,43,98,.24);
}

.login-submit i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: rgba(255,255,255,.14);
}

.login-role-info {
    margin-top: 31px;
    padding: 18px;
    border: 1px solid #e6ecf6;
    border-radius: 14px;
    background: #f8faff;
}

.login-role-info-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4c5e7c;
    font-size: 11px;
    font-weight: 600;
}

.login-role-info-title i {
    color: #1646a0;
}

.login-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}

.login-role-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eaf1ff;
    color: #244e96;
    font-size: 10px;
    font-weight: 700;
}

.login-bottom {
    margin-top: 27px;
    text-align: center;
}

.login-bottom > a {
    color: #526686;
    font-size: 12px;
}

.login-bottom > a:hover {
    color: #1646a0;
}

.login-bottom > a i {
    margin-right: 5px;
}

.login-bottom p {
    margin: 18px 0 0;
    color: #98a4b9;
    font-size: 10px;
}

/* Tablet dan HP */
@media (max-width: 1000px) {
    .login-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    }

    .login-showcase {
        padding: 30px;
    }

    .login-form-panel {
        padding: 35px 28px;
    }

    .login-showcase h1 {
        font-size: 42px;
    }
}

@media (max-width: 760px) {
    .login-layout {
        display: block;
    }

    .login-showcase {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 30px 22px;
        background:
            radial-gradient(circle at top right, #eaf1ff, transparent 38%),
            #fff;
    }

    .login-form-container {
        max-width: 440px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 48px;
        color: #102b62;
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        font-weight: 800;
    }

    .login-mobile-brand img {
        width: 43px;
        height: 43px;
        object-fit: contain;
    }

    .login-heading {
        margin-bottom: 28px;
    }

    .login-heading-icon {
        width: 49px;
        height: 49px;
        margin-bottom: 20px;
    }

    .login-heading h2 {
        font-size: 29px;
    }
}

@media (max-width: 380px) {
    .login-form-panel {
        padding: 24px 16px;
    }

    .login-mobile-brand {
        margin-bottom: 35px;
    }

    .login-role-info {
        padding: 14px;
    }

    .login-role-list {
        gap: 6px;
    }
}
/* =========================================
   LOGOUT PORTAL - MTs ALMUTTAQIIN PIR C3
   ========================================= */

.logout-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(64, 117, 220, .13), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(242, 200, 102, .12), transparent 28%),
        #f3f6fc;
    color: #182747;
    font-family: 'DM Sans', sans-serif;
}

.logout-page *,
.logout-page *::before,
.logout-page *::after {
    box-sizing: border-box;
}

.logout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 18px;
}

.logout-card {
    width: 100%;
    max-width: 465px;
    padding: 36px;
    border: 1px solid #e7ecf5;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(23, 49, 97, .10);
    text-align: center;
    animation: logoutAppear .4s ease both;
}

@keyframes logoutAppear {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    text-align: left;
    text-decoration: none;
    color: #102b62;
}

.logout-brand img {
    width: 51px;
    height: 51px;
    object-fit: contain;
}

.logout-brand span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logout-brand strong {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    letter-spacing: .3px;
}

.logout-brand small {
    color: #8290aa;
    font-size: 9px;
    letter-spacing: 1.1px;
}

.logout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    border: 1px solid #dce7ff;
    border-radius: 25px;
    background: linear-gradient(145deg, #edf3ff, #dfeaff);
    color: #1646a0;
    font-size: 31px;
}

.logout-eyebrow {
    color: #1646a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logout-card h1 {
    margin: 13px 0;
    color: #14274b;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(25px, 5vw, 32px);
    font-weight: 800;
    letter-spacing: -.8px;
}

.logout-description {
    margin: 0 auto 27px;
    color: #74829a;
    font-size: 13px;
    line-height: 1.9;
}

.logout-description strong {
    color: #253e6c;
}

.logout-button-confirm,
.logout-button-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 51px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.logout-button-confirm {
    border: 0;
    background: linear-gradient(110deg, #1d54b4, #102b62);
    box-shadow: 0 8px 20px rgba(16, 43, 98, .17);
    color: #fff;
}

.logout-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 43, 98, .23);
}

.logout-button-cancel {
    margin-top: 12px;
    border: 1px solid #e1e8f3;
    background: #fff;
    color: #526686;
}

.logout-button-cancel:hover {
    background: #f4f7fd;
    color: #1646a0;
}

.logout-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid #e5ecf8;
    border-radius: 12px;
    background: #f7f9fe;
    color: #7786a0;
    font-size: 10px;
    line-height: 1.8;
    text-align: left;
}

.logout-security-note i {
    margin-top: 2px;
    color: #1646a0;
}

.logout-footer {
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid #edf0f6;
    color: #9aa6ba;
    font-size: 10px;
}

@media (max-width: 480px) {
    .logout-container {
        padding: 18px 13px;
    }

    .logout-card {
        padding: 27px 21px;
        border-radius: 21px;
    }

    .logout-brand {
        margin-bottom: 30px;
    }

    .logout-icon {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logout-card {
        animation: none;
    }

    .logout-button-confirm,
    .logout-button-cancel {
        transition: none;
    }
}
/* ================= RESPONSIVE MOBILE ================= */

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 30px);
    }

    .section {
        padding: 60px 0;
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar-info {
        justify-content: center;
        gap: 8px 14px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 9px 11px;
        font-size: 11px;
    }

    .hero-grid {
        padding: 52px 0 65px;
        gap: 38px;
    }

    .hero h1 {
        font-size: clamp(33px, 9vw, 44px);
        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        align-items: stretch;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
    }

    .hero-image img {
        border-width: 3px;
        border-radius: 18px;
    }

    .hero-badge {
        left: 10px;
        bottom: 12px;
        max-width: 200px;
        padding: 12px 15px;
    }

    .stats-section {
        margin-top: -22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 15px;
    }

    .stat-item {
        padding: 21px 10px;
    }

    .stat-item + .stat-item {
        border-left: none;
    }

    .stat-item:nth-child(even) {
        border-left: 1px solid var(--border);
    }

    .stat-item:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .stat-item strong {
        font-size: 25px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .card-grid,
    .news-grid,
    .gallery-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .card-image,
    .news-card img {
        height: 220px;
    }

    .feature-card {
        padding: 23px;
    }

    .about-grid {
        gap: 28px;
    }

    .about-content h2 {
        font-size: 29px;
    }

    .gallery-item,
    .gallery-item img {
        min-height: 220px;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-banner {
        padding: 35px 24px;
    }

    .login-form-wrap {
        padding: 35px 24px;
    }

    .dashboard-topbar {
        min-height: 65px;
        padding: 12px 16px;
    }

    .dashboard-topbar h1 {
        font-size: 16px;
    }

    .dashboard-content {
        padding: 18px 14px;
    }

    .dashboard-welcome {
        padding: 22px;
    }

    .dashboard-welcome h2 {
        font-size: 21px;
    }

    .dashboard-stats {
        gap: 12px;
    }

    .dashboard-stat {
        padding: 17px 14px;
    }

    .dashboard-stat strong {
        font-size: 24px;
    }

    .table-header {
        padding: 17px;
    }

    th,
    td {
        padding: 12px;
    }
}
/* =========================================
   LAYOUT PORTAL - MTs ALMUTTAQIIN PIR C3
   ========================================= */

.portal-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fc;
    color: #182747;
    font-family: 'DM Sans', sans-serif;
}

.portal-page *,
.portal-page *::before,
.portal-page *::after {
    box-sizing: border-box;
}

.portal-layout {
    display: flex;
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    z-index: 1000;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 255px;
    padding: 24px 16px 17px;
    overflow-y: auto;
    background: linear-gradient(180deg, #102b62 0%, #0b1d43 100%);
    color: #fff;
}

.portal-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 32px;
    padding: 0 5px;
    color: #fff;
    text-decoration: none;
}

.portal-logo {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.10);
}

.portal-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-logo i {
    position: absolute;
    font-size: 23px;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.portal-brand-text strong {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    letter-spacing: .2px;
}

.portal-brand-text small {
    color: #b9cbed;
    font-size: 9px;
    letter-spacing: .8px;
}

.portal-sidebar-caption {
    margin: 0 11px 13px;
    color: #90a8d4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.portal-nav {
    display: grid;
    gap: 6px;
}

.portal-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #c5d3ed;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.portal-nav-link > i {
    width: 19px;
    color: #9fb6e1;
    font-size: 15px;
    text-align: center;
}

.portal-nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.portal-nav-link.active {
    border-color: rgba(255,255,255,.09);
    background: linear-gradient(100deg, #2456a9, #1a4389);
    color: #fff;
    box-shadow: inset 3px 0 #f2c866;
}

.portal-nav-link.active > i {
    color: #f2c866;
}

.portal-nav-indicator {
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-radius: 50%;
    background: #f2c866;
}

.portal-sidebar-bottom {
    margin-top: auto;
    padding-top: 22px;
}

.portal-user-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
}

.portal-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: linear-gradient(140deg, #f2d68d, #e5b85c);
    color: #102b62;
    font-size: 15px;
    font-weight: 800;
}

.portal-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.portal-user-details strong {
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-details small {
    color: #a9bee3;
    font-size: 9px;
    letter-spacing: .3px;
}

.portal-logout-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    margin-top: 9px;
    padding: 0 12px;
    border-radius: 10px;
    color: #e2c6c9;
    font-size: 12px;
    text-decoration: none;
}

.portal-logout-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.portal-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    margin-left: 255px;
}

.portal-topbar {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 15px 30px;
    border-bottom: 1px solid #e7ecf4;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}

.portal-topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.portal-topbar-eyebrow {
    color: #8795ae;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.portal-topbar h1 {
    margin: 5px 0 0;
    color: #182747;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.portal-topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.portal-topbar-user-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.portal-topbar-user-text strong {
    color: #273958;
    font-size: 11px;
}

.portal-topbar-user-text small {
    color: #8a97ad;
    font-size: 9px;
}

.portal-avatar-small {
    width: 38px;
    height: 38px;
}

.portal-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e1e8f3;
    border-radius: 10px;
    background: #fff;
    color: #1646a0;
    cursor: pointer;
}

.portal-content {
    flex: 1;
    min-width: 0;
    padding: 28px 30px;
}

.portal-page-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 30px;
    border-top: 1px solid #e7ecf4;
    background: #fff;
    color: #8b98ae;
    font-size: 10px;
}

.portal-sidebar-overlay {
    display: none;
}

@media (max-width: 900px) {
    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .portal-sidebar.active,
    .portal-sidebar.show {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-menu-toggle {
        display: inline-flex;
    }

    .portal-sidebar-overlay.active {
        position: fixed;
        z-index: 900;
        inset: 0;
        display: block;
        background: rgba(8, 22, 49, .48);
    }

    .portal-content {
        padding: 23px 20px;
    }

    .portal-topbar {
        min-height: 74px;
        padding: 13px 20px;
    }
}

@media (max-width: 560px) {
    .portal-topbar {
        gap: 10px;
        padding: 12px 14px;
    }

    .portal-topbar h1 {
        font-size: 16px;
    }

    .portal-topbar-eyebrow {
        font-size: 8px;
    }

    .portal-topbar-user-text {
        display: none;
    }

    .portal-content {
        padding: 19px 14px;
    }

    .portal-page-footer {
        padding: 15px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-sidebar {
        transition: none;
    }
}

/* ================= ACCESSIBILITY ================= */

:focus-visible {
    outline: 3px solid rgba(232, 184, 76, 0.9);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
