/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #8C6239;          /* Warm Earthy Brown */
    --primary-light: #A67C52;    /* Medium Soft Brown */
    --primary-dark: #5C3E21;     /* Rich Deep Brown */
    --secondary: #D4AF37;        /* Soft Metallic Gold */
    --secondary-light: #F3E5AB;  /* Creamy Muted Gold */
    --bg-primary: #FDFBF7;       /* Very Soft Warm Sand/Cream */
    --bg-secondary: #F5EFE6;     /* Muted Soft Beige */
    --bg-white: #FFFFFF;
    --text-main: #2C1E11;        /* Deep Charcoal Brown */
    --text-muted: #6E5A44;       /* Warm Grayish Brown */
    
    /* Layout & Styling */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow-soft: 0 10px 30px rgba(140, 98, 57, 0.06);
    --box-shadow-medium: 0 15px 40px rgba(92, 62, 33, 0.12);
    --box-shadow-glass: 0 8px 32px 0 rgba(140, 98, 57, 0.08);
    --border-glass: 1px solid rgba(212, 175, 55, 0.15);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-arabic: 'Amiri', serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Section Header Shared Styles */
.section-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    line-height: 1.3;
}

.section-description {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Icons */
.gold-icon {
    color: var(--secondary);
}

/* ==========================================================================
   BUTTON STYLE SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(140, 98, 57, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 62, 33, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: rgba(253, 251, 247, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary);
    color: var(--bg-primary);
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(140, 98, 57, 0.2);
}

.nav-btn:hover {
    background-color: var(--primary-dark);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 120px;
    background: radial-gradient(circle at 10% 20%, rgba(244, 239, 230, 0.5) 0%, rgba(253, 251, 247, 1) 90%);
    overflow: hidden;
}

/* Islamic Geometric Pattern Overlay (created dynamically in background CSS) */
.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0 L45 15 L30 30 L15 15 Z M30 30 L45 45 L30 60 L15 45 Z M0 30 L15 15 L30 30 L15 45 Z M30 30 L45 15 L60 30 L45 45 Z" fill="%238C6239" fill-opacity="0.3" stroke="%238C6239" stroke-width="1"/></svg>');
    pointer-events: none;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(212, 175, 55, 0.25);
    z-index: -1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-main-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(140, 98, 57, 0.15));
}

