/*
Theme Name: BDB Theme
Theme URI: http://localhost
Author: Krish Patni
Description: Custom WordPress theme based on the supplied Bharat Diamond Bourse homepage design.
Version: 2.0
*/


/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #FFFFFF;
    color: #050315;
    font-family: 'Archivo', sans-serif;
}

body,
button,
input,
textarea {
    font-family: 'Archivo', sans-serif;
}

a {
    text-decoration: none;
}

button {
    font: inherit;
}

.content-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Archivo Expanded', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    color: #122749;
    margin: 0;
}

.section-label {
    color: #3491C7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
}

.section-intro {
    max-width: 640px;
    margin: 14px 0 40px;
    color: #050315;
    font-size: 17px;
    line-height: 1.6;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 30px;
    margin-bottom: 48px;
}

.heading-link,
.text-link {
    color: #3491C7;
    font-size: 14px;
    font-weight: 600;
}

.text-link {
    display: inline-block;
    border-bottom: 1px solid #3491C7;
    padding-bottom: 3px;
}


/* =========================
   IMAGE PLACEHOLDERS
========================= */

.visual-placeholder {
    background:
        linear-gradient(135deg,
            #dfe3e8 0%,
            #eef0f2 50%,
            #d9dde2 100%);
    color: #122749;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    overflow: hidden;
}


/* =========================
   HEADER
========================= */

.bdb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.bdb-header.scrolled,
.bdb-header.menu-open {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(18, 39, 73, 0.12);
}

.header-inner {
    width: 100%;
}

.utility-nav {
    height: 35px;
    padding: 11px 48px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
}

.utility-nav a {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

.bdb-header.scrolled .utility-nav a,
.bdb-header.menu-open .utility-nav a {
    color: #122749;
}

.main-nav {
    min-height: 77px;
    padding: 10px 48px 16px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.bdb-logo {
    margin-right: auto;
    display: block;
}

.bdb-logo img {
    height: 62px;
    width: auto;
    display: block;
}

.logo-dark {
    display: none !important;
}

.logo-light {
    display: block !important;
}

.bdb-header.scrolled .logo-dark,
.bdb-header.menu-open .logo-dark {
    display: block !important;
}

.bdb-header.scrolled .logo-light,
.bdb-header.menu-open .logo-light {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
}

.bdb-header.scrolled .nav-links a,
.bdb-header.menu-open .nav-links a {
    color: #122749;
}

.directory-button {
    background: #064F73;
    color: #FFFFFF;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px 0;
    background: #FFFFFF;
}

.bdb-header.scrolled .mobile-menu-button span,
.bdb-header.menu-open .mobile-menu-button span {
    background: #122749;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #122749;
    color: rgba(255, 255, 255, 0.35);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 3, 21, 0.75) 0%,
            rgba(5, 3, 21, 0.2) 45%,
            rgba(5, 3, 21, 0.7) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    width: calc(100% - 96px);
    max-width: 1180px;
    z-index: 2;
}

.hero-content h1 {
    max-width: 900px;
    margin: 0 0 36px;
    color: #FFFFFF;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 700;
    line-height: 1.02;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.button-primary {
    display: inline-block;
    background: #064F73;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
}

.button-outline-light {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
}


/* =========================
   STATS
========================= */

.stats-section {
    background: #E3E5E9;
    padding: 72px 48px;
}

.stats-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.stat-item {
    border-left: 1px solid rgba(18, 39, 73, 0.2);
    padding-left: 28px;
}

.stat-number {
    color: #122749;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(26px, 2.6vw, 42px);
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.stat-label {
    margin-top: 10px;
    color: #050315;
    font-size: 14px;
    font-weight: 500;
}


/* =========================
   ABOUT
========================= */

.about-section {
    padding: 120px 48px;
}

.about-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 560px;
}

.about-content h2 {
    margin: 0 0 26px;
    color: #122749;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.1;
}

.about-content p {
    margin: 0 0 16px;
    color: #050315;
    font-size: 17px;
    line-height: 1.7;
}

.about-content p:nth-of-type(2) {
    margin-bottom: 32px;
}


/* =========================
   LATEST FROM BDB
========================= */

.latest-section {
    padding: 0 48px 120px;
}

.latest-section .section-title {
    margin-bottom: 48px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.latest-image {
    width: 100%;
    height: 340px;
}

.latest-card h3 {
    margin: 22px 0 8px;
    font-size: 19px;
    font-weight: 600;
    color: #122749;
}

.latest-card p {
    margin: 0 0 14px;
    color: #050315;
    font-size: 15px;
    line-height: 1.6;
}

.square-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(18, 39, 73, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #122749;
    font-size: 15px;
}


/* =========================
   INSIDE THE HUB
========================= */

.hub-section {
    background: #E3E5E9;
    padding: 120px 48px;
}

.hub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(18, 39, 73, 0.15);
    margin-bottom: 48px;
}

.hub-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 18px;
    color: #050315;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.6;
    cursor: pointer;
}

.hub-tab.active {
    border-bottom-color: #3491C7;
    color: #122749;
    font-weight: 600;
    opacity: 1;
}

.hub-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hub-image {
    width: 100%;
    height: 420px;
}

.hub-information h3 {
    margin: 0 0 16px;
    color: #122749;
    font-size: 24px;
    font-weight: 600;
}

.hub-information p {
    margin: 0 0 24px;
    color: #050315;
    font-size: 16px;
    line-height: 1.7;
}

.hub-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hub-tags span {
    border: 1px solid rgba(18, 39, 73, 0.25);
    padding: 8px 16px;
    color: #122749;
    font-size: 13px;
}


/* =========================
   EVENTS
========================= */

.events-section {
    padding: 120px 48px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.event-image {
    width: 100%;
    height: 200px;
}

.event-date {
    margin-top: 16px;
    color: #3491C7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-card h3 {
    margin: 4px 0 0;
    color: #122749;
    font-size: 16px;
    font-weight: 600;
}

.event-card p {
    margin: 2px 0 0;
    color: rgba(5, 3, 21, 0.5);
    font-size: 13px;
}


/* =========================
   NEWS
========================= */

.news-section {
    background: #E3E5E9;
    padding: 120px 48px;
}

.news-section .section-heading-row {
    margin-bottom: 32px;
}

.news-page {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.news-page.active {
    display: grid;
}

.news-image {
    width: 100%;
    height: 240px;
}

.news-item h3 {
    margin: 20px 0 6px;
    color: #122749;
    font-size: 18px;
    font-weight: 600;
}

.news-date {
    color: rgba(5, 3, 21, 0.5);
    font-size: 13px;
}

.news-controls {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: rgba(18, 39, 73, 0.3);
    cursor: pointer;
    transition: width 0.2s ease;
}

.news-dot.active {
    width: 24px;
    background: #122749;
}

.news-arrows {
    display: flex;
    gap: 12px;
}

.news-arrows button {
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid #122749;
    color: #122749;
    cursor: pointer;
}


/* =========================
   INSTAGRAM
========================= */

.instagram-section {
    padding: 104px 48px;
}

.instagram-heading {
    margin-bottom: 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.instagram-heading p {
    margin: 12px 0 0;
    color: #050315;
    font-size: 17px;
    line-height: 1.6;
}

.instagram-button {
    border: 1px solid #122749;
    color: #122749;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
}

.reels-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.reel-card {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 520px;
    min-width: 210px;
    border-radius: 10px;
    overflow: hidden;
    background: #E3E5E9;
    scroll-snap-align: start;
}

.reel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 3, 21, 0) 45%,
            rgba(5, 3, 21, 0.72) 100%);
}

.reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #122749;
    cursor: pointer;
}

.reel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px;
}

