/* ============================================
   P3GI Website - Custom Styles (Bootstrap 5 Extension)
   ============================================ */

/* ======================== CSS VARIABLES ======================== */
:root {
    /* Geography Color Palette - Flattened */
    --navy: #8D6E63;
    /* Coklat Tanah */
    --navy-light: #A1887F;
    --navy-dark: #6D4C41;
    --teal: #8D6E63;
    /* Using Brown as Primary */
    --teal-dark: #6D4C41;
    --gold: #FBC02D;
    /* Kuning Peta */
    --gold-dark: #F9A825;
    --gold-light: #FFF176;
    --section-bg: #F5F5F5;
    /* Abu Terang */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;

    /* Bootstrap Primary Override */
    --bs-primary: #8D6E63;
    --bs-primary-rgb: 141, 110, 99;
    --bs-link-color: #8D6E63;
    --bs-link-hover-color: #6D4C41;
}

/* ======================== BASE ======================== */
body {
    font-family: var(--font-body);
    color: #475569;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ======================== BOOTSTRAP OVERRIDES ======================== */
.btn-primary {
    --bs-btn-bg: #2E7D32;
    --bs-btn-border-color: #2E7D32;
    --bs-btn-hover-bg: #1B5E20;
    --bs-btn-hover-border-color: #1B5E20;
    --bs-btn-active-bg: #1B5E20;
    --bs-btn-active-border-color: #1B5E20;
    --bs-btn-disabled-bg: #2E7D32;
    --bs-btn-disabled-border-color: #2E7D32;
}

.btn-outline-primary {
    --bs-btn-color: #2E7D32;
    --bs-btn-border-color: #2E7D32;
    --bs-btn-hover-bg: #2E7D32;
    --bs-btn-hover-border-color: #2E7D32;
    --bs-btn-active-bg: #1B5E20;
    --bs-btn-active-border-color: #1B5E20;
}

.text-primary {
    color: #2E7D32 !important;
}

.bg-primary {
    background-color: #2E7D32 !important;
}

.form-check-input:checked {
    background-color: #2E7D32;
    border-color: #2E7D32;
}

.form-check-input:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.section-bg {
    background-color: var(--section-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1e293b;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: #1e293b;
}

.section-badge {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--teal);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--teal);
    border-radius: 2px;
    margin: 12px auto 20px;
}

.section-padding {
    padding: 80px 0;
}

/* ======================== NAVBAR ======================== */
.bg-geography {
    background: var(--teal) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.brand-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.1rem;
    overflow: hidden;
}

.brand-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-nav-login {
    background: var(--teal) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
}

.btn-nav-login:hover {
    background: var(--teal-dark) !important;
    transform: translateY(-1px);
}

.navbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow-card);
    background: #fff;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #1e293b;
}

.navbar .dropdown-item:hover {
    background: rgba(46, 125, 50, 0.1);
    color: var(--teal);
}

/* ======================== HERO ======================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Accounts for overlapping navbar */
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(109, 76, 65, 0.82);
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #1e293b;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 700;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #ffffff;
    max-width: 700px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.btn-hero-primary {
    background: var(--gold);
    color: #333;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-hero-primary:hover {
    background: var(--gold-dark);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.3);
}

.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-hero-outline:hover {
    background: #ffffff;
    color: var(--teal);
    border-color: #ffffff;
    transform: translateY(-2px);
}


/* ======================== CARDS (General) ======================== */
.p3gi-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}

.p3gi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.p3gi-card .card-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--teal);
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.p3gi-card:hover .card-icon {
    background: var(--teal);
    color: white;
    transform: scale(1.1);
}

.p3gi-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
}

.p3gi-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Card with top gradient bar */
.p3gi-card-bar {
    position: relative;
    overflow: hidden;
}

.p3gi-card-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--teal);
    opacity: 0;
    transition: opacity var(--transition);
}

.p3gi-card-bar:hover::before {
    opacity: 1;
}