/* Badges floating on Hero */
.hero-card-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border: var(--border-glass);
    box-shadow: var(--box-shadow-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-card-badge i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.hero-card-badge h4 {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.hero-card-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-1 {
    top: 15%;
    left: -10%;
}

.badge-2 {
    bottom: 15%;
    right: -10%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-divider .shape-fill {
    fill: var(--bg-secondary);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    background-color: var(--bg-secondary);
    padding: 60px 0;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(140, 98, 57, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(140, 98, 57, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: var(--primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.about-image-side {
    position: relative;
}

.about-card-decorative {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

.about-img-box {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    z-index: 2;
    background-color: var(--bg-white);
    padding: 30px;
}

.about-main-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.about-img-box:hover .about-main-img {
    transform: scale(1.03);
}

.about-text-side {
    padding: 20px 0;
}

.about-paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--secondary-light);
    background: var(--primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   APP SYSTEM LAYOUT (SIDEBAR + MAIN VIEWS)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

/* Sidebar Styles */
.sidebar {
    width: 290px;
    height: 100%;
    background-color: var(--bg-primary);
    border-right: 1px solid rgba(140, 98, 57, 0.12);
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 100;
}

/* Premium styled slim scrollbars */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(140, 98, 57, 0.08);
    border-radius: 2px;
}
.main-content::-webkit-scrollbar {
    width: 8px;
}
.main-content::-webkit-scrollbar-track {
    background: rgba(140, 98, 57, 0.02);
}
.main-content::-webkit-scrollbar-thumb {
    background: rgba(140, 98, 57, 0.15);
    border-radius: 4px;
}
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 98, 57, 0.25);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
}

.sidebar-logo img {
    width: 38px;
    height: 38px;
}

.sidebar-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: auto; /* Push footer down */
}

.sidebar-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 12px 0 5px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link i {
    font-size: 1rem;
    color: var(--primary);
    width: 18px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-link:hover {
    background-color: rgba(140, 98, 57, 0.05);
    color: var(--primary-dark);
}

.sidebar-link.active {
    background-color: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(140, 98, 57, 0.15);
}

.sidebar-link.active i {
    color: var(--bg-primary);
}

.sidebar-daftar-btn {
    margin-top: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    font-size: 0.9rem;
}

.sidebar-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(140, 98, 57, 0.08);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    position: relative;
    background-color: var(--bg-secondary);
}

.view-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    flex-grow: 1;
}

.view-pane.active {
    display: block;
    opacity: 1;
}

/* Hide original header because sidebar replaces it */
.main-header {
    display: none !important;
}

/* Mobile Top Bar */
.mobile-header {
    display: none;
    height: 65px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: rgba(140, 98, 57, 0.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 30, 17, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* Back Button for Program Pages */
.back-home-btn {
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--bg-white);
}

/* Program Page View Sections */
.program-view-section {
    padding: 30px 50px 80px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - 350px);
}

.program-view-header {
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.08);
    padding-bottom: 25px;
}

.program-view-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--secondary-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.program-view-badge.badge-gold {
    background-color: rgba(140, 98, 57, 0.1);
    color: var(--primary);
}

.program-view-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.program-view-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.pane-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.pane-details-col h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.pane-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pane-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pane-list i {
    margin-top: 3px;
    font-size: 1rem;
}

.pane-meta-box {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 25px;
    border: 1px solid rgba(140, 98, 57, 0.08);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow-soft);
}

.pane-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
    font-size: 0.9rem;
}

.pane-meta-item:last-child {
    border-bottom: none;
}

.pane-meta-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.pane-meta-val {
    color: var(--text-muted);
    text-align: right;
    max-width: 60%;
}

.pane-meta-val.highlight-val {
    font-weight: 700;
    color: var(--primary);
}

/* Program Teaser Grid in Home view */
.programs-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.programs-section .grid-3 {
    gap: 30px;
    margin-top: 40px;
}

.tab-btn {
    background: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.08);
    border-radius: var(--border-radius-md);
    padding: 30px 25px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--box-shadow-soft);
    width: 100%;
}

.tab-btn-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.tab-btn-subtitle {
    font-size: 0.8rem;
    color: var(--secondary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--box-shadow-medium);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
    padding: 0 40px;
}

.testimonial-slider {
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.25);
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.5;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: left;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(140, 98, 57, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ==========================================================================
   REGISTRATION & CONTACT SECTION
   ========================================================================== */
.register-section {
    padding: 120px 0;
    background-color: var(--bg-secondary);
}

.register-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.register-info .section-title {
    margin-bottom: 25px;
}

.register-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(140, 98, 57, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Glassmorphism card for form */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    box-shadow: var(--box-shadow-glass);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.glass-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(110, 90, 68, 0.2);
    background-color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.15);
    background-color: var(--bg-white);
}

.success-alert {
    display: flex;
    gap: 15px;
    background-color: rgba(46, 117, 89, 0.1);
    border: 1px solid rgba(46, 117, 89, 0.25);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-top: 20px;
    color: #1a4d36;
}

.success-alert i {
    font-size: 1.5rem;
    color: #2e7559;
}

.success-alert h4 {
    margin-bottom: 5px;
}

.success-alert p {
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--bg-secondary);
    padding: 80px 0 20px;
    border-top: 3px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand-col .logo-wrapper {
    margin-bottom: 20px;
}

.footer-brand-col .logo-text {
    color: var(--bg-primary);
}

