/* =========================================
   HEADER CSS
   StudyTips / EduTips Result Portal
========================================= */

:root {
    --primary: #5b8def;
    --primary-dark: #4677d5;
    --primary-light: #eef5ff;
    --text: #253247;
    --muted: #718096;
    --bg: #f7faff;
    --white: #ffffff;
    --border: #e7edf5;
    --green: #25b86b;
    --green-light: #effbf5;
    --telegram: #229ed9;
    --telegram-light: #eff9fe;
    --orange: #e6a33b;
    --orange-light: #fff8ea;
    --shadow: 0 8px 25px rgba(57, 87, 125, .07);
}


/* Header */
.site-header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* Header Inner */
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}


/* Brand Logo */
.brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}


.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.brand-logo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}


/* Brand Text */
.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.brand-text h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
}


.brand-text span {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--muted);
}


/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}


.desktop-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}


.desktop-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}


/* Mobile Menu Button */
.menu-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}


.menu-btn span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    display: block;
}


/* Mobile Navigation */
.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 14px;
}


.mobile-nav a {
    display: block;
    padding: 11px 13px;
    margin-top: 4px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}


.mobile-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}


.mobile-nav.open {
    display: block;
}


/* =========================================
   HEADER RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .header-inner {
        padding: 12px 16px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 10px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text span {
        font-size: 11px;
    }

}


@media (max-width: 420px) {

    .header-inner {
        padding: 11px 14px;
        gap: 10px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand-text h1 {
        font-size: 17px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
    }

}
/* =========================================
   GLOBAL RESET & BASE
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================
   HERO SECTION
========================================= */

.hero {
    padding: 70px 20px 55px;
    text-align: center;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hero h2 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 800;
    color: var(--text);
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}


/* =========================================
   SECTION
========================================= */

.section {
    padding: 45px 0;
}

.section-head {
    margin-bottom: 25px;
}

.section-head h2 {
    margin: 0 0 7px;
    font-size: 28px;
    line-height: 1.25;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   RESULTS GRID
========================================= */

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* Result Card */
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(57, 87, 125, .11);
}


/* Result Top */
.result-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}


/* Exam Logo */
.exam-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exam-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exam-logo-fallback {
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}


/* Result Content */
.result-content {
    min-width: 0;
    flex: 1;
}

.result-content h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text);
}

.result-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* Status */
.status {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.status.published {
    background: var(--green-light);
    color: var(--green);
}

.status.soon {
    background: var(--orange-light);
    color: var(--orange);
}


/* Result Bottom */
.result-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.exam-code {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}


/* Check Result Button */
.check-btn {
    border: 0;
    border-radius: 9px;
    padding: 9px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.check-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


/* =========================================
   NOTICE
========================================= */

.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #f0dfb8;
    border-radius: 16px;
    background: var(--orange-light);
}

.notice-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 20px;
}

.notice-box h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.notice-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   CHANNELS
========================================= */

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}

.channel:hover {
    transform: translateY(-2px);
}

.channel-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.channel.whatsapp .channel-icon {
    background: var(--green-light);
    color: var(--green);
}

.channel.telegram .channel-icon {
    background: var(--telegram-light);
    color: var(--telegram);
}

.channel-content {
    min-width: 0;
}

.channel-content h3 {
    margin: 0 0 3px;
    font-size: 15px;
}

.channel-content p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


/* =========================================
   INFORMATION SECTION
========================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.info-card ol {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
}

.info-card li {
    margin-bottom: 8px;
}


/* =========================================
   FAQ
========================================= */

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 17px 18px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.faq-question::after {
    content: "+";
    color: var(--primary);
    font-size: 20px;
    font-weight: 400;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0 18px 17px;
    color: var(--muted);
    font-size: 13px;
}

.faq-item.open .faq-answer {
    display: block;
}


/* =========================================
   CONTACT
========================================= */

.contact-box {
    padding: 25px;
    background: var(--primary-light);
    border-radius: 18px;
    text-align: center;
}

.contact-box h3 {
    margin: 0 0 7px;
    font-size: 22px;
}

.contact-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .hero {
        padding: 50px 18px 40px;
    }

    .section {
        padding: 35px 0;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .results-grid,
    .channels-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .result-card {
        padding: 17px;
    }

}

@media (max-width: 480px) {

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 13px;
    }

    .result-top {
        gap: 12px;
    }

    .exam-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .result-content h3 {
        font-size: 16px;
    }

    .result-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .check-btn {
        width: 100%;
    }

    .notice-box {
        padding: 16px;
    }

}
/* =========================
   FOOTER
========================= */

.site-footer {
    background: #253247;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.footer-brand p {
    margin: 0 0 12px;
    color: #d9e2ef;
}

.footer-brand span {
    display: block;
    color: #aebdce;
    line-height: 1.7;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer-links a {
    color: #c8d4e2;
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #aebdce;
    font-size: 13px;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}


/* =========================
   RESULT MODAL
========================= */

.result-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 45, .65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.result-modal.active {
    display: flex;
}

.result-modal-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #253247;
    font-size: 24px;
    cursor: pointer;
}

.modal-header {
    padding-right: 35px;
    margin-bottom: 25px;
}

.modal-badge {
    display: inline-block;
    background: #eef5ff;
    color: #5b8def;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.modal-header h2 {
    margin: 12px 0 6px;
    color: #253247;
}

.modal-header p {
    margin: 0;
    color: #718096;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #253247;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.form-group input:focus {
    border-color: #5b8def;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.modal-cancel,
.modal-continue {
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
}

.modal-cancel {
    background: #f1f5f9;
    color: #253247;
}

.modal-continue {
    background: #5b8def;
    color: #ffffff;
}


/* =========================
   MOBILE FOOTER + MODAL
========================= */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 480px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .result-modal-box {
        padding: 24px 20px;
    }

}