.reel-caption p {
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.reel-caption a {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.reels-note {
    margin: 18px 0 0;
    color: rgba(5, 3, 21, 0.5);
    font-size: 13px;
}


/* =========================
   CONNECT
========================= */

.connect-section {
    padding: 120px 48px;
}

.connect-container {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.connect-container h2 {
    margin: 0 0 24px;
    color: #122749;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.15;
}

.connect-container p {
    margin: 0 0 40px;
    color: #050315;
    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #122749;
    color: #E3E5E9;
    padding: 80px 48px 40px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-grid {
    margin-bottom: 64px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
}

.footer-bdb {
    margin-bottom: 16px;
    color: #FFFFFF;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.footer-about p {
    max-width: 280px;
    margin: 0;
    color: rgba(227, 229, 233, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    margin: 0 0 6px;
    color: #3491C7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.footer-column a {
    color: #E3E5E9;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(227, 229, 233, 0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: rgba(227, 229, 233, 0.6);
    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1023px) {

    .utility-nav {
        display: none;
    }

    .main-nav {
        min-height: 90px;
        padding: 14px 28px;
    }

    .bdb-logo img {
        height: 58px;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        background: #FFFFFF;
        padding: 32px;
        box-shadow: 0 10px 20px rgba(18, 39, 73, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: #122749;
        font-size: 17px;
    }

    .directory-button {
        display: none;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .latest-grid,
    .events-grid,
    .news-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .hero-content {
        width: calc(100% - 48px);
        bottom: 48px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .stats-section,
    .about-section,
    .hub-section,
    .events-section,
    .news-section,
    .instagram-section,
    .connect-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .latest-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .stats-container,
    .latest-grid,
    .events-grid,
    .news-page,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

    .latest-image {
        height: 300px;
    }

    .hub-image {
        height: 330px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .instagram-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .reels-track {
        grid-auto-columns: min(72%, 260px);
    }

    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }

}