/* =========================================
   ROOT COLORS
========================================= */

:root {

    --bg-main: #F5F1EC;

    --bg-card: #EDE4DA;

    --bg-soft: #DCC9B9;

    --border-color: #C7B9AD;

    --accent-light: #B98E73;

    --accent: #A64D2E;

    --accent-dark: #8B3D24;

    --text-main: #3A221A;

    --text-strong: #241713;

    --shadow:
        0 10px 30px rgba(0,0,0,0.06);

    --radius: 24px;
}

/* =========================================
   RESET
========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;
}

body {

    font-family: "Cairo", sans-serif;

    background: var(--bg-main);

    color: var(--text-main);

    overflow-x: hidden;
}

/* =========================================
   GLOBAL
========================================= */

.container {

    width: min(1200px, 92%);

    margin: auto;
}

a {

    text-decoration: none;

    color: inherit;
}

button {

    font-family: inherit;

    border: none;

    cursor: pointer;
}

img {

    max-width: 100%;

    display: block;
}

/* =========================================
   HEADER
========================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(245,241,236,0.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border-color);
}

.header .container {

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

/* =========================================
   LOGO
========================================= */

.logo-area {

    display: flex;

    align-items: center;

    gap: 14px;
}

.logo-icon {

    width: 52px;

    height: 52px;

    border-radius: 16px;

    background: var(--accent);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 700;
}

.logo-text h1 {

    color: var(--text-strong);

    font-size: 1.4rem;

    font-weight: 800;
}

.logo-text p {

    color: #6e625d;

    font-size: .85rem;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {

    display: flex;

    gap: 30px;
}

.navbar a {

    color: var(--text-main);

    font-weight: 600;

    transition: .25s;
}

.navbar a:hover {

    color: var(--accent);
}

.navbar a.active {

    color: var(--accent);

    font-weight: 700;
}

/* =========================================
   HEADER BUTTON
========================================= */

.login-btn {

    background: var(--accent);

    color: white;

    padding: 12px 22px;

    border-radius: 14px;

    font-weight: 700;

    transition: .25s;
}

.login-btn:hover {

    background: var(--accent-dark);
}
/* =========================================
   HERO SECTION
========================================= */

.hero {

    padding: 90px 0 60px;
}

.hero-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

    flex: 1;

    max-width: 620px;
}

.hero-badge {

    display: inline-block;

    background: rgba(166,77,46,.10);

    color: var(--accent);

    padding: 10px 18px;

    border-radius: 999px;

    font-size: .95rem;

    font-weight: 700;

    margin-bottom: 24px;
}

.hero-title {

    font-size: clamp(2.8rem, 5vw, 5rem);

    line-height: 1.15;

    color: var(--text-strong);

    font-weight: 800;

    margin-bottom: 24px;
}

.hero-description {

    font-size: 1.1rem;

    line-height: 2;

    color: #675d58;

    max-width: 560px;

    margin-bottom: 35px;
}

/* =========================================
   HERO BUTTONS
========================================= */

.hero-buttons {

    display: flex;

    gap: 16px;

    flex-wrap: wrap;
}

.primary-btn {

    background: var(--accent);

    color: white;

    padding: 15px 28px;

    border-radius: 16px;

    font-size: 1rem;

    font-weight: 700;

    transition: .25s;
}

.primary-btn:hover {

    background: var(--accent-dark);

    transform: translateY(-2px);
}

.secondary-btn {

    background: white;

    color: var(--text-main);

    padding: 15px 28px;

    border-radius: 16px;

    border: 1px solid var(--border-color);

    font-size: 1rem;

    font-weight: 700;

    transition: .25s;
}

.secondary-btn:hover {

    transform: translateY(-2px);
}

/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {

    flex: 1;

    position: relative;

    min-height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;
}
/* =========================================
   SECTION HEADERS
========================================= */

.section-header {

    text-align: center;

    margin-bottom: 45px;
}

.section-header h2 {

    font-size: 2.2rem;

    color: var(--text-strong);

    margin-bottom: 12px;

    font-weight: 800;
}

