/* ==========================================================================
   Student Consultancy Home Official — stylesheet
   Shared by index.php (live site) and index.html (offline preview)
   ========================================================================== */

:root {
    --navy-900: #061630;
    --navy-850: #081d3f;
    --navy-800: #0a2249;
    --navy-700: #0e2c5e;
    --navy-600: #14386f;

    --gold: #d7a74a;
    --gold-soft: #e7c47c;
    --gold-dim: rgba(215, 167, 74, .28);

    --cream: #f5f6fa;
    --paper: #ffffff;

    --ink: #101a2e;
    --ink-soft: #4a5771;
    --ink-faint: #8794ac;

    --line: #e3e7f0;

    --radius: 14px;
    --shell: 1440px;

    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: "Playfair Display", "Times New Roman", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ========================= TOP BAR ========================= */

.topbar {
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: sticky;
    top: 0;
    z-index: 60;
}

.topbar-inner {
    max-width: var(--shell);
    margin: auto;
    min-height: 78px;
    padding: 10px 26px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    flex-shrink: 0;
    width: 246px;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-name {
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.mainnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mainnav a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 8px;
    position: relative;
    transition: color .18s ease, background .18s ease;
}

.mainnav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.mainnav a.is-active { color: var(--gold-soft); }

.mainnav a.is-active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.site-pill {
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--navy-900);
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 24px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.site-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(215, 167, 74, .34);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    width: 44px;
    height: 40px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* ========================= SHELL / SIDEBAR ========================= */

.shell {
    max-width: var(--shell);
    margin: auto;
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    align-items: start;
    background: var(--paper);
}

.sidebar {
    background: var(--navy-850);
    color: #fff;
    padding: 30px 22px 44px;
    align-self: stretch;
}

.side-title {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.socials { display: grid; gap: 4px; }

.social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 9px;
    margin: 0 -9px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.social:hover { background: rgba(255, 255, 255, .07); transform: translateX(2px); }

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.social-meta { min-width: 0; display: block; }

.social-name {
    display: block;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

.social-handle {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: 11.5px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* brand colours */
.i-youtube   { background: #ff0000; }
.i-tiktok    { background: #000; }
.i-x         { background: #000; }
.i-linkedin  { background: #0a66c2; }
.i-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 48%, #6228d7); }
.i-facebook  { background: #1877f2; }
.i-whatsapp  { background: #25d366; }

.side-rule {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
    margin: 30px 0 26px;
}

.impacts { display: grid; gap: 18px; }

.impact { display: flex; align-items: center; gap: 13px; }

.impact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-dim);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--gold-soft);
}

.impact-icon svg { width: 20px; height: 20px; fill: currentColor; }

.impact-value {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.4px;
}

.impact-label { color: rgba(255, 255, 255, .6); font-size: 12.5px; line-height: 1.35; }

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

.hero {
    position: relative;
    background: var(--navy-800);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* Book-spine texture standing in for the library photograph */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .05) 0 3px,
            rgba(255, 255, 255, .015) 3px 9px,
            rgba(0, 0, 0, .16) 9px 14px,
            rgba(255, 255, 255, .03) 14px 22px),
        linear-gradient(160deg, #123063, #0a2149 55%, #061630);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(115% 85% at 78% 32%, rgba(215, 167, 74, .16), transparent 62%),
        linear-gradient(100deg, rgba(6, 22, 48, .95) 32%, rgba(6, 22, 48, .62) 68%, rgba(6, 22, 48, .8));
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
    align-items: center;
    padding: 58px 44px 52px;
}

.hero h1 {
    font-size: clamp(30px, 3.4vw, 45px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.hero-rule {
    width: 148px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    margin: 22px 0;
}

.hero p {
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    max-width: 560px;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
    max-width: 620px;
}

.service {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 18px 12px 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.service:hover {
    background: rgba(215, 167, 74, .12);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.service svg {
    width: 34px;
    height: 34px;
    fill: var(--gold-soft);
    margin: 0 auto 11px;
}

.service b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    line-height: 1.35;
}

.service span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
    letter-spacing: .4px;
}

.hero-lockup { text-align: center; }

.hero-lockup img {
    width: min(230px, 62%);
    margin: 0 auto 20px;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .45));
    border-radius: 50%;
}

.hero-lockup h2 {
    font-family: var(--serif);
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.lockup-official {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-top: 14px;
    color: var(--gold-soft);
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.lockup-official::before,
.lockup-official::after {
    content: "";
    height: 1px;
    width: 52px;
    background: var(--gold-dim);
}

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

.section { padding: 62px 44px; }

.section-head { text-align: center; margin-bottom: 34px; }

.section-head h2 {
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.section-head h2::before,
.section-head h2::after {
    content: "";
    height: 1px;
    width: 70px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head h2::after { background: linear-gradient(270deg, transparent, var(--gold)); }

.section-head p {
    color: var(--ink-soft);
    margin-top: 10px;
    font-size: 15px;
}

/* ========================= JOURNAL SEARCH ========================= */

.journals-section { background: var(--cream); border-top: 1px solid var(--line); }

.search {
    max-width: 620px;
    margin: 0 auto 12px;
    display: flex;
    gap: 10px;
}

.search-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    fill: var(--ink-faint);
    pointer-events: none;
}

.search input {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 14px 44px 14px 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search input::placeholder { color: var(--ink-faint); }

.search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 167, 74, .16);
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: none;
    place-items: center;
}

.search-clear.is-shown { display: grid; }

.search-clear:hover { background: var(--gold); color: var(--navy-900); }

.search button[type="submit"] {
    font: inherit;
    font-weight: 700;
    font-size: 14.5px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--navy-800);
    color: #fff;
    cursor: pointer;
    transition: background .18s ease;
}

.search button[type="submit"]:hover { background: var(--navy-600); }

.search-count {
    text-align: center;
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 30px;
    min-height: 20px;
}

.search-count b { color: var(--ink); }

/* ========================= JOURNAL CARDS ========================= */

.journals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px;
}

.journal {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.journal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--navy-600));
    opacity: 0;
    transition: opacity .2s ease;
}

.journal:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 167, 74, .55);
    box-shadow: 0 16px 34px rgba(10, 34, 73, .11);
}

.journal:hover::before { opacity: 1; }

.journal-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.journal-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.journal-icon svg { width: 22px; height: 22px; fill: var(--gold-soft); }

.status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e8f6ee;
    color: #17794a;
    white-space: nowrap;
}

.status.is-inactive { background: #f1f3f7; color: var(--ink-faint); }

.journal h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 7px;
}

.journal > p {
    color: var(--ink-soft);
    font-size: 14px;
    flex: 1;
}

.journal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.journal-kind {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    background: var(--navy-800);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s ease;
}

.btn:hover { background: var(--gold); color: var(--navy-900); }

.btn .arrow { transition: transform .18s ease; }

.btn:hover .arrow { transform: translateX(3px); }

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 54px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink-soft);
}

