
/* =============================================================================
   1. 🌐 GLOBAL STYLES (ใช้ทุกหน้า)
============================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Chakra Petch", sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    scroll-padding-top: 90px;
}

body {
    background: #000;
    color: #e5e5e5;
}

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

a {
    text-decoration: none;
    color: inherit;
}


/* =============================================================================
   2. 📱 NAVBAR (ใช้ทุกหน้า - client/components/navbar.php)
============================================================================= */

.nvidia-nav {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #111;
    padding: 18px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.nav-logo {
    height: 42px;
    margin-right: 10px;
}

.nav-brand-text {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navbar Links - Active & Hover States */
.nvidia-nav .nav-link {
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 500;
    margin-left: 24px;
    position: relative;
    transition: color .25s ease;
    background: transparent !important;
    border: none !important;
    padding-bottom: 8px;
}

.nvidia-nav .nav-link:hover {
    color: #76b900 !important;
}

.nvidia-nav .nav-link.active {
    color: #76b900 !important;
    background: transparent !important;
    border: none !important;
}

/* Underline animation */
.nvidia-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #76b900;
    transition: width .25s ease;
}

.nvidia-nav .nav-link:hover::after {
    width: 100%;
}

.nvidia-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
}

@media (max-width:991px) {
    .nvidia-nav .nav-link {
        margin: 12px 0;
    }
}


/* =============================================================================
   3. 🏠 INDEX.PHP - หน้าแรก (About)
============================================================================= */

/* Hero Section */
.main-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 1;
    top: 35%;
    transform: translateY(-50%);
    padding-left: 80px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 4rem;
    color: #76b900;
    margin-bottom: 140px;
}

/* Hero Split Layout (ใช้ในหน้า index) */
.main-hero.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 120px 80px 60px;
    position: relative;
}

.main-hero.hero-split .hero-text {
    flex: 1;
    max-width: 720px;
}

.main-hero.hero-split .hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-hero.hero-split .hero-image img {
    width: 100%;
    max-width: 820px;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .main-hero.hero-split {
        flex-direction: column;
        padding: 110px 20px 50px;
        text-align: left;
    }

    .main-hero.hero-split .hero-image {
        justify-content: center;
    }
}

/* History Section */
.history {
    padding: 100px 0;
    position: relative;
}

.history-title {
    color: #76b900;
    font-size: 2rem;
    margin-bottom: 15px;
}

.history-box {
    line-height: 1.8;
    color: #fff;
}

/* GTX Banner */
.gtx-banner {
    height: 200px;
    overflow: hidden;
}

.gtx-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ❌ REMOVED: .category - ไม่ได้ใช้ในโค้ด */


/* =============================================================================
   4. 📄 SECTION COMPONENTS (ใช้ในหลายหน้า: index, guideline, drivers, technology)
============================================================================= */

.section {
    padding: 56px 9%;
    background-color: #020202;
    border-bottom: 1px solid #151515;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #76b900;
    border-left: 3px solid #76b900;
    padding-left: 14px;
    letter-spacing: .5px;
}

.section-body p {
    max-width: 880px;
    margin-bottom: 14px;
    font-size: .96rem;
    color: #d9d9d9;
    line-height: 1.7;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.section-text {
    flex: 1.2;
}

.section-image {
    flex: 1.4;
    display: flex;
    justify-content: center;
}

.section-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 6px;
}

/* Feature Grid (ใช้ใน index.php) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.feature-card {
    background-color: #111;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    padding: 22px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    border-color: #76b900;
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(118, 185, 0, .15);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #76b900;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: .92rem;
    color: #cfcfcf;
    line-height: 1.6;
}


/* =============================================================================
   5. 🎮 GRAPHICS SECTIONS (ใช้ใน index.php, guideline.php)
============================================================================= */

/* GR1 Section - Graphics Card Intro */
.gr1-section {
    background: #000;
    padding: 120px 0;
    border-bottom: 1px solid #151515;
    color: #e5e5e5;
}

.gr1-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.gr1-left {
    max-width: 560px;
}

.gr1-left h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gr1-line {
    display: block;
    width: 420px;
    height: 2px;
    background: #76b900;
    margin-bottom: 18px;
}

.gr1-left h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
}

.gr1-left p {
    font-size: .95rem;
    line-height: 1.75;
    color: #cfcfcf;
}

/* GR Info Section - Full height info page */
.gr-info-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
}

.gr-info-title {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 24px;
}

.gr-info-link {
    display: inline-block;
}

.gr-info-link:hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(118, 185, 0, .6);
}

/* GRN Section - GeForce RTX Notebooks */
.grn-section {
    background: #000;
    text-align: center;
    padding: 100px 20px 110px;
}

.grn-title {
    color: #fff;
    font-size: 29px;
    font-weight: 600;
    margin-bottom: 22px;
}

.grn-desc {
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto 40px;
}

.grn-line {
    display: block;
    width: 66%;
    height: 9px;
    margin: 0 auto 55px;
    background: linear-gradient(90deg, transparent, #76b900, transparent);
}

.grn-collage {
    width: 100%;
    max-width: 1100px;
    display: block;
    margin: -59px auto 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0);
}

/* GRF Section - Graphics Features with rows */
.grf-section {
    background: #000;
    padding: 110px 6vw;
    color: #fff;
}

.grf-row {
    display: flex;
    align-items: center;
    gap: 70px;
    margin-bottom: 140px;
}

.grf-row.reverse {
    flex-direction: row-reverse;
}

.grf-text {
    flex: 1;
    max-width: 460px;
}

.grf-text h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 18px;
}

.grf-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #e9e9e9;
}

.grf-img {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.grf-img img {
    width: 100%;
    max-width: 560px;
    transform: scale(1.25);
    transform-origin: center;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .85);
}