.footer-brand-desc {
    color: rgba(245, 239, 230, 0.7);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links-col h4 {
    font-size: 1.1rem;
    color: var(--bg-primary);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: rgba(245, 239, 230, 0.7);
}

.footer-links-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(245, 239, 230, 0.5);
}

/* ==========================================================================
   MODAL DIALOG (DYNAMIC CONTENT)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 30, 17, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--box-shadow-medium);
    border: var(--border-glass);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 40px;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--primary-dark);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--primary);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

/* Modal Content Layout */
.modal-program-header {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.1);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.modal-program-icon {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.modal-program-header-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.modal-program-header-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary);
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-column h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.modal-column p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.curriculum-list i {
    color: var(--primary);
}

.modal-meta-box {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid rgba(140, 98, 57, 0.05);
}

.modal-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
    font-size: 0.9rem;
}

.modal-meta-item:last-child {
    border-bottom: none;
}

.modal-meta-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.modal-meta-val {
    color: var(--text-muted);
}

.modal-action-btn {
    margin-top: 30px;
}

/* Dauroh Dashboard Cards */
.dauroh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.dauroh-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.1);
    border-radius: var(--border-radius-md);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.dauroh-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--secondary);
}

.dauroh-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(140, 98, 57, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.dauroh-card:hover .dauroh-card-icon {
    background-color: var(--primary);
    color: var(--bg-primary);
}

.dauroh-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.dauroh-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* Modal Overlay and Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 30, 17, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 35px 30px;
    position: relative;
    box-shadow: var(--box-shadow-medium);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.modal-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(140, 98, 57, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 0;
}

.modal-body {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.modal-alert-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    color: var(--primary-dark);
    padding: 10px 0;
}

.modal-alert-success i {
    font-size: 2.8rem;
    color: var(--secondary);
}

/* Admin Panel & Table Styles */
.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
}

.admin-tab-btn {
    border-color: rgba(140, 98, 57, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    background-color: var(--bg-white);
}

.admin-tab-btn.active {
    background-color: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
}

.admin-table th, .admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
}

.admin-table tbody tr:hover {
    background-color: rgba(140, 98, 57, 0.03);
}

.admin-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}

.admin-badge-ubuur {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-light);
}

.admin-badge-guru {
    background-color: rgba(140, 98, 57, 0.1);
    color: var(--primary);
}

.admin-badge-takrim {
    background-color: rgba(75, 181, 67, 0.1);
    color: #2e7d32;
}

.admin-badge-lomba {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.admin-table-select {
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.15);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    border-left-width: 4px;
}

.admin-table-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(140, 98, 57, 0.1);
}

.admin-select-ubuur {
    border-left-color: var(--secondary);
    background-color: rgba(212, 175, 55, 0.05);
}

.admin-select-guru {
    border-left-color: var(--primary);
    background-color: rgba(140, 98, 57, 0.05);
}

.admin-select-takrim {
    border-left-color: #2e7d32;
    background-color: rgba(75, 181, 67, 0.05);
}

.admin-select-lomba {
    border-left-color: #1976d2;
    background-color: rgba(33, 150, 243, 0.05);
}

.btn-danger-sm {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-danger-sm:hover {
    background-color: #c62828;
    color: var(--bg-white);
}

/* Teacher Profile Cards */
.teacher-profile-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--box-shadow-soft);
    min-width: 250px;
    transition: var(--transition);
}

.teacher-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--secondary);
}

.teacher-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(140, 98, 57, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    border: 1px solid rgba(140, 98, 57, 0.15);
}

.teacher-profile-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.teacher-profile-info p {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        height: 100%;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        padding-top: 65px;
        height: calc(100vh - 65px);
    }
    
    .program-view-section {
        padding: 20px 15px 40px;
    }
    
    .program-view-title {
        font-size: 2.1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-side {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pane-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dauroh-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .register-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .badge-1 {
        left: 0;
    }
    
    .badge-2 {
        right: 0;
    }
    
    .programs-section .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .dauroh-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Lajnah Folder Styles */
.lajnah-folders-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.folder-tabs-scroll {
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 98, 57, 0.2) transparent;
}

.folder-tabs-scroll::-webkit-scrollbar {
    height: 4px;
}

.folder-tabs-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(140, 98, 57, 0.2);
    border-radius: 4px;
}