.section-header p {

    color: #6c625d;

    font-size: 1rem;
}

/* =========================================
   QUICK CARDS
========================================= */

.quick-cards {

    padding: 30px 0 90px;
}

.cards-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap: 24px;
}

.quick-card {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 28px;

    transition: .25s;

    box-shadow: var(--shadow);
}

.quick-card:hover {

    transform: translateY(-5px);
}

.quick-card h3 {

    color: var(--text-strong);

    font-size: 1.2rem;

    margin-bottom: 14px;

    font-weight: 800;
}

.quick-card p {

    line-height: 1.9;

    color: #675d58;
}

/* =========================================
   ANNOUNCEMENTS
========================================= */

.announcements-section {

    padding: 30px 0 90px;
}

#announcementsContainer {

    display: grid;

    gap: 20px;
}

/* =========================================
   ANNOUNCEMENT CARD
========================================= */

.announcement-card {

    background: white;

    border-radius: 24px;

    padding: 30px;

    border: 1px solid var(--border-color);

    box-shadow: var(--shadow);
}

.announcement-card h3 {

    color: var(--text-strong);

    margin-bottom: 12px;

    font-size: 1.3rem;

    font-weight: 800;
}

.announcement-card p {

    line-height: 2;

    color: #655b56;
}

/* =========================================
   EMPTY ANNOUNCEMENTS
========================================= */

.announcement-empty {

    background:
        linear-gradient(
            135deg,
            var(--bg-card),
            white
        );

    border: 1px solid var(--border-color);

    border-radius: 28px;

    padding: 50px;

    text-align: center;

    box-shadow: var(--shadow);
}

.announcement-empty-content h3 {

    color: var(--text-strong);

    margin-bottom: 10px;

    font-size: 1.5rem;

    font-weight: 800;
}

.announcement-empty-content p {

    color: #6b615d;

    line-height: 1.8;
}
/* =========================================
   INFORMATIONS & REMINDERS
========================================= */

.info-section {

    padding: 20px 0 90px;
}

.info-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap: 24px;
}

/* =========================================
   INFO CARD
========================================= */

.info-card {

    background: white;

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 28px;

    box-shadow: var(--shadow);

    transition: .25s;
}

.info-card:hover {

    transform: translateY(-4px);
}

.info-card-title {

    color: var(--text-strong);

    font-size: 1.15rem;

    font-weight: 800;

    margin-bottom: 14px;
}

.info-card-content {

    color: #655c57;

    line-height: 2;
}

.info-date {

    margin-top: 18px;

    font-size: .9rem;

    color: #8b8079;
}

/* =========================================
   EMPTY STATE
========================================= */

.empty-state {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 35px;

    text-align: center;
}

.empty-state h3 {

    color: var(--text-strong);

    margin-bottom: 10px;
}

.empty-state p {

    color: #6b615d;

    line-height: 1.8;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {

    position: fixed;

    top: 0;

    right: -320px;

    width: 320px;

    height: 100vh;

    background: white;

    z-index: 2000;

    transition: .35s;

    box-shadow:
        -10px 0 30px rgba(0,0,0,.08);

    padding: 30px;
}

.sidebar.active {

    right: 0;
}

/* =========================================
   SIDEBAR HEADER
========================================= */

.sidebar-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 35px;
}

.sidebar-header h2 {

    color: var(--text-strong);

    font-size: 1.3rem;

    font-weight: 800;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.close-sidebar {

    background: transparent;

    font-size: 1.5rem;

    color: var(--text-main);
}

/* =========================================
   SIDEBAR LINKS
========================================= */

.sidebar-links {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.sidebar-links a {

    padding: 14px 16px;

    border-radius: 14px;

    transition: .25s;

    font-weight: 700;
}

.sidebar-links a:hover {

    background: var(--bg-card);
}

/* =========================================
   SIDEBAR ACTIONS
========================================= */

.sidebar-actions {

    margin-top: 35px;

    display: flex;

    flex-direction: column;

    gap: 14px;
}

/* =========================================
   NOTIFICATIONS TOGGLE
========================================= */

.notifications-toggle {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--bg-card);

    border-radius: 16px;

    padding: 14px 18px;
}

.notifications-toggle span {

    font-weight: 700;
}

/* =========================================
   LOGOUT BUTTON
========================================= */

.logout-btn {

    background: var(--accent);

    color: white;

    border-radius: 16px;

    padding: 14px;

    font-weight: 700;

    transition: .25s;
}

.logout-btn:hover {

    background: var(--accent-dark);
}

/* =========================================
   OVERLAY
========================================= */

.sidebar-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.35);

    opacity: 0;

    visibility: hidden;

    transition: .3s;

    z-index: 1500;
}