/* ======================== MEMBERSHIP CARDS ======================== */
.membership-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.membership-card.featured {
    border-color: var(--teal);
    box-shadow: 0 0 30px rgba(46, 125, 50, 0.2);
    transform: scale(1.03);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.membership-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.membership-icon-circle {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--teal);
    transition: all var(--transition);
}

.membership-card.featured .membership-icon-circle,
.membership-card:hover .membership-icon-circle {
    background: var(--teal);
    color: white;
}

.membership-type-badge {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.membership-features {
    text-align: left;
    flex-grow: 1;
}

.membership-features li {
    padding: 8px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.membership-features li i {
    color: var(--teal);
    font-size: 0.75rem;
}

/* ======================== PARTNER CARDS ======================== */
.partner-card {
    text-align: center;
    padding: 28px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--teal);
}

.partner-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--navy-light);
    transition: all var(--transition);
}

.partner-card:hover .partner-icon-circle {
    background: var(--teal);
    color: white;
}

.partner-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

/* ======================== NEWS CARD ======================== */
.news-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
    height: 100%;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 20px;
}

/* Category Badge Styles */
.cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}

.cat-badge-soft-primary {
    background: rgba(46, 125, 50, 0.1);
    color: var(--teal);
}

.cat-badge-soft-info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.cat-badge-soft-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.cat-badge-soft-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.news-category-badge {
    background: rgba(46, 125, 50, 0.1);
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}

.news-card .card-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color var(--transition);
}

.news-card .card-title a:hover {
    color: var(--teal);
}

/* ======================== PAGE HEADER (Inner Pages) ======================== */
.page-header {
    background: #f8fafc;
    padding: 100px 0 60px;
    color: #1e293b;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: #1e293b;
}

.page-header .breadcrumb-item a {
    color: var(--teal-dark);
    font-weight: 500;
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #64748b;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #94a3b8;
}

/* ======================== AGENDA CARD ======================== */
.agenda-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.agenda-date-box {
    background: var(--gold);
    color: #333;
    padding: 16px;
    text-align: center;
    min-width: 90px;
}

.agenda-date-box .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================== FOOTER ======================== */
.footer-main {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding-top: 50px;
    border-top: none;
}