.folder-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 3px solid var(--primary-light);
    padding-left: 10px;
}

.folder-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(140, 98, 57, 0.15);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -3px; /* overlap border */
    z-index: 1;
}

.folder-tab:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

.folder-tab.active {
    background-color: var(--primary-light);
    color: var(--bg-primary);
    border-color: var(--primary-light);
    z-index: 2;
    box-shadow: 0 -4px 12px rgba(140, 98, 57, 0.1);
}

.folder-tab.active .folder-icon {
    color: var(--secondary-light);
}

.folder-tab .folder-icon {
    font-size: 1.15rem;
    color: var(--primary);
    transition: var(--transition);
}

.folder-content-sheet {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.15);
    border-top: none;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    padding: 30px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    box-shadow: var(--box-shadow-soft);
}

.folder-pane {
    display: none;
    height: 100%;
}

.folder-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.folder-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 100%;
}

@media (max-width: 768px) {
    .folder-columns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.folder-column {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(140, 98, 57, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 2px 8px rgba(140, 98, 57, 0.02);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.08);
    margin-bottom: 15px;
}

.column-lulus .column-header {
    color: #2e7d32; /* Rich Green */
}

.column-lulus .column-header i {
    color: #4caf50;
}

.column-tidak-lulus .column-header {
    color: #c62828; /* Rich Red */
}

.column-tidak-lulus .column-header i {
    color: #f44336;
}

.badge-count {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.count-lulus {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.count-tidak-lulus {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.names-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.names-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.05);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(140, 98, 57, 0.01);
    transition: var(--transition);
}

.names-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(140, 98, 57, 0.05);
    border-color: rgba(140, 98, 57, 0.15);
}

.names-list li i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Lajnah Count Display and Drive Button */
.lajnah-count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    flex: 1;
    text-align: center;
}

.lajnah-count-display .count-number {
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
    transition: var(--transition);
}

.column-lulus .count-number {
    color: #2e7d32;
    text-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
}

.column-tidak-lulus .count-number {
    color: #c62828;
    text-shadow: 0 4px 15px rgba(198, 40, 40, 0.15);
}

.lajnah-count-display .count-unit {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lajnah-drive-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.lajnah-drive-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background-color: #25a15a; /* Google Drive Green */
    color: #ffffff !important;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 161, 90, 0.25);
    border: 1px solid rgba(37, 161, 90, 0.2);
    cursor: pointer;
}

.lajnah-drive-btn:hover {
    background-color: #1e874b;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 161, 90, 0.35);
    border-color: rgba(30, 135, 75, 0.2);
    color: #ffffff !important;
}

.lajnah-drive-btn i {
    font-size: 1.35rem;
}

/* Lajnah Summary Card overrides */
.folder-column.lajnah-summary-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.12);
    padding: 16px 20px;
    box-shadow: var(--box-shadow-soft);
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.folder-column.lajnah-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}
.folder-column.lajnah-summary-card.column-lulus {
    border-left: 5px solid #2e7d32;
}
.folder-column.lajnah-summary-card.column-lulus.active {
    background-color: rgba(46, 125, 50, 0.05);
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.folder-column.lajnah-summary-card.column-tidak-lulus {
    border-left: 5px solid #c62828;
}
.folder-column.lajnah-summary-card.column-tidak-lulus.active {
    background-color: rgba(198, 40, 40, 0.05);
    border-color: rgba(198, 40, 40, 0.4);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.lajnah-summary-header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
}
.lajnah-summary-header i {
    font-size: 1.35rem;
}
.lajnah-summary-header span:first-of-type {
    font-family: var(--font-body);
    font-weight: 700;
}
.lajnah-summary-header .count-badge {
    margin-left: auto;
    font-family: var(--font-body);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
}
.column-lulus .count-badge {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}
.column-tidak-lulus .count-badge {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
}

/* Lajnah Table Styling */
.lajnah-table-wrapper {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--box-shadow-soft);
}
.lajnah-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.08);
}
.lajnah-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
}
.lajnah-table th {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.12);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.lajnah-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.06);
    vertical-align: middle;
    font-size: 0.82rem;
}
.lajnah-table tbody tr:hover {
    background-color: rgba(140, 98, 57, 0.03);
}
.lajnah-table tbody tr:last-child td {
    border-bottom: none;
}
.student-name-cell {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-dark);
}