.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

.empty.is-hidden { display: none; }

.journal.is-hidden { display: none; }

/* ========================= PROJECTS + EDITOR ========================= */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 24px;
    align-items: stretch;
}

.projects-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
}

.projects-card .section-head { margin-bottom: 24px; }

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

.project {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.project-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }

.project-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
}

.mark-cosmic { background: linear-gradient(140deg, #1fa07a, #0d6b74); }
.mark-grh    { background: linear-gradient(140deg, #2f7fd4, #7a3fbc); }

.project-head h4 { font-size: 15px; font-weight: 700; line-height: 1.3; }

.project p { color: var(--ink-soft); font-size: 13.5px; flex: 1; }

.project .btn { margin-top: 16px; align-self: flex-start; }

.editor-card {
    background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
    border-radius: var(--radius);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 8px;
    padding: 26px 26px 0;
    overflow: hidden;
    position: relative;
}

.editor-photo { align-self: end; position: relative; }

.editor-photo img {
    width: 100%;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .5));
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
}

.editor-body { padding: 6px 0 30px; }

.editor-role {
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.editor-body h3 {
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}

.editor-body > p {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    margin-bottom: 18px;
}

.editor-points { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }

.editor-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .9);
}

.editor-points svg { width: 17px; height: 17px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }

.signature {
    font-family: var(--serif);
    font-style: italic;
    font-size: 27px;
    color: var(--gold-soft);
    letter-spacing: 1px;
}

/* ========================= TRUST BAR ========================= */

.trustbar { background: var(--navy-900); color: #fff; }

.trustbar-inner {
    max-width: var(--shell);
    margin: auto;
    padding: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.trust { display: flex; gap: 13px; }

.trust + .trust { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 26px; }

.trust svg { width: 27px; height: 27px; fill: #fff; flex-shrink: 0; margin-top: 2px; }

.trust b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.trust p { color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.5; }

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

footer { background: var(--navy-850); color: rgba(255, 255, 255, .6); }

.footer-inner {
    max-width: var(--shell);
    margin: auto;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}

.footer-inner strong { color: #fff; font-size: 13.5px; }

.footer-socials { display: flex; gap: 9px; }

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}

.footer-socials a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-2px); }

.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

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

@media (max-width: 1180px) {
    .hero-inner { grid-template-columns: 1fr; padding: 48px 32px; }
    .hero-lockup { order: -1; }
    .hero-lockup img { width: 150px; }
    .services { max-width: none; }
    .duo { grid-template-columns: 1fr; }
    .editor-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 1024px) {
    .shell { grid-template-columns: 1fr; }

    .sidebar {
        position: static;
        min-height: 0;
        padding: 28px 26px 34px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 40px;
        align-items: start;
    }

    .side-rule { display: none; }
    .section { padding: 52px 32px; }
}

@media (max-width: 860px) {
    .mainnav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 18px 18px;
        background: var(--navy-900);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .mainnav.is-open { display: flex; }
    .mainnav a { padding: 12px 14px; }
    .mainnav a.is-active::after { display: none; }

    .topbar { position: relative; }
    .topbar-inner { position: relative; min-height: 68px; }
    .nav-toggle { display: block; }
    .brand { width: auto; }
    .site-pill { display: none; }

    .trustbar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .trust + .trust { border-left: 0; padding-left: 0; }
}

@media (max-width: 660px) {
    .sidebar { grid-template-columns: 1fr; }
    .section { padding: 44px 20px; }
    .hero-inner { padding: 38px 20px; }
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search { flex-direction: column; }
    .search button[type="submit"] { padding: 13px 24px; }
    .projects { grid-template-columns: 1fr; }
    .editor-card { grid-template-columns: 1fr; padding: 26px 22px 0; }
    .editor-photo { max-width: 240px; margin: 0 auto; order: 2; }
    .editor-body { padding-bottom: 10px; }
    .trustbar-inner { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .section-head h2::before, .section-head h2::after { width: 26px; }
}