.footer-wave-shape {
    display: none;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-heading i {
    color: var(--teal);
}

.footer-agenda-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-agenda-date {
    display: block;
    font-size: 0.72rem;
    color: var(--teal-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-agenda-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-link-list li {
    margin-bottom: 8px;
}

.footer-link-list a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-link-list a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-link-list a i {
    color: var(--teal);
    opacity: 0.8;
    font-size: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list li i {
    color: var(--teal);
    margin-top: 4px;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: var(--teal-dark);
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
    margin-right: 8px;
    text-decoration: none;
}

.social-btn:hover {
    color: white;
    transform: translateY(-3px);
}

/* Footer specific override for social buttons */
.footer-main .social-btn {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main .social-btn:hover {
    color: white;
}

.social-btn.instagram:hover {
    background: #E1306C;
    border-color: transparent;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: transparent;
}

.social-btn.youtube:hover {
    background: #ff0000;
    border-color: transparent;
}

.footer-newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.85rem;
}

.footer-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 16px;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--teal-dark);
}

/* ======================== BACK TO TOP ======================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(46, 125, 50, 0.4);
}

/* ======================== MEMBERSHIP CARD V2 ======================== */
.membership-card-v2 {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.membership-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.membership-card-v2-header {
    padding: 1rem 1rem 0.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.membership-card-v2.featured .membership-card-v2-header {
    background: var(--teal-dark);
    color: white;
    border-bottom: none;
}

.membership-type-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    background: rgba(44, 95, 45, 0.1);
    color: var(--teal-dark);
}

.membership-card-v2.featured .membership-type-label {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.membership-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.membership-price .currency {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.1rem;
    margin-right: 0.1rem;
}

.membership-price .amount {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1e293b;
    font-family: var(--font-heading);
}

.membership-card-v2.featured .membership-price .amount,
.membership-card-v2.featured .membership-price .currency,
.membership-card-v2.featured .membership-price .period {
    color: white;
}

.membership-price .period {
    align-self: flex-end;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.15rem;
    margin-left: 0.1rem;
}

.membership-signup-fee {
    font-size: 0.65rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.membership-card-v2.featured .membership-signup-fee {
    color: rgba(255, 255, 255, 0.8);
}

.membership-card-v2-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.membership-desc {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
}

.membership-card-v2.featured .membership-desc {
    color: rgba(255, 255, 255, 0.9);
}

.membership-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.membership-benefits li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.4;
}

.membership-card-v2-body .btn {
    padding: 14px;
    font-weight: 700;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ======================== KEANGGOTAAN BANNER (MAP BG) ======================== */
.join-map-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: var(--navy-dark);
}

.join-map-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.join-map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    filter: sepia(0.4) brightness(0.7);
}

.join-map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(109, 76, 65, 0.6);
    z-index: 1;
}

.join-map-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.6rem;
    color: #ffffff;
}

.join-map-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-join-map {
    background-color: var(--gold);
    color: #333;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-join-map:hover {
    transform: translateY(-3px);
    background-color: var(--gold-dark);
    color: #000;
}

@media (max-width: 768px) {
    .join-map-section {
        padding: 60px 0;
    }

    .join-map-title {
        font-size: 1.8rem;
    }

    .join-map-desc {
        font-size: 0.92rem;
    }

    .join-map-desc br {
        display: none;
    }
}

/* ======================== REGISTRATION FORM ======================== */
.registration-form-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.form-section-title {
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    font-size: 0.95rem;
}

.membership-radio-card,
.payment-radio-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.membership-radio-card:hover,
.payment-radio-card:hover {
    border-color: var(--teal);
    background: rgba(46, 125, 50, 0.02);
}

.membership-radio-card.active,
.payment-radio-card.active {
    border-color: var(--teal);
    background: rgba(46, 125, 50, 0.05);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.membership-radio-card .form-check-label,
.payment-radio-card .form-check-label {
    cursor: pointer;
    width: 100%;
}

.bank-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
}

.bank-logo {
    width: 56px;
    height: 56px;
    background: #005aa9;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* ======================== PAYMENT SUMMARY ======================== */
.payment-summary-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
}

.summary-total {
    padding-top: 16px;
}

.summary-total .summary-value {
    font-size: 1.2rem;
}

/* ======================== MEMBER CARD ======================== */
.member-digital-card {
    background: var(--navy-dark);
    color: white;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    max-width: 500px;
}

.member-digital-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* ======================== ADMIN ======================== */
.admin-sidebar {
    background: var(--navy);
    min-height: 100vh;
    padding: 20px 0;
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 0.88rem;
    border-radius: 0;
    transition: all var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(46, 125, 50, 0.2);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 24px;
    font-size: 0.9rem;
}

/* Admin Top Bar */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-avatar {
    font-size: 1.8rem;
    color: var(--navy);
    line-height: 1;
}

/* ======================== ANIMATIONS ======================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1199px) {
    .navbar .dropdown-menu {
        border: none;
        padding-left: 16px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 90vh;
    }

    .hero-main-title {
        font-size: 3rem;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .membership-card.featured {
        transform: none;
    }

    .membership-card.featured:hover {
        transform: translateY(-8px);
    }

    .membership-card-v2.featured {
        transform: none;
    }

    .registration-form-card {
        padding: 24px 20px;
    }

    .payment-summary-card {
        position: static !important;
    }
}

@media (max-width: 480px) {
    .hero-stat-box {
        padding: 0 12px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }
}

/* ======================== WORDPRESS-STYLE ADMIN PANELS ======================== */
.wp-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.wp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #c3c4c7;
    background: #f6f7f7;
    cursor: pointer;
    user-select: none;
}

.wp-panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

.wp-panel-header .toggle-icon {
    color: #787c82;
    transition: transform 0.2s ease;
}

.wp-panel-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.wp-panel-body {
    padding: 12px;
}

.wp-panel-body.collapsed {
    display: none;
}

/* Title Input - WordPress Style */
.wp-title-input {
    width: 100%;
    font-size: 1.7em;
    line-height: 1.3;
    padding: 6px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #1d2327;
    margin-bottom: 16px;
}

