/* =========================================================
   ANCIENT EGYPT — HISTORY EXPLORER
   Premium Museum / Ancient Egyptian Theme
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {

    --egypt-black: #090705;
    --egypt-dark: #120d08;
    --egypt-panel: #1b130b;
    --egypt-panel-light: #24190e;

    --sand: #d8c29a;
    --sand-light: #ead9b5;

    --gold: #c49a55;
    --gold-light: #e2bd72;
    --gold-dark: #8f6b35;

    --muted: #9d8c6f;
    --muted-light: #b9a98d;

    --border: #493820;

    --white: #f3ead8;

    --shadow: rgba(0, 0, 0, 0.55);
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--egypt-black);

    color: var(--sand);

    font-family: "Libre Baskerville", serif;

    line-height: 1.8;

    overflow-x: hidden;
}


a {
    color: inherit;

    text-decoration: none;
}


img {
    max-width: 100%;

    display: block;
}


::selection {
    background: var(--gold);

    color: var(--egypt-black);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

/* =========================================================
   HISTORY EXPLORER NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 78px;
    padding: 15px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(8, 10, 8, 0.96);

    border-bottom: 1px solid #51452d;

    backdrop-filter: blur(12px);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: #b99658;
}

.project-name {
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #e0cf9d;
}

.navbar nav {
    display: flex;
    gap: 28px;
}

.navbar nav a {
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #a89c83;

    transition: 0.3s ease;
}

.navbar nav a:hover {
    color: #d6b56d;
}

.navbar nav a.active {
    color: #d6b56d;
}

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

.egypt-hero {

    min-height: 92vh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

     background:
        linear-gradient(
            rgba(10, 11, 10, 0.58),
            rgba(8, 8, 7, 0.97)
        ),
        url("../assets/images/egypt.webp");

    background-size: cover;
    background-position: center;
}


.egypt-hero::before {

    content: "𓂀 𓆣 𓉐 𓂀 𓆣 𓉐";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 130px;

    letter-spacing: 70px;

    color: rgba(196, 154, 85, 0.035);

    transform: rotate(-8deg);

    pointer-events: none;
}


.hero-pattern {

    position: absolute;

    width: 650px;

    height: 650px;

    border: 1px solid rgba(196, 154, 85, 0.12);

    transform: rotate(45deg);

    box-shadow:
        0 0 0 35px rgba(196, 154, 85, 0.025),
        0 0 0 70px rgba(196, 154, 85, 0.015);
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    padding: 80px 25px;
}


.hero-kicker {

    display: block;

    margin-bottom: 20px;

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 11px;

    letter-spacing: 6px;
}


.ankh {

    margin-bottom: 15px;

    color: var(--gold-light);

    font-size: 48px;

    text-shadow:
        0 0 25px rgba(196, 154, 85, 0.3);

    animation: egyptFloat 4s ease-in-out infinite;
}


@keyframes egyptFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


.hero-content h1 {

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: clamp(55px, 10vw, 105px);

    font-weight: 600;

    letter-spacing: 3px;

    line-height: 1.05;

    text-shadow:
        0 8px 35px rgba(0, 0, 0, 0.7);
}


.hero-line {

    margin: 25px 0;

    color: var(--gold-dark);

    letter-spacing: 5px;
}


.hero-period {

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 16px;

    letter-spacing: 3px;
}


.hero-location {

    margin-top: 5px;

    color: var(--muted);

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 4px;
}


.hero-description {

    max-width: 700px;

    margin: 30px auto;

    color: var(--muted-light);

    font-size: 14px;

    line-height: 2;
}


.hero-button {

    display: inline-block;

    margin-top: 15px;

    padding: 13px 25px;

    border: 1px solid var(--gold);

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    transition: all 0.35s ease;
}


.hero-button:hover {

    background: var(--gold);

    color: var(--egypt-black);

    box-shadow:
        0 0 25px rgba(196, 154, 85, 0.25);

    transform: translateY(-3px);
}


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

section {

    position: relative;

    padding: 110px 7%;
}


.section-heading {

    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}


.section-label {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 4px;
}


.section-heading h2 {

    margin-top: 14px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: clamp(32px, 5vw, 55px);

    font-weight: 500;

    line-height: 1.2;
}


.section-heading > p {

    max-width: 700px;

    margin: 18px auto 0;

    color: var(--muted);

    font-size: 13px;
}


.section-ornament {

    margin-top: 20px;

    color: var(--gold-dark);

    letter-spacing: 10px;
}


/* =========================================================
   QUICK FACTS
   ========================================================= */