.sidebar-overlay.active {

    opacity: 1;

    visibility: visible;
}

/* =========================================
   MENU BUTTON
========================================= */

.menu-button {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 62px;

    height: 62px;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    font-size: 1.4rem;

    z-index: 1200;

    box-shadow:
        0 12px 25px rgba(166,77,46,.35);

    transition: .25s;
}

.menu-button:hover {

    background: var(--accent-dark);

    transform: translateY(-3px);
}

/* =========================================
   HALF CIRCLE
========================================= */

.silphium-circle {

    position: absolute;

    width: 540px;

    height: 540px;

    border-radius: 50%;

    background: var(--accent);

    opacity: .12;

    right: 20px;

    top: 50%;

    transform: translateY(-50%);
}

/* =========================================
   SILPHIUM
========================================= */

.silphium-illustration {

    position: relative;

    z-index: 2;

    width: 420px;

    max-width: 100%;
}

.silphium-illustration img {

    width: 100%;

    height: auto;
}
/* =========================================
   MY QUESTIONS
========================================= */

.questions-section {

    padding: 30px 0 90px;
}

.questions-container {

    display: grid;

    gap: 24px;
}

/* =========================================
   QUESTION CARD
========================================= */

.question-card {

    background: white;

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 28px;

    box-shadow: var(--shadow);
}

.question-title {

    color: var(--text-strong);

    font-size: 1.15rem;

    font-weight: 800;

    margin-bottom: 18px;
}

.question-answer-input {

    width: 100%;

    min-height: 55px;

    border: 1px solid var(--border-color);

    border-radius: 16px;

    padding: 14px 18px;

    font-family: inherit;

    font-size: 1rem;

    background: var(--bg-main);

    margin-bottom: 18px;
}

.question-answer-input:focus {

    outline: none;

    border-color: var(--accent);
}

/* =========================================
   QUESTION ACTIONS
========================================= */

.question-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.check-answer-btn {

    background: var(--accent);

    color: white;

    padding: 12px 20px;

    border-radius: 14px;

    font-weight: 700;
}

.show-answer-btn {

    background: var(--bg-card);

    color: var(--text-main);

    padding: 12px 20px;

    border-radius: 14px;

    font-weight: 700;
}

/* =========================================
   ANSWER RESULT
========================================= */

.answer-result {

    margin-top: 16px;

    padding: 14px 18px;

    border-radius: 14px;

    display: none;
}

.answer-result.correct {

    display: block;

    background: rgba(34,197,94,.12);
}

.answer-result.wrong {

    display: block;

    background: rgba(239,68,68,.10);
}

.real-answer {

    margin-top: 14px;

    padding: 14px 18px;

    background: var(--bg-card);

    border-radius: 14px;

    display: none;

    line-height: 1.9;
}

/* =========================================
   QUESTION CREATOR
========================================= */

.add-question-card {

    background: var(--bg-card);

    border-radius: 24px;

    padding: 30px;

    border: 1px solid var(--border-color);
}

.add-question-card h3 {

    color: var(--text-strong);

    margin-bottom: 20px;

    font-size: 1.3rem;
}

.add-question-card textarea {

    width: 100%;

    min-height: 120px;

    border-radius: 16px;

    border: 1px solid var(--border-color);

    padding: 16px;

    font-family: inherit;

    resize: vertical;

    margin-bottom: 16px;
}

.add-question-btn {

    background: var(--accent);

    color: white;

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 700;
}

/* =========================================
   BANK SECTION
========================================= */

