/* ==========================================================================
   NESARA GESARA — Public Frontend Styles
   Replaces the original Web3 Ledger Vault public theme.
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 14px Arial, sans-serif;
    color: #173451;
    line-height: 1.55;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.wrap {
    max-width: 1150px;
    margin: auto;
    padding: 0 25px;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
header,
footer {
    background: #031c38;
    color: #fff;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.topright {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font: 700 25px Georgia, serif;
}

.logo b {
    color: #e6b84e;
    font-size: 35px;
}

.logo small {
    display: block;
    color: #e6b84e;
    font: 9px Arial, sans-serif;
    letter-spacing: 1px;
    margin-left: 40px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: #e6b84e;
    color: #142b42;
    padding: 12px 20px;
    border: 1px solid #e6b84e;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.btn.outline {
    background: transparent;
    border-color: #91a7bb;
    color: #fff;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
nav {
    border-top: 1px solid #24435f;
    border-bottom: 1px solid #51657a;
}

nav .wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .navlinks {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex: 1;
}

nav a {
    font-size: 12px;
    padding: 13px 0;
    white-space: nowrap;
}

nav a.active {
    color: #e6b84e;
    font-weight: bold;
    box-shadow: inset 0 -3px 0 #e6b84e;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #24435f;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(90deg, #00152f 0%, #00152ff0 40%, #00152f40),
        url('https://images.unsplash.com/photo-1614730321146-b6fa6a46bcb4?auto=format&fit=crop&w=1800&q=85') center/cover;
    color: #fff;
    padding: 55px 0;
}

.hero h1 {
    font: 700 46px/1.08 Georgia, serif;
    margin: 8px 0;
}

.hero h1 span {
    color: #e6b84e;
}

.hero p {
    max-width: 520px;
}

.hero .btn {
    margin: 12px 10px 10px 0;
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section {
    padding: 30px 0;
}

.section h2 {
    font: 700 24px Georgia, serif;
    margin: 0 0 20px;
}

.section h2:after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    background: #e6b84e;
    margin-top: 8px;
}

.section.light {
    background: #f7f8fa;
}

.section.dark {
    background: linear-gradient(#021b38ec, #021b38ec),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=80') center/cover;
    color: #fff;
}

/* -------------------------------------------------------------------------
   About columns
   ------------------------------------------------------------------------- */
.cols3 {
    display: grid;
    grid-template-columns: 1fr 1fr 0.85fr;
    gap: 25px;
}

.info {
    display: flex;
    gap: 12px;
}

.info .symbol {
    font-size: 39px;
}

.info .symbol svg {
    display: block;
}

.info h3 {
    margin: 5px 0;
}

.info p,
.mission p,
.topic p,
.step p,
.small {
    font-size: 12px;
}

.mission {
    background: #eaf1f9;
    border: 1px solid #d4dfea;
    border-radius: 5px;
    padding: 18px;
}

.missionicon {
    font-size: 34px;
    color: #e6b84e;
    vertical-align: middle;
}

.mission em {
    display: block;
    text-align: center;
    font: italic 18px Georgia, serif;
    margin-top: 20px;
}

/* -------------------------------------------------------------------------
   Cards & steps
   ------------------------------------------------------------------------- */
.cards,
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.topic {
    border: 1px solid #627a92;
    border-radius: 6px;
    padding: 18px;
    min-height: 210px;
}

.topic b {
    font-size: 30px;
    color: #e6b84e;
}

.topic h3 {
    margin: 10px 0 4px;
}

.topic a {
    display: inline-block;
    border: 1px solid #9ab1c6;
    border-radius: 50%;
    padding: 3px 9px;
    margin-top: 10px;
}

.step {
    display: flex;
    gap: 10px;
    border-right: 1px solid #e3e8ed;
}

.num {
    background: #e6b84e;
    border-radius: 50%;
    height: 35px;
    min-width: 35px;
    text-align: center;
    padding-top: 7px;
    font-weight: bold;
}

.step h4 {
    margin: 2px 0;
}

.center {
    text-align: center;
    margin-top: 22px;
}

/* -------------------------------------------------------------------------
   News + FAQ
   ------------------------------------------------------------------------- */
.newsfaq {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 35px;
}

.newsgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.newsimage {
    background: linear-gradient(transparent, #001c3a),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=700&q=80') center/cover;
    color: #fff;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    font-weight: bold;
}

.faqline {
    border-bottom: 1px solid #dbe2e9;
    padding: 10px 0;
    font-size: 12px;
}

.faqline summary {
    cursor: pointer;
    font-weight: bold;
}

/* -------------------------------------------------------------------------
   Strip banner
   ------------------------------------------------------------------------- */
.strip {
    background: #245271;
    color: #fff;
    padding: 22px 0;
}

.strip .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.strip p {
    max-width: 350px;
    font-size: 12px;
}

.strip .wrap > div:last-child {
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
footer {
    padding: 25px 0;
}

footer .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #37516c;
    padding-bottom: 18px;
}

footer .foot a {
    font-size: 11px;
    margin-right: 10px;
}

footer .foot .flinks {
    margin-right: 70px;
}

footer .social {
    display: flex;
    gap: 9px;
}

footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #3b5772;
    border-radius: 50%;
    color: #c8d5e2;
    margin-right: 0;
    transition: all 0.2s;
}

footer .social a:hover {
    color: #e6b84e;
    border-color: #e6b84e;
    transform: translateY(-2px);
}

footer .social svg {
    width: 15px;
    height: 15px;
}

footer p {
    font-size: 10px;
    color: #b8c7d5;
}

/* -------------------------------------------------------------------------
   Page heading (auth / faq / contact)
   ------------------------------------------------------------------------- */
.pagehead {
    background: linear-gradient(100deg, #041d3a, #154b73);
    color: #fff;
    padding: 60px 0;
}

.pagehead h1 {
    font: 700 42px Georgia, serif;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Auth / form panel
   ------------------------------------------------------------------------- */
.panel {
    max-width: 560px;
    margin: 40px auto;
    padding: 32px;
    border: 1px solid #d8e1ea;
    border-radius: 7px;
    box-shadow: 0 8px 28px #102f4915;
}

.panel h2 {
    font: 700 26px Georgia, serif;
}

.field {
    margin: 15px 0;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8d4df;
    border-radius: 4px;
    font: inherit;
}

.field textarea {
    height: 120px;
}

/* -------------------------------------------------------------------------
   FAQ / content
   ------------------------------------------------------------------------- */
.content {
    max-width: 850px;
    margin: 35px auto;
    padding: 0 25px;
}

.content details {
    padding: 13px 0;
    border-bottom: 1px solid #dce3eb;
}

.content summary {
    cursor: pointer;
    font-weight: bold;
}

/* -------------------------------------------------------------------------
   Alerts (PHP error / success messages)
   ------------------------------------------------------------------------- */
.alert {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin: 14px 0;
}

.alert-danger {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a94442;
}

.alert-success {
    background: #eafaf1;
    border: 1px solid #c3e6cb;
    color: #2e7d32;
}

/* Checkbox row (remember me / agree) */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 8px 0;
}

.form-check input {
    width: auto;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .cols3 {
        grid-template-columns: 1fr 1fr;
    }

    .mission {
        grid-column: 1 / -1;
    }

    .cards,
    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .newsfaq {
        grid-template-columns: 1fr;
    }

    .strip .wrap {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .topright a {
        display: none;
    }

    nav .wrap {
        flex-wrap: wrap;
    }

    nav .navlinks {
        display: none;
        flex-direction: column;
        flex-basis: 100%;
        gap: 0;
    }

    nav .navlinks.open {
        display: flex;
    }

    nav a {
        padding: 12px 0;
        border-bottom: 1px solid #24435f;
    }

    nav a.active {
        box-shadow: none;
        border-left: 4px solid #e6b84e;
        padding-left: 10px;
    }

    .top {
        gap: 10px;
    }

    .hero {
        padding: 36px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section {
        padding: 24px 0;
    }
}

@media (max-width: 520px) {
    .cols3,
    .cards,
    .steps,
    .newsfaq,
    .newsgrid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 17px;
    }

    .logo b {
        font-size: 26px;
    }

    .logo small {
        margin-left: 28px;
        font-size: 7px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .section h2 {
        font-size: 20px;
    }

    .pagehead {
        padding: 36px 0;
    }

    .pagehead h1 {
        font-size: 30px;
    }

    .strip .wrap > div:last-child {
        white-space: normal;
    }

    .strip .btn {
        display: block;
        text-align: center;
        margin: 6px 0;
    }

    .foot .flinks {
        margin-right: 0;
        width: 100%;
    }

    .panel {
        margin: 20px 15px;
        padding: 22px;
    }

    .content {
        margin: 25px 15px;
        padding: 0;
    }

    .newsimage {
        min-height: 140px;
    }

    .top .btn {
        padding: 9px 14px;
    }
}