.quick-facts {

    background:
        linear-gradient(
            180deg,
            #0d0906,
            #171007
        );

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.facts-grid {

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.facts-grid article {

    padding: 35px 22px;

    text-align: center;

    background: rgba(36, 25, 14, 0.65);

    border: 1px solid var(--border);

    transition: all 0.35s ease;
}


.facts-grid article:hover {

    transform: translateY(-8px);

    border-color: var(--gold-dark);

    box-shadow:
        0 18px 35px var(--shadow);
}


.fact-symbol {

    display: block;

    margin-bottom: 15px;

    font-size: 25px;
}


.facts-grid strong {

    display: block;

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 22px;
}


.facts-grid p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   ORIGINS
   ========================================================= */

.origins-section {

    background: var(--egypt-dark);
}


.text-content {

    max-width: 850px;

    margin: auto;

    padding: 40px;

    border-left: 2px solid var(--gold-dark);

    background:
        linear-gradient(
            90deg,
            rgba(196, 154, 85, 0.05),
            transparent
        );
}


.text-content p {

    margin-bottom: 22px;

    color: var(--muted-light);

    font-size: 14px;

    line-height: 2.1;
}


.text-content p:last-child {

    margin-bottom: 0;
}


.text-content strong {

    color: var(--gold-light);
}


/* =========================================================
   KINGDOMS
   ========================================================= */

.kingdoms-section {

    background: #0c0805;
}


.kingdom-timeline {

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.kingdom-card {

    position: relative;

    padding: 38px 30px;

    min-height: 330px;

    background:
        linear-gradient(
            145deg,
            #24180d,
            #130c07
        );

    border: 1px solid var(--border);

    overflow: hidden;

    transition: all 0.4s ease;
}


.kingdom-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    transform: translateX(-100%);

    transition: transform 0.5s ease;
}


.kingdom-card:hover::before {

    transform: translateX(0);
}


.kingdom-card:hover {

    transform: translateY(-10px);

    border-color: var(--gold-dark);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.5);
}


.kingdom-date {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 11px;

    letter-spacing: 2px;
}


.kingdom-card h3 {

    margin-top: 20px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 27px;
}


.kingdom-title {

    display: block;

    margin-top: 5px;

    color: var(--gold-dark);

    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;
}


.kingdom-card p {

    margin-top: 25px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   PHARAOHS
   ========================================================= */

.pharaoh-section {

    background:
        radial-gradient(
            circle at center,
            rgba(196, 154, 85, 0.08),
            transparent 55%
        ),
        var(--egypt-dark);
}


.pharaoh-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.pharaoh-grid article {

    padding: 35px 25px;

    background: var(--egypt-panel);

    border: 1px solid var(--border);

    text-align: center;

    transition: 0.35s ease;
}


.pharaoh-grid article:hover {

    transform: translateY(-7px);

    border-color: var(--gold-dark);
}


.pharaoh-grid article > span {

    font-size: 28px;
}


.pharaoh-grid h3 {

    margin: 15px 0 10px;

    color: var(--sand);

    font-family: "Cinzel", serif;

    font-size: 18px;
}


.pharaoh-grid p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   ARCHITECTURE
   ========================================================= */

.architecture-section {

    background: #100b07;

    border-top: 1px solid var(--border);
}


.architecture-grid {

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}


.architecture-card {

    padding: 38px;

    min-height: 260px;

    background:
        linear-gradient(
            135deg,
            rgba(58, 40, 20, 0.55),
            rgba(20, 13, 7, 0.9)
        );

    border: 1px solid var(--border);

    transition: all 0.4s ease;
}


.architecture-card:hover {

    border-color: var(--gold);

    transform: translateY(-7px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45);
}


.architecture-year {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;
}


.architecture-card h3 {

    margin-top: 13px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 23px;
}


.architecture-card p {

    margin-top: 18px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   WRITING
   ========================================================= */

.writing-section {

    background: #0a0705;
}


.writing-layout {

    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.8fr 1.4fr;

    gap: 60px;

    align-items: center;
}


.writing-symbol {

    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: var(--gold-light);

    font-size: 110px;

    background:
        radial-gradient(
            circle,
            rgba(196, 154, 85, 0.12),
            transparent 65%
        );

    border: 1px solid var(--border);
}


.writing-symbol span {

    margin-top: 15px;

    color: var(--muted);

    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;
}


.writing-content p {

    margin-bottom: 20px;

    color: var(--muted-light);

    font-size: 13px;

    line-height: 2;
}


.writing-content strong {

    color: var(--gold-light);
}


/* =========================================================
   SCIENCE
   ========================================================= */

.science-section {

    background:
        linear-gradient(
            180deg,
            #130d08,
            #090705
        );
}


.science-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.science-grid article {

    padding: 35px 25px;

    border: 1px solid var(--border);

    background: var(--egypt-panel);

    transition: 0.35s ease;
}


.science-grid article:hover {

    transform: translateY(-8px);

    border-color: var(--gold);
}


.science-grid article > span {

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 28px;
}


.science-grid h3 {

    margin: 18px 0 10px;

    color: var(--sand);

    font-family: "Cinzel", serif;

    font-size: 18px;
}


.science-grid p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   RELIGION
   ========================================================= */

.religion-section {

    background: #0b0805;

    border-top: 1px solid var(--border);
}


.gods-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.gods-grid article {

    position: relative;

    padding: 32px;

    background: #181007;

    border: 1px solid var(--border);

    overflow: hidden;

    transition: 0.35s ease;
}


.gods-grid article::after {

    content: "☥";

    position: absolute;

    right: 18px;

    bottom: 5px;

    color: rgba(196, 154, 85, 0.08);

    font-size: 65px;
}


.gods-grid article:hover {

    border-color: var(--gold-dark);

    transform: translateY(-6px);
}


.gods-grid h3 {

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 21px;
}


.gods-grid p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   AFTERLIFE
   ========================================================= */

.afterlife-section {

    background:
        radial-gradient(
            circle at center,
            rgba(196, 154, 85, 0.06),
            transparent 60%
        ),
        #100b07;
}


.afterlife-content {

    max-width: 950px;

    margin: auto;

    text-align: center;
}


.afterlife-content > p {

    color: var(--muted-light);

    font-size: 14px;

    line-height: 2;
}


.afterlife-grid {

    margin-top: 45px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.afterlife-grid article {

    padding: 30px;

    border: 1px solid var(--border);

    background: rgba(36, 25, 14, 0.55);
}


.afterlife-grid span {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 12px;
}


.afterlife-grid h3 {

    margin: 10px 0;

    color: var(--sand-light);

    font-family: "Cinzel", serif;
}


.afterlife-grid p {

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   TRADE
   ========================================================= */

.trade-section {

    background: #0a0705;
}


.trade-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.trade-grid article {

    padding: 35px;

    border-left: 2px solid var(--gold-dark);

    background: linear-gradient(
        90deg,
        rgba(196, 154, 85, 0.05),
        transparent
    );
}


.trade-grid h3 {

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 20px;
}


.trade-grid p {

    margin-top: 12px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   MILITARY
   ========================================================= */

.military-section {

    background:
        linear-gradient(
            135deg,
            #130d08,
            #090705
        );
}


.military-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.military-grid article {

    padding: 35px 22px;

    text-align: center;

    border: 1px solid var(--border);

    background: var(--egypt-panel);

    transition: 0.35s ease;
}


.military-grid article:hover {

    transform: translateY(-7px);

    border-color: var(--gold-dark);
}


.military-grid article > span {

    font-size: 27px;

    color: var(--gold-light);
}


.military-grid h3 {

    margin: 15px 0 8px;

    color: var(--sand);

    font-family: "Cinzel", serif;
}


.military-grid p {

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   SOCIETY
   ========================================================= */

.society-section {

    background: #0b0805;

    border-top: 1px solid var(--border);
}


.society-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.society-grid article {

    padding: 28px;

    background: var(--egypt-panel);

    border: 1px solid var(--border);

    transition: 0.35s ease;
}


.society-grid article:hover {

    border-color: var(--gold);

    transform: translateY(-6px);
}


.society-grid span {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 11px;
}


.society-grid h3 {

    margin-top: 10px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 17px;
}


.society-grid p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   DAILY LIFE
   ========================================================= */

.daily-life-section {

    background:
        radial-gradient(
            circle at center,
            rgba(196, 154, 85, 0.05),
            transparent 60%
        ),
        #120c07;
}


.daily-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.daily-grid article {

    padding: 30px 22px;

    border-top: 1px solid var(--gold-dark);

    background: rgba(36, 25, 14, 0.45);
}


.daily-grid h3 {

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 17px;
}


.daily-grid p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   ART
   ========================================================= */

.art-section {

    background: #090705;
}


.art-grid {

    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.art-grid article {

    min-height: 230px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            #24170c,
            #100a06
        );

    transition: 0.4s ease;
}


.art-grid article:hover {

    transform: translateY(-8px);

    border-color: var(--gold);
}


.art-grid h3 {

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 21px;
}


.art-grid p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-section {

    background:
        linear-gradient(
            180deg,
            #130d08,
            #090705
        );
}


.history-timeline {

    position: relative;

    max-width: 1000px;

    margin: auto;
}


.history-timeline::before {

    content: "";

    position: absolute;

    left: 50%;

    top: 0;

    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--gold-dark),
            transparent
        );

    transform: translateX(-50%);
}


.history-timeline article {

    position: relative;

    width: 50%;

    padding: 25px 50px 55px;
}


.history-timeline article:nth-child(odd) {

    text-align: right;
}


.history-timeline article:nth-child(even) {

    margin-left: 50%;
}


.history-timeline article::after {

    content: "";

    position: absolute;

    top: 30px;

    width: 11px;

    height: 11px;

    background: var(--egypt-black);

    border: 2px solid var(--gold);

    border-radius: 50%;

    box-shadow:
        0 0 0 6px rgba(196, 154, 85, 0.08);
}


.history-timeline article:nth-child(odd)::after {

    right: -7px;
}


.history-timeline article:nth-child(even)::after {

    left: -7px;
}


.history-timeline article > span {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;
}


.history-timeline h3 {

    margin-top: 8px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 20px;
}


.history-timeline p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.achievements-section {

    background: #0b0805;
}


.achievement-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.achievement-grid article {

    padding: 32px;

    border: 1px solid var(--border);

    background: var(--egypt-panel);

    transition: 0.35s ease;
}


.achievement-grid article:hover {

    transform: translateY(-7px);

    border-color: var(--gold);
}


.achievement-grid span {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 11px;
}


.achievement-grid h3 {

    margin-top: 10px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: 18px;
}


.achievement-grid p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   LEGACY
   ========================================================= */

.legacy-section {

    min-height: 70vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(196, 154, 85, 0.13),
            transparent 50%
        ),
        #080604;
}


.legacy-content {

    max-width: 800px;
}


.legacy-content h2 {

    margin-top: 15px;

    color: var(--sand-light);

    font-family: "Cinzel", serif;

    font-size: clamp(35px, 6vw, 65px);

    line-height: 1.2;
}


.legacy-line {

    margin: 25px 0;

    color: var(--gold-dark);

    letter-spacing: 8px;
}


.legacy-content p {

    margin-top: 18px;

    color: var(--muted-light);

    font-size: 13px;

    line-height: 2;
}


.back-button {

    display: inline-block;

    margin-top: 35px;

    padding: 13px 25px;

    border: 1px solid var(--gold);

    color: var(--gold-light);

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    transition: 0.35s ease;
}


.back-button:hover {

    background: var(--gold);

    color: var(--egypt-black);

    transform: translateY(-3px);
}


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

footer {

    padding: 55px 20px;

    text-align: center;

    background: #060403;

    border-top: 1px solid var(--border);
}


.footer-brand {

    color: var(--gold);

    font-family: "Cinzel", serif;

    font-size: 12px;

    letter-spacing: 3px;
}


.footer-line {

    width: 80px;

    height: 1px;

    margin: 20px auto;

    background: var(--gold-dark);
}


footer p {

    color: var(--muted);

    font-size: 11px;
}


footer .copyright {

    margin-top: 10px;

    color: #655945;

    font-size: 9px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .egypt-navbar {

        padding: 0 4%;
    }


    .egypt-navbar nav {

        gap: 15px;
    }


    .facts-grid,
    .pharaoh-grid,
    .science-grid,
    .military-grid,
    .daily-grid {

        grid-template-columns: repeat(2, 1fr);
    }


    .kingdom-timeline {

        grid-template-columns: 1fr;
    }


    .gods-grid,
    .society-grid,
    .achievement-grid {

        grid-template-columns: repeat(2, 1fr);
    }


    .architecture-grid,
    .trade-grid {

        grid-template-columns: 1fr;
    }


    .writing-layout {

        grid-template-columns: 1fr;

        gap: 30px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    section {

        padding: 80px 5%;
    }


    .egypt-navbar {

        position: relative;

        min-height: auto;

        padding: 20px;

        flex-direction: column;

        gap: 18px;
    }


    .brand {

        flex-direction: column;

        gap: 6px;
    }


    .brand-history {

        padding-left: 0;

        border-left: none;
    }


    .egypt-navbar nav {

        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }


    .hero-content {

        padding: 70px 15px;
    }


    .hero-content h1 {

        font-size: 50px;
    }


    .hero-description {

        font-size: 12px;
    }


    .facts-grid,
    .pharaoh-grid,
    .science-grid,
    .military-grid,
    .daily-grid,
    .gods-grid,
    .society-grid,
    .achievement-grid,
    .art-grid,
    .afterlife-grid {

        grid-template-columns: 1fr;
    }


    .architecture-grid,
    .trade-grid {

        grid-template-columns: 1fr;
    }


    .text-content {

        padding: 25px;

        border-left: none;

        border-top: 2px solid var(--gold-dark);
    }


    .writing-symbol {

        min-height: 220px;

        font-size: 80px;
    }


    .history-timeline::before {

        left: 12px;
    }


    .history-timeline article,
    .history-timeline article:nth-child(even) {

        width: 100%;

        margin-left: 0;

        padding: 20px 15px 45px 45px;

        text-align: left;
    }


    .history-timeline article::after,
    .history-timeline article:nth-child(odd)::after,
    .history-timeline article:nth-child(even)::after {

        left: 5px;

        right: auto;
    }


    .legacy-section {

        min-height: 60vh;
    }

}