.wp-title-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.wp-title-input::placeholder {
    color: #a7aaad;
}

/* Publish Panel */
.wp-publish-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wp-publish-actions .btn {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 3px;
}

.wp-publish-info {
    padding: 8px 0;
    border-top: 1px solid #dcdcde;
}

.wp-publish-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #50575e;
    padding: 4px 0;
}

.wp-publish-info-row i {
    width: 16px;
    text-align: center;
    color: #787c82;
}

.wp-publish-footer {
    border-top: 1px solid #dcdcde;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-wp-publish {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-wp-publish:hover {
    background: #135e96;
    color: #fff;
}

/* Category Panel - checkbox list */
.wp-category-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dcdcde;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.wp-category-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2327;
    padding: 3px 0;
    cursor: pointer;
}

.wp-category-list input[type="radio"] {
    accent-color: #2271b1;
}

/* Featured Image */
.wp-featured-image-area {
    border: 2px dashed #c3c4c7;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
}

.wp-featured-image-area:hover {
    border-color: #2271b1;
}

.wp-featured-image-area img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wp-featured-image-area .placeholder-text {
    font-size: 13px;
    color: #787c82;
}

.wp-featured-image-area .placeholder-text i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: #c3c4c7;
}

/* Editor Toolbar mimicking WP */
.wp-editor-tabs {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

.wp-editor-tab {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e5e5e5;
    border: 1px solid #c3c4c7;
    cursor: pointer;
    color: #646970;
}

.wp-editor-tab.active {
    background: #fff;
    border-bottom-color: #fff;
    color: #1d2327;
}

/* Admin header - Add Post style */
.wp-page-title {
    font-size: 23px;
    font-weight: 400;
    color: #1d2327;
    margin: 0;
    padding: 10px 0 6px;
    line-height: 1.3;
}

/* Add Media Button - WordPress style */
.btn-add-media {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-add-media:hover {
    background: #135e96;
}

/* Article content - front-end rendering */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.article-content blockquote {
    border-left: 4px solid var(--teal);
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 1rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}

/* ============================================
   WordPress-style Sidebar Groups
   ============================================ */
.wp-admin-nav {
    padding: 0;
}

.wp-admin-nav .nav-link {
    font-size: 13px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.wp-admin-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wp-admin-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-left-color: var(--teal, #2271b1);
    font-weight: 600;
}

/* Separator */
.wp-nav-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 12px;
    list-style: none;
}

/* Group toggle */
.wp-nav-group-toggle {
    display: flex !important;
    align-items: center;
    position: relative;
}

.wp-nav-group-toggle .wp-nav-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.wp-nav-group.open .wp-nav-group-toggle .wp-nav-arrow {
    transform: rotate(180deg);
}

/* Sub menu */
.wp-nav-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.wp-nav-group.open .wp-nav-sub {
    max-height: 600px;
}

.wp-nav-sub .nav-link {
    font-size: 12px;
    padding: 6px 16px 6px 28px;
    color: rgba(255, 255, 255, 0.65);
    border-left: none;
}

.wp-nav-sub .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.wp-nav-sub .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border-left: none;
}

.wp-nav-sub .nav-link i {
    font-size: 8px;
    vertical-align: middle;
}

/* Sub page items */
.wp-nav-sub-page {
    font-size: 11px !important;
    padding-left: 36px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-nav-sub-page:hover {
    color: #fff !important;
}

.wp-nav-sub-page i {
    font-size: 7px !important;
}

/* Sidebar group labels */
.wp-nav-sub-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 16px 2px 20px;
    list-style: none;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Category list in admin panels */
.wp-category-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    cursor: pointer;
}

.wp-category-list label input[type="radio"] {
    accent-color: #2271b1;
}

/* Drag & Drop reorder */
.sortable-ghost {
    background: #e8f0fe !important;
    opacity: 0.6;
}

.sortable-chosen {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drag-handle:hover {
    color: #2271b1 !important;
}

tr[data-id] {
    transition: background 0.15s ease;
}