/* =============================================================================
   6. 📰 NEWS PAGES (news.php, news_detail.php)
============================================================================= */

/* News Cards */
.news-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    will-change: transform;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f2f2f2;
}

.news-card .card-body {
    padding: 20px;
}

.news-card small {
    font-size: 0.85rem;
    color: #888;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
    color: #111;
}

.news-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 18px;
}

.news-card .btn {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background-color: #f2f2f2;
}

/* Pagination */
.pagination .page-link {
    color: #000;
    border-radius: 8px;
    margin: 0 4px;
}

.pagination .active .page-link {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* News Page Specific Styles */
body.news-page {
    background: #000 !important;
    color: #fff;
}

body.news-page .text-muted {
    color: rgba(255, 255, 255, .65) !important;
}

body.news-page h2,
body.news-page h3,
body.news-page .card-title {
    color: #fff;
}

body.news-page .news-card {
    background: linear-gradient(180deg, #141414 0%, #0b0b0b 100%) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55) !important;
}

body.news-page .news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(118, 185, 0, .35) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .70) !important;
}

body.news-page .news-card .card-title {
    color: #fff !important;
}

body.news-page .news-card .card-text,
body.news-page .news-card small {
    color: rgba(255, 255, 255, .65) !important;
}

body.news-page .news-img {
    background: #111 !important;
}

body.news-page .news-card .btn {
    border-color: rgba(255, 255, 255, .35) !important;
    color: #fff !important;
}

body.news-page .news-card .btn:hover {
    background: #76B900 !important;
    border-color: #76B900 !important;
    color: #000 !important;
}

body.news-page .page-link {
    background: #111 !important;
    border-color: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
}

body.news-page .page-item.active .page-link {
    background: #76B900 !important;
    border-color: #76B900 !important;
    color: #000 !important;
}

/* News Hero */
body.news-page .news-hero {
    text-align: center;
    margin-bottom: 40px;
}

body.news-page .news-hero__kicker {
    color: rgba(255, 255, 255, .55);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

body.news-page .news-hero__title {
    color: #fff;
    font-weight: 800;
    font-size: 34px;
    margin: 0;
}

body.news-page .news-hero__line {
    width: 84px;
    height: 3px;
    background: #76B900;
    border-radius: 999px;
    margin: 14px auto 12px;
}

.news-hero {
    margin-top: 90px;
}


/* =============================================================================
   7.FOOTER (ใช้ทุกหน้า - client/components/footer.php)
============================================================================= */

footer {
    padding: 60px 20px;
    border-top: 1px solid #222;
}

.nv-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #b5b9c0;
}

.nv-footer a {
    color: inherit;
    opacity: .9;
    text-decoration: none;
}

.nv-footer a:hover {
    opacity: 1;
    color: #fff;
}

.nv-footer__logo {
    height: 28px;
    width: auto;
}

.nv-footer__brand {
    font-weight: 900;
    letter-spacing: .06em;
    color: #e6e6e6;
}

.nv-footer__tagline {
    color: rgba(233, 238, 242, .70);
    font-size: .9rem;
}

.nv-footer__title {
    font-weight: 800;
    color: #e6e6e6;
    margin-bottom: .6rem;
}

.nv-footer__link {
    display: block;
    padding: .35rem 0;
    color: rgba(233, 238, 242, .78);
}

.nv-footer__map {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .10);
}


/* =============================================================================
   8. 📱 RESPONSIVE STYLES
============================================================================= */

@media (max-width: 768px) {

    /* Hero */
    .hero-text {
        padding-left: 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    /* Sections */
    .section {
        padding: 44px 6%;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .feature-grid {
        gap: 16px;
    }

    .section-content {
        flex-direction: column;
    }

    /* News */
    .news-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {

    /* Footer */
    .nv-footer .py-5 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .nv-footer__logo {
        height: 22px;
    }

    .nv-footer__map {
        height: 220px;
    }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .nvidia-nav {
        padding: 12px 0;
    }

    .nav-logo {
        height: 22px;
    }

    .nav-brand-text {
        font-size: 1rem;
    }

    .nvidia-nav .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border-radius: 16px;
        background: rgba(0, 0, 0, .94);
        border: 1px solid rgba(255, 255, 255, .10);
    }

    .nvidia-nav .navbar-nav {
        gap: 6px;
    }

    .nvidia-nav .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        background: transparent !important;
        border: none !important;
    }
}


/* =============================================================================
   9. 🎨 NAVBAR FINAL STYLING (Override Bootstrap)
============================================================================= */

.nvidia-nav {
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar-brand {
    min-width: 0;
}

.nav-logo {
    height: 26px;
    width: auto;
}

.nav-brand-text {
    font-weight: 800;
    letter-spacing: .06em;
    white-space: nowrap;
}

.nvidia-nav .navbar-nav .nav-link {
    padding: .6rem .9rem;
    border-radius: 12px;
    background: transparent !important;
    border: none !important;
}


/* =============================================================================
   ✅ END OF STYLE.CSS
   
   📝 สรุป:
   - ลบ .category ที่ไม่ได้ใช้ออกแล้ว
   - แบ่งหมวดหมู่ชัดเจนตามหน้าที่ใช้งาน
   - เพิ่มคอมเมนต์อธิบายทุกส่วน
   - จัดเรียงตามลำดับการใช้งาน
   
   📦 ไฟล์อื่นๆ:
   - guild.css (0 unused) ✅
   - driver.css (0 unused) ✅
   - tech.css (0 unused) ✅
   - news_detail.css (0 unused) ✅
   - backend.css (3 unused) - ดูรายงานแยกต่างหาก
   - login.css (0 unused) ✅
   
============================================================================= */