/* Status Select Inputs inside Table */
.lajnah-status-select {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 110px;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C1E11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 20px;
}
.status-select-lulus {
    background-color: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border-color: rgba(76, 175, 80, 0.2);
}
.status-select-lulus:focus, .status-select-lulus:hover {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.status-select-tidak-lulus {
    background-color: rgba(244, 67, 54, 0.12);
    color: #c62828;
    border-color: rgba(244, 67, 54, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-tidak-lulus:focus, .status-select-tidak-lulus:hover {
    background-color: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

/* Certificate Download Buttons */
.lajnah-cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary);
    color: var(--bg-primary) !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(140, 98, 57, 0.15);
    text-decoration: none;
}
.lajnah-cert-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(92, 62, 33, 0.25);
}
.lajnah-no-cert {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Date Picker Input styling inside Table */
.lajnah-date-input {
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.2);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    width: 100%;
    max-width: 120px;
    box-sizing: border-box;
}

.lajnah-date-input:focus, .lajnah-date-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

/* Examiner Dropdown select inside Table */
.lajnah-examiner-select {
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.2);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 150px;
    display: inline-block;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C6239' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 20px;
}

.lajnah-examiner-select:focus, .lajnah-examiner-select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

/* ==========================================================================
   DAUROH GURU TABBED LAYOUT & ATTENDANCE STYLES
   ========================================================================== */
.dauroh-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 3px solid var(--primary-light);
    padding-left: 10px;
    margin-bottom: 25px;
}

.dauroh-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(140, 98, 57, 0.15);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -3px;
    z-index: 1;
}

.dauroh-tab:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

.dauroh-tab.active {
    background-color: var(--primary-light);
    color: var(--bg-primary);
    border-color: var(--primary-light);
    z-index: 2;
    box-shadow: 0 -4px 12px rgba(140, 98, 57, 0.1);
}

.dauroh-tab.active i {
    color: var(--secondary-light);
}

.dauroh-pane {
    display: none;
}

.dauroh-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Meeting Bar 1 - 10 */
.dauroh-meeting-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 98, 57, 0.2) transparent;
}

.dauroh-meeting-tabs::-webkit-scrollbar {
    height: 4px;
}

.dauroh-meeting-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(140, 98, 57, 0.2);
    border-radius: 4px;
}

.meeting-btn {
    padding: 8px 16px;
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.2);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.meeting-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.meeting-btn.active {
    background-color: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(140, 98, 57, 0.15);
}

/* Three Columns Grid side-by-side */
.dauroh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dauroh-stat-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.12);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--box-shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.dauroh-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

/* Date picker below meeting navigation */
.dauroh-date-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 10px 16px;
    background-color: rgba(140, 98, 57, 0.04);
    border-radius: var(--border-radius-sm);
    border: 1px dashed rgba(140, 98, 57, 0.15);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.dauroh-date-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.85rem;
}

/* Filterable stats cards styling */
.dauroh-stat-card.filterable {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.dauroh-stat-card.filterable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition);
}

.dauroh-stat-card.filterable.active {
    background-color: rgba(140, 98, 57, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.15);
    transform: translateY(-2px);
}

.dauroh-stat-card.filterable.active::after {
    background-color: var(--primary);
}

