/* =============================================
   Rithy Group Cambodia - Public Stylesheet
   ============================================= */

:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #9A7B2F;
    --dark: #0D0D0D;
    --dark-2: #1A1A1A;
    --dark-3: #2A2A2A;
    --text-dark: #1C1C1E;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --off-white: #F8F6F0;
    --border: #E8E0D0;
    --font-serif: 'Playfair Display', 'Noto Serif Khmer', serif;
    --font-sans: 'Nunito Sans', 'Noto Serif Khmer', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

body.lang-km {
    font-family: 'Noto Serif Khmer', serif;
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--dark);
    color: #aaa;
    font-size: 0.8rem;
    padding: 6px 0;
}
.topbar a { color: #aaa; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.lang-switcher a { color: #aaa; text-decoration: none; font-weight: 600; padding: 0 4px; }
.lang-switcher a.active, .lang-switcher a:hover { color: var(--gold); }
.lang-switcher span { color: #555; }

/* ===== NAVBAR ===== */
.main-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.main-navbar.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-icon {
    width: 44px; height: 44px;
    background: var(--gold);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700; font-size: 1rem;
    border-radius: 4px;
    letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.brand-sub { font-size: 0.7rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

.main-navbar .nav-link {
    font-weight: 600; font-size: 0.88rem;
    color: var(--text-dark) !important;
    padding: 6px 14px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color .2s;
    position: relative;
}
.main-navbar .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transition: transform .2s;
}
.main-navbar .nav-link:hover::after, .main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--gold) !important; }

.dropdown-menu {
    border: none; border-top: 2px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    min-width: 220px;
    animation: dropDown 0.2s ease;
}
@keyframes dropDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.dropdown-item { font-size: 0.85rem; padding: 10px 20px; font-weight: 500; transition: all .2s; }
.dropdown-item:hover { background: var(--off-white); color: var(--gold); padding-left: 26px; }

.btn-outline-gold {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    transition: all .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

/* ===== HERO SLIDESHOW ===== */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    position: relative;
    height: 92vh; min-height: 550px;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-slide-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #2A1F0A 50%, var(--dark-3) 100%);
    background-size: cover; background-position: center;
}
.hero-slide-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 700px; padding: 0 40px;
    color: var(--white);
}
.hero-label {
    display: inline-block;
    font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); border: 1px solid var(--gold);
    padding: 5px 16px; margin-bottom: 20px;
    font-weight: 600;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; line-height: 1.15;
    margin-bottom: 20px;
}
.hero-subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold {
    background: var(--gold); color: var(--dark);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 14px 32px;
    border: none; border-radius: 3px; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-gold:hover { background: var(--gold-light); color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.4); }
.btn-outline-white {
    background: transparent; color: var(--white);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 13px 32px;
    border: 1.5px solid rgba(255,255,255,0.6); border-radius: 3px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

.slider-controls {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 10px; align-items: center;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all .3s;
    border: none;
}
.slider-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* ===== SECTION STYLES ===== */
.section-badge {
    display: inline-block; font-size: 0.72rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold); font-weight: 700;
    border-bottom: 1px solid var(--gold); padding-bottom: 4px; margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700; line-height: 1.25;
    color: var(--text-dark);
}
.section-divider {
    width: 50px; height: 3px; background: var(--gold);
    margin: 16px 0 24px;
}
.section-divider.center { margin: 16px auto 24px; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 100px 0; background: var(--off-white); }
.about-image-wrap { position: relative; }
.about-image-wrap img {
    width: 100%; border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-badge {
    position: absolute; bottom: -24px; right: -24px;
    background: var(--gold); color: var(--dark);
    padding: 24px 30px; text-align: center;
    font-family: var(--font-serif);
}
.about-badge .num { font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; }
.about-badge .label { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== CHAIRMAN SECTION ===== */
.chairman-section { padding: 100px 0; background: var(--dark); color: var(--white); overflow: hidden; }
.chairman-image {
    position: relative;
    height: 600px; overflow: hidden;
}
.chairman-image img { width: 100%; height: 100%; object-fit: cover; }
.chairman-image::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, transparent 70%, var(--dark) 100%);
}
.chairman-content { padding: 60px 40px; }
.chairman-quote {
    font-family: var(--font-serif); font-size: 1.6rem;
    font-style: italic; color: var(--gold-light); line-height: 1.5;
    border-left: 3px solid var(--gold); padding-left: 24px;
    margin: 24px 0;
}
.chairman-name { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; }
.chairman-title { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* ===== BEGINNINGS SECTION ===== */
.beginnings-section { padding: 100px 0; }
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item { display: flex; gap: 40px; margin-bottom: 60px; position: relative; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-year {
    position: absolute; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--dark);
    font-family: var(--font-serif); font-weight: 700; font-size: 0.9rem;
    padding: 6px 14px; border-radius: 20px; white-space: nowrap; z-index: 2;
    top: 20px;
}
.timeline-content {
    flex: 1; background: var(--off-white);
    padding: 28px 32px; border-radius: 4px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 4px solid var(--gold); }
.timeline-content h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 10px; }