.bank-section {

    padding: 30px 0 90px;
}

.bank-main-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(300px,1fr));

    gap: 24px;
}
/* =========================================
   BANK CARD
========================================= */

.bank-card {

    background: white;

    border-radius: 24px;

    padding: 30px;

    border: 1px solid var(--border-color);

    box-shadow: var(--shadow);

    transition: .25s;
}

.bank-card:hover {

    transform: translateY(-5px);
}

.bank-card h3 {

    color: var(--text-strong);

    font-size: 1.4rem;

    margin-bottom: 12px;

    font-weight: 800;
}

.bank-card p {

    line-height: 1.9;

    color: #675d58;
}

/* =========================================
   FILE LIST
========================================= */

.file-list {

    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-top: 20px;
}

.file-item {

    background: var(--bg-card);

    border-radius: 16px;

    padding: 16px;

    transition: .25s;
}

.file-item:hover {

    background: var(--bg-soft);
}

.file-item-title {

    color: var(--text-strong);

    font-weight: 700;
}
/* =========================================
   MY FILES
========================================= */

.my-files-section {

    padding: 30px 0 90px;
}

.bank-files-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap: 24px;
}

/* =========================================
   FILE CARD
========================================= */

.bank-file-card {

    background: white;

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 24px;

    box-shadow: var(--shadow);

    transition: .25s;
}

.bank-file-card:hover {

    transform: translateY(-4px);
}

.file-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 14px;
}

.file-title {

    color: var(--text-strong);

    font-size: 1.15rem;

    font-weight: 800;

    line-height: 1.6;
}

.file-type {

    background: rgba(166,77,46,.12);

    color: var(--accent);

    padding: 6px 12px;

    border-radius: 999px;

    font-size: .8rem;

    font-weight: 700;
}

.file-description {

    color: #6c625d;

    line-height: 1.9;

    margin-bottom: 20px;
}

/* =========================================
   FILE ACTIONS
========================================= */

.file-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.open-file-btn {

    background: var(--accent);

    color: white;

    padding: 12px 18px;

    border-radius: 14px;

    font-weight: 700;
}

.favorite-file-btn {

    background: var(--bg-card);

    color: var(--text-main);

    padding: 12px 18px;

    border-radius: 14px;

    font-weight: 700;
}

/* =========================================
   EMPTY FAVORITES
========================================= */

.empty-files-state {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 24px;

    padding: 40px;

    text-align: center;

    margin-top: 20px;
}

.empty-files-state h3 {

    color: var(--text-strong);

    margin-bottom: 12px;
}

.empty-files-state p {

    color: #6c625d;

    line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */

.footer {

    background: #efe5da;

    border-top: 1px solid var(--border-color);

    margin-top: 40px;
}

.footer-content {

    padding: 70px 0;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 40px;
}

.footer-brand h2 {

    color: var(--accent);

    font-size: 2rem;

    font-weight: 800;

    margin-bottom: 16px;
}

.footer-brand p {

    line-height: 2;

    color: #655c57;
}

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links h3 {

    color: var(--text-strong);

    margin-bottom: 12px;
}

.footer-links a {

    color: #655c57;

    transition: .25s;
}

.footer-links a:hover {

    color: var(--accent);
}

.footer-bottom {

    border-top: 1px solid var(--border-color);

    text-align: center;

    padding: 24px 0;

    color: #6b615d;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .hero-container {

        flex-direction: column;
    }

    .hero-content {

        max-width: 100%;

        text-align: center;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-visual {

        min-height: 420px;
    }

    .silphium-circle {

        width: 420px;

        height: 420px;
    }

    .footer-content {

        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .navbar {

        display: none;
    }

    .hero {

        padding-top: 50px;
    }

    .hero-title {

        font-size: 2.4rem;
    }

    .section-header h2 {

        font-size: 1.8rem;
    }

    .menu-button {

        width: 56px;

        height: 56px;
    }

.hero-content{
    max-width:900px;
    text-align:center;
    margin:auto;
}

.hero-buttons{
    justify-content:center;
    }
}   