/* Specific colors for active filter states */
.dauroh-stat-card.filterable.dauroh-stat-hadir.active {
    background-color: rgba(46, 125, 50, 0.05);
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.dauroh-stat-card.filterable.dauroh-stat-hadir.active::after {
    background-color: #2e7d32;
}

.dauroh-stat-card.filterable.dauroh-stat-tidak-hadir.active {
    background-color: rgba(198, 40, 40, 0.05);
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.dauroh-stat-card.filterable.dauroh-stat-tidak-hadir.active::after {
    background-color: #c62828;
}

/* Search wrapper styling */
.dauroh-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.dauroh-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.2);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.dauroh-search-input:focus, .dauroh-search-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

.dauroh-search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Summary Badge status styling */
.dauroh-badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}
.dauroh-badge-h {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}
.dauroh-badge-th {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}
.dauroh-badge-i {
    background-color: rgba(239, 108, 0, 0.1);
    color: #ef6c00;
    border: 1px solid rgba(239, 108, 0, 0.2);
}
.dauroh-badge-s {
    background-color: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border: 1px solid rgba(21, 101, 192, 0.2);
}
.dauroh-badge-empty {
    color: var(--text-muted);
    font-weight: 500;
}

.dauroh-stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dauroh-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.dauroh-stat-percent .dauroh-stat-value {
    color: var(--primary);
}

.dauroh-stat-hadir .dauroh-stat-value {
    color: #2e7d32;
}

.dauroh-stat-tidak-hadir .dauroh-stat-value {
    color: #c62828;
}

/* Attendance Table styling for Dauroh */
.dauroh-table-wrapper {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--box-shadow-soft);
    margin-top: 25px;
}

.dauroh-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.08);
}

.dauroh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dauroh-table th {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.12);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dauroh-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.06);
    vertical-align: middle;
    font-size: 0.82rem;
}

.dauroh-table tbody tr:hover {
    background-color: rgba(140, 98, 57, 0.03);
}

.dauroh-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status select dropdown formatting */
.dauroh-status-select {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 130px;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C1E11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 20px;
}