/* ===== COMPANIES SECTION ===== */
.companies-section { padding: 100px 0; background: var(--off-white); }
.company-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 4px; padding: 36px 28px; text-align: center;
    transition: all .3s; cursor: pointer; height: 100%;
}
.company-card:hover {
    transform: translateY(-6px); border-color: var(--gold);
    box-shadow: 0 16px 50px rgba(201,168,76,.15);
}
.company-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--gold); color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 18px;
    transition: all .3s;
}
.company-card:hover .company-icon { background: var(--dark); color: var(--gold); }
.company-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.company-sector { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.company-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== NEWS SECTION ===== */
.news-section { padding: 100px 0; }
.news-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    transition: all .3s; height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}
.news-card-img { height: 220px; overflow: hidden; background: var(--off-white); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 24px; }
.news-category {
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); font-weight: 700;
    display: inline-block; margin-bottom: 10px;
}
.news-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.news-title a { color: var(--text-dark); text-decoration: none; transition: color .2s; }
.news-title a:hover { color: var(--gold); }
.news-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.news-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 80px 0 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-title {
    font-family: var(--font-serif); color: var(--white);
    font-size: 1rem; font-weight: 700;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dark);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); min-width: 16px; margin-top: 3px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.85rem; transition: all .2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.lang-switcher-footer a { color: rgba(255,255,255,0.5); text-decoration: none; padding: 0 6px; }
.lang-switcher-footer a.active, .lang-switcher-footer a:hover { color: var(--gold); }
.lang-switcher-footer span { color: rgba(255,255,255,0.3); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); color: var(--dark);
    border: none; cursor: pointer; font-size: 0.9rem;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(201,168,76,.4);
    transition: all .2s;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ===== UTILITIES ===== */
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-dark-custom { background: var(--dark) !important; }
.bg-off-white { background: var(--off-white) !important; }
.section-padding { padding: 100px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-slide { height: 70vh; }
    .hero-content { padding: 0 20px; }
    .chairman-image { height: 400px; }
    .timeline::before { display: none; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; }
    .timeline-year { position: static; transform: none; display: inline-block; margin-bottom: 14px; }
    .about-badge { right: 0; bottom: -20px; }
}

@media (max-width: 767px) {
    .topbar-left { display: none !important; }
    .section-padding { padding: 60px 0; }
    .about-section, .chairman-section, .companies-section, .news-section, .beginnings-section { padding: 60px 0; }
}

/* ===== ANIMATIONS ===== */
[data-aos] { transition-duration: 0.7s !important; }

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
    padding: 100px 0 60px;
    color: #fff;
    overflow: hidden;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10,20,40,.85), rgba(10,20,40,.5));
    z-index: 0;
}
.page-hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem; font-weight: 700; color: #fff;
    margin-top: 12px;
}
.page-hero .breadcrumb-item a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-separator { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.article-meta span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ===== PROSE CONTENT ===== */
.prose-content { line-height: 1.85; font-size: 1.05rem; color: #333; }
.prose-content h1,.prose-content h2,.prose-content h3 { font-family: 'Cormorant Garamond',serif; color: var(--dark); margin-top: 1.5em; }
.prose-content img { max-width: 100%; border-radius: 8px; margin: 1.5em 0; }
.prose-content p { margin-bottom: 1.2em; }
.prose-content blockquote { border-left: 4px solid var(--gold); padding-left: 1.5rem; color: #555; font-style: italic; margin: 1.5em 0; }
.page-content-body { background: #fff; border-radius: 12px; padding: 2.5rem; box-shadow: 0 2px 20px rgba(0,0,0,.06); }

/* ===== SIDEBAR / RELATED NEWS ===== */
.sidebar-widget { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.widget-title { font-family: 'Cormorant Garamond',serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); border-bottom: 2px solid var(--gold); padding-bottom: .5rem; margin-bottom: 1rem; }
.related-news-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #f0f0f0; }
.related-news-item:last-child { border: none; }
.related-thumb { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-title { font-size: .85rem; color: var(--dark); text-decoration: none; display: block; font-weight: 500; line-height: 1.3; }
.related-title:hover { color: var(--gold); }
.related-date { font-size: .75rem; color: #999; margin-top: .25rem; }

/* ===== NEWS LISTING CARDS ===== */
.news-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,.07); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-card-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--dark), var(--navy)); }
.news-card-body { padding: 1.25rem; }
.news-category { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.news-title { font-family: 'Cormorant Garamond',serif; font-size: 1.2rem; font-weight: 700; margin: .5rem 0; line-height: 1.35; }
.news-title a { color: var(--dark); text-decoration: none; }
.news-title a:hover { color: var(--gold); }
.news-excerpt { font-size: .875rem; color: #666; line-height: 1.65; }
.news-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; font-size: .8rem; }
.news-date { color: #999; }
.news-read-more { color: var(--gold); text-decoration: none; font-weight: 500; }
.news-read-more:hover { color: var(--gold-dark, #a07a20); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 60px 0 0; margin-top: 60px; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand .brand-rg { font-size: 1.5rem; }
.footer-brand .brand-name { color: #fff; font-weight: 600; }
.footer-tagline { font-size: .9rem; opacity: .65; }
.footer-heading { font-family: 'Cormorant Garamond',serif; color: var(--gold); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: background .2s; }
.footer-socials a:hover { background: var(--gold); }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .82rem; color: rgba(255,255,255,.4); }
.lang-link { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; }
.lang-link.active { color: var(--gold); font-weight: 600; }
.lang-link:hover { color: var(--gold); }
.lang-toggle { color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem; border: 1px solid rgba(255,255,255,.3); padding: 2px 10px; border-radius: 20px; transition: .2s; }
.lang-toggle:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ===== BTN GOLD SMALL ===== */
.btn-gold-sm { background: var(--gold); color: var(--dark); border: none; border-radius: 20px; padding: 5px 16px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: .2s; }
.btn-gold-sm:hover { background: var(--gold-light, #d4b060); color: var(--dark); }
