:root {
    --primary: #41431B;
    --secondary: #888d3a;
    --accent: #AEB784;
    --accent-soft: rgba(174, 183, 132, 0.15);
    --text-main: #41431B;
    --text-light: #AEB784;
    --bg-light: #d5d98b;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

/* Global Link Styles */
a {
    color: var(--primary);
    transition: 0.3s;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Top Bar */
.top-nav {
    background-color: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1050 !important;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    margin-left: 20px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Common Components */
.lang-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.lang-switcher span {
    padding: 6px 14px;
    border-radius: 40px;
    transition: 0.3s;
    color: #64748b;
}

.lang-switcher span.active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Standard Layout Components */
.standard-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c2e12 100%);
    padding: 80px 0 120px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.standard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/rasayan-nogor-logo.svg') no-repeat center;
    background-size: 40%;
    opacity: 0.05;
    pointer-events: none;
}

.breadcrumb-custom {
    background: transparent !important;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

.standard-card-wrapper {
    background: #fff;
    border-radius: 40px;
    padding: 60px;
    margin-top: -80px;
    margin-bottom: 80px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
    border: 1px solid #f1f5f9;
}

/* Footer Standard (Full Width) */
footer {
    background: var(--primary);
    color: #ffffff;
    padding: 60px 0 30px;
    text-align: left;
    width: 100%;
    margin-top: auto;
}

footer .footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Standard Layout */
@media (max-width: 991px) {
    .standard-header {
        padding: 60px 0 100px;
    }

    .standard-card-wrapper {
        margin-top: -60px;
        padding: 40px;
        border-radius: 30px;
    }

    footer {
        text-align: center;
    }

    footer .text-left {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .standard-header {
        padding: 50px 0 80px;
    }

    .standard-header h1 {
        font-size: 2.2rem;
    }

    .standard-card-wrapper {
        margin-top: -40px;
        padding: 30px 20px;
        border-radius: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .standard-header {
        padding: 40px 0 60px;
    }

    .standard-header h1 {
        font-size: 1.8rem;
    }

    .breadcrumb-custom {
        font-size: 0.8rem;
    }
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2c2e12 !important;
    border-color: #2c2e12 !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.btn-modern {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.text-primary {
    color: var(--primary) !important;
}

a.text-primary:hover,
a.text-primary:focus {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.text-muted {
    color: #626e27 !important;
}

/* About Us Section */
.about-section {
    padding: 100px 0;
    background-color: #fff;
}

.about-subtitle {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.about-title {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 40px;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(65, 67, 27, 0.2);
    border: 8px solid #fff;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Director Message Card */
.director-message-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(65, 67, 27, 0.1);
}

.director-message-card .quote-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.director-info {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.director-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #fff;
}

.director-name {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.director-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .about-section {
        padding: 60px 0;
    }

    .video-wrapper {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .director-message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .director-profile-side {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .director-img {
        width: 120px;
        height: 120px;
    }
}

/* Modern Tabs & Filters Global */
.nav-tabs-custom,
.filter-nav {
    border: none;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.nav-tabs-custom .nav-link,
.filter-nav .filter-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    margin: 0 10px;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-tabs-custom .nav-link.active,
.filter-nav .filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 768px) {

    .nav-tabs-custom,
    .filter-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 5px 15px;
        margin-left: -15px;
        margin-right: -15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .nav-tabs-custom::-webkit-scrollbar,
    .filter-nav::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .nav-tabs-custom .nav-item,
    .filter-nav .filter-btn {
        flex: 0 0 auto;
    }

    .nav-tabs-custom .nav-link,
    .filter-nav .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin: 0 5px;
    }
}

/* Speech Content Refinement */
@media (max-width: 991px) {
    .floating-profile {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
    }
}

/* Member Card Global Responsive */
@media (max-width: 576px) {
    .member-card {
        padding: 20px 15px;
    }

    .member-img {
        width: 100px;
        height: 100px;
    }

    .member-name {
        font-size: 1rem;
    }
}

/* Gallery Grid Global */
.media-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.media-thumb {
    position: relative;
    height: 240px;
    background: #f8fafc;
    overflow: hidden;
    width: 100%;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    transition: 0.3s;
}

.media-info {
    padding: 20px;
    flex-grow: 1;
}

.media-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.media-tag {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 768px) {
    .media-thumb {
        height: 200px;
    }
}