.status-select-hadir {
    background-color: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border-color: rgba(76, 175, 80, 0.2);
}
.status-select-hadir:hover, .status-select-hadir:focus {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.status-select-tidak-hadir {
    background-color: rgba(244, 67, 54, 0.12);
    color: #c62828;
    border-color: rgba(244, 67, 54, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-tidak-hadir:hover, .status-select-tidak-hadir:focus {
    background-color: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.status-select-izin {
    background-color: rgba(255, 152, 0, 0.12);
    color: #ef6c00;
    border-color: rgba(255, 152, 0, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ef6c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-izin:hover, .status-select-izin:focus {
    background-color: rgba(255, 152, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.status-select-sakit {
    background-color: rgba(33, 150, 243, 0.12);
    color: #1565c0;
    border-color: rgba(33, 150, 243, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-sakit:hover, .status-select-sakit:focus {
    background-color: rgba(33, 150, 243, 0.2);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

/* Responsive grid for stats */
@media (max-width: 768px) {
    .dauroh-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Custom Controls Bar for Dauroh Guru T.A */
.dauroh-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: rgba(140, 98, 57, 0.04);
    border: 1px solid rgba(140, 98, 57, 0.08);
    border-radius: var(--border-radius-md);
    padding: 14px 24px;
    margin-top: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dauroh-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.dauroh-instruction .info-icon {
    color: var(--primary);
    font-size: 1rem;
}

.dauroh-ta-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dauroh-ta-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dauroh-ta-select {
    padding: 8px 36px 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.2);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C6239' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 150px;
}

.dauroh-ta-select:hover, .dauroh-ta-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

@media (max-width: 768px) {
    .dauroh-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }
    
    .dauroh-ta-selector-wrapper {
        justify-content: space-between;
    }
    
    .dauroh-ta-select {
        flex: 1;
        max-width: 200px;
    }
}

/* Haflah Takrim Custom Styling */
.takrim-featured-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.takrim-featured-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(140, 98, 57, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
}

.takrim-featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.takrim-square-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f7f5f2;
}

.takrim-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.takrim-featured-card:hover .takrim-featured-img {
    transform: scale(1.05);
}

.takrim-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(140, 98, 57, 0.8), rgba(0,0,0,0.1));
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.takrim-featured-card:hover .takrim-card-overlay {
    opacity: 1;
}

.view-profile-btn {
    color: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.takrim-profile-meta {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.takrim-meta-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.takrim-meta-sub {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.takrim-meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile Detail Layout */
.profile-detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-main-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(140, 98, 57, 0.1);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.profile-large-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f5f2;
}

.profile-large-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-body {
    padding: 25px;
    text-align: center;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(140, 98, 57, 0.08);
    padding-top: 20px;
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-stat-item .stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.quick-stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.profile-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-bio-section h3, .profile-gallery-section h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.08);
    padding-bottom: 10px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(140, 98, 57, 0.02);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid rgba(140, 98, 57, 0.1);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(140, 98, 57, 0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    transition: opacity 0.3s ease;
    padding: 10px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 1.4rem;
}

.gallery-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 75vh;
    border-radius: 4px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .profile-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-main-card {
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ==========================================================================
   ADMIN EXCEL IMPORT/EXPORT STYLES
   ========================================================================== */
.excel-management-container {
    border-color: rgba(140, 98, 57, 0.25) !important;
}

.excel-management-container:hover {
    border-color: var(--primary) !important;
    background: rgba(140, 98, 57, 0.05) !important;
}

#settings-lajnah-excel-status.status-empty {
    background-color: rgba(140, 98, 57, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(140, 98, 57, 0.15);
}

#settings-lajnah-excel-status.status-success {
    background-color: rgba(33, 115, 70, 0.1);
    color: #217346;
    border: 1px solid rgba(33, 115, 70, 0.2);
}

#settings-lajnah-excel-status.status-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}
.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10000;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-light);
}

.lightbox-content-wrapper {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    height: 85vh;
}

/* Database Guru Tabs */
.guru-ta-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.15);
}

.guru-ta-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid rgba(140, 98, 57, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guru-ta-pill:hover {
    background-color: var(--bg-light);
    border-color: rgba(140, 98, 57, 0.4);
}

.guru-ta-pill.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(33, 115, 70, 0.3);
}

/* ==========================================================================
   HERO SPLIT LAYOUT — Top: Branding | Bottom: Slider
   ========================================================================== */

.hero-split-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Fill the full viewport height */
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
}

/* ---- TOP HALF: KOMISI QURAN Branding ---- */
.hero-top-brand {
    flex: 0 0 33.333%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Rich dark gradient: deep brown → charcoal, with warm undertone */
    background: linear-gradient(155deg,
        #1a0f05 0%,
        #2C1E11 35%,
        #3d2710 65%,
        #1a0f05 100%
    );
}

/* Radial glow decoration in center */
.hero-top-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(212,175,55,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative corner geometric lines */
.hero-top-brand::before,
.hero-top-brand::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 4px;
    pointer-events: none;
}

.hero-top-brand::before {
    inset: 18px 24px;
}

.hero-top-brand::after {
    inset: 28px 38px;
    border-color: rgba(212, 175, 55, 0.08);
}

/* Brand content block */
.hero-brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    animation: brandReveal 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes brandReveal {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-brand-eyebrow {
    font-family: var(--font-arabic);
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: rgba(212, 175, 55, 0.80);
    letter-spacing: 1px;
    line-height: 1.6;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.hero-brand-name {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.0;
    letter-spacing: 0.08em;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.6),
        0 0 40px rgba(212,175,55,0.18);
}

.hero-brand-rule {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.hero-brand-school {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.6vw, 1.05rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ---- BOTTOM HALF: Image Slider ---- */
.hero-bottom-slider {
    flex: 0 0 66.667%;
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Slides live inside .hero-bottom-slider */
.hero-bottom-slider .hslider-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hslide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hslide.active {
    opacity: 1;
}

/* Dot Indicators – bottom center of the slider */
.hslider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.hslider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.35s ease;
    backdrop-filter: blur(2px);
}

.hslider-dot.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    transform: scale(1.32);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hslider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.75);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-split-section {
        min-height: 480px;
    }

    .hero-brand-name {
        font-size: 2.4rem;
        letter-spacing: 0.05em;
    }

    .hero-brand-school {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}

/* Sidebar Dropdown Menu */
.sidebar-dropdown, .sidebar-sub-dropdown {
    display: flex;
    flex-direction: column;
}

.sidebar-dropdown-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin-bottom: 5px;
    gap: 14px;
}

.sidebar-dropdown-btn:hover {
    color: var(--primary);
    background-color: rgba(140, 98, 57, 0.05);
}

.sidebar-dropdown-btn i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.8rem !important;
    transition: transform 0.3s;
}

.sidebar-dropdown.open > .sidebar-dropdown-btn .dropdown-arrow,
.sidebar-sub-dropdown.open > .sidebar-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-content {
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-dropdown.open > .sidebar-dropdown-content,
.sidebar-sub-dropdown.open > .sidebar-dropdown-content {
    display: flex;
}

/* Specific styling for nested levels */
.sidebar-dropdown > .sidebar-dropdown-content {
    padding-left: 20px;
}

.sidebar-sub-dropdown > .sidebar-dropdown-content {
    padding-left: 20px;
}

.sidebar-dropdown-btn.sub-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    gap: 10px;
}

.sidebar-dropdown-content .sidebar-sub-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 14px;
    margin-bottom: 2px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
}

.sidebar-dropdown-content .sidebar-sub-link:hover,
.sidebar-dropdown-content .sidebar-sub-link.active {
    color: var(--primary);
    background-color: rgba(140, 98, 57, 0.05);
}

/* Absensi & Mutabaah Table Styling */
.absensi-table th {
    padding: 8px 6px !important;
    font-size: 0.85rem !important;
}
.absensi-table td {
    padding: 8px 6px !important;
}
.absensi-table .form-control {
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
    height: auto !important;
}
/* .halaqoh-bg-1 removed */
/* .halaqoh-bg-2 removed */
/* .halaqoh-bg-3 removed */
/* .halaqoh-bg-4 removed */
/* .halaqoh-bg-5 removed */

/* Override borders specifically for halaqoh colored columns to match their theme slightly */
/* .absensi-table td.halaqoh-bg-1 { border-color: rgba(150, 100, 50, 0.15) !important; } */
/* .absensi-table td.halaqoh-bg-2 { border-color: rgba(135, 90, 55, 0.2) !important; } */
/* .absensi-table td.halaqoh-bg-3 { border-color: rgba(160, 110, 60, 0.25) !important; } */
/* .absensi-table td.halaqoh-bg-4 { border-color: rgba(145, 95, 50, 0.25) !important; } */
/* .absensi-table td.halaqoh-bg-5 { border-color: rgba(170, 115, 65, 0.2) !important; } */

/* Clear borders for Absensi & Mutabaah Table */
.absensi-table {
    border: 1px solid #cba886;
}
.absensi-table th, .absensi-table td {
    border: 1px solid #dcbfa3 !important;
}
.absensi-table thead tr:first-child th {
    background-color: #bb926a !important;
    color: #ffffff !important;
    border: 1px solid #a87e55 !important;
}
.absensi-table thead tr:first-child th i {
    color: #ffffff !important;
}
.absensi-table thead tr:first-child th span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.absensi-table thead tr:nth-child(2) th {
    background-color: #f8f4f0 !important;
    color: var(--text-main) !important;
}

.absensi-table select.form-control {
    padding: 2px 0px 2px 2px !important;
    text-indent: 0 !important;
}
