:root {
    --uaeu-accent: #70b63a;
    --uaeu-accent-hover: #5a9430;
    --uaeu-dark: #1a365d;
    --footer-gradient-from: #70b63a;
    --footer-gradient-to: #5a9430;
}

/* Header: top accent line (same as footer) + logo row (white) + menu row (grey) */
.header-accent {
    position: relative;
    width: 100%;
    height: .5rem;
}
.header-accent::before {
    content: "";
    background-image: linear-gradient(to bottom, var(--footer-gradient-from), var(--footer-gradient-to));
    width: 100%;
    height: .5rem;
    position: absolute;
    top: 0;
    left: 0;
}
.header-logo-row { border-bottom: 1px solid #eee; }
/* Custom hamburger in logo row (not .navbar-toggler so Bootstrap doesn't hide it) */
.header-menu-toggler {
    cursor: pointer;
    line-height: 0;
}
.header-menu-toggler-icon {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    color: #333;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}
.header-logo {
    height: 40px;
    width: auto;
    display: block;
}
@media (min-width: 992px) {
    .header-logo { height: 56px; }
}
.header-nav-row {
    background-color: #e9ecef;
}
.header-nav-row .navbar .nav-link { font-weight: 500; color: #333 !important; }
.header-nav-row .navbar .nav-link:hover { color: var(--uaeu-accent) !important; }
.header-logo-row .nav-link { color: #333 !important; }
.header-logo-row .nav-link:hover { color: var(--uaeu-accent) !important; }
.btn-login-header {
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--uaeu-dark);
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-login-header:hover {
    color: #fff;
    background-color: var(--uaeu-dark);
    border-color: var(--uaeu-dark);
}

.navbar-brand-text { color: var(--uaeu-accent); font-weight: 700; font-size: 1.5rem; }
.dot-accent { background-color: var(--uaeu-accent) !important; }
.badge-rating { background: #fbbf24; color: #1a365d; font-size: 0.7rem; }

/* Hero section: two columns, gradient background, floating card */
.hero-section {
    padding: 2rem 1rem 2.5rem;
}
@media (min-width: 768px) {
    .hero-section { padding: 2.5rem 1.5rem 3rem; }
}
@media (min-width: 992px) {
    .hero-section { padding: 2rem 5rem 3rem; }
}
.hero-two-col .hero-gradient {
    position: relative;
    background: linear-gradient(180deg, #0d5c4a 0%, #35aa8f 35%, #b8860b 85%, #daa520 100%);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}
.hero-two-col .hero-gradient .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 768px) {
    .hero-two-col .hero-gradient .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 992px) {
    .hero-two-col .hero-gradient .container {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}
@media (min-width: 1200px) {
    .hero-two-col .hero-gradient .container {
        padding-top: 0rem;
        padding-bottom: 0rem;
        padding-left: 4rem;
        padding-right: 0rem;
    }
}
.hero-two-col .hero-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
}
@media (min-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}
@media (min-width: 992px) {
    .hero-title { font-size: 2.85rem; }
}
@media (min-width: 1200px) {
    .hero-title { font-size: 3.25rem; }
}
.hero-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 32rem;
}
@media (min-width: 992px) {
    .hero-desc { font-size: 1.25rem; }
}
.btn-hero-cta {
    background: #1a7a64;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-hero-cta:hover {
    background: #0d5c4a;
    color: #fff;
}
.hero-play-btn {
    width: 52px;
    height: 52px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #333;
}
.hero-image {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}
@media (min-width: 768px) {
    .hero-image { max-height: 480px; }
}
@media (min-width: 992px) {
    .hero-image { max-height: 520px; }
}
@media (min-width: 1200px) {
    .hero-image { max-height: 560px; }
}

.section-glance { padding: 4rem 0; }
.section-glance h2 { font-weight: 700; color: #1a365d; margin-bottom: 2rem; }

/* Media Center section: blog with tabs */
.section-media-center {
    padding: 4rem 0;
    background-color: #e9ecef;
}
.media-center-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uaeu-dark);
}
.media-center-tabs .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    transition: color 0.2s, background 0.2s;
}
.media-center-tabs .nav-link:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.06);
}
.media-center-tabs .nav-link.active {
    color: #1e293b;
    background: #bbe699;
}
.btn-media-discover {
    background: var(--uaeu-accent);
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-media-discover:hover {
    background: var(--uaeu-accent-hover);
    color: #fff;
    box-shadow: 0 4px 14px rgba(112, 182, 58, 0.35);
}
.media-center-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.media-center-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.media-center-card-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.media-center-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-center-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.media-center-card-date {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}
.media-center-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-center-card-link {
    color: var(--uaeu-accent);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}
.media-center-card-link:hover {
    color: var(--uaeu-accent-hover);
    text-decoration: underline;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.75rem;
    height: 100%;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.stat-card .icon-wrap { color: var(--uaeu-accent); font-size: 2rem; margin-bottom: 0.75rem; }
.stat-card .label { color: #64748b; font-size: 0.9rem; margin-bottom: 0.25rem; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: #1e293b; }

/* Our Values section */
.section-values {
    padding: 4rem 0;
    background-color: #ffffff;
}
.section-values-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uaeu-dark);
    margin-bottom: 2rem;
}
.values-hero-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.values-hero-image {
    height: 280px;
    background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=800');
    background-size: cover;
    background-position: center;
}
.values-hero-body { padding: 1.5rem; flex: 1; }
.values-hero-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.values-link {
    color: var(--uaeu-accent);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.values-link:hover { color: var(--uaeu-accent-hover); text-decoration: underline; }
.values-card {
    background: #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}
.values-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.values-card-icon {
    color: #495057;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.values-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.values-card-desc {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Online Class: sideways scrollable video cards */
.section-online-class {
    padding: 4rem 0;
}
.online-class-header {
    padding: 0 0.25rem;
}
.online-class-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--uaeu-dark);
}
.online-class-view-more {
    color: var(--uaeu-accent);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.online-class-view-more:hover {
    color: var(--uaeu-accent-hover);
    text-decoration: underline;
}
.online-class-scroll-wrap {
    margin: 0 -1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.online-class-scroll-wrap::-webkit-scrollbar {
    height: 6px;
}
.online-class-scroll-wrap::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}
.online-class-scroll-wrap::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}
.online-class-track {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 1rem 1.25rem;
    min-width: min-content;
}
.online-class-card {
    flex: 0 0 300px;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.online-class-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.online-class-card-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.online-class-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.online-class-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.online-class-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.online-class-teacher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.online-class-teacher-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}
.online-class-teacher-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.3;
}
.online-class-instructor-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}
.online-class-card-link {
    color: var(--uaeu-accent);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
}
.online-class-card-link:hover {
    color: var(--uaeu-accent-hover);
    text-decoration: underline;
}

@media (min-width: 576px) {
    .online-class-card {
        flex: 0 0 320px;
        max-width: 320px;
    }
}

/* Online class list page: cards in grid */
.online-class-list .online-class-card {
    flex: 1 1 auto;
    max-width: none;
    height: 100%;
}

/* Footer accent: sits right above the footer, not inside it */
.footer-accent {
    position: relative;
    width: 100%;
    height: .5rem;
    margin-top: 3rem;
}
.footer-accent::before {
    content: "";
    background-image: linear-gradient(to bottom, var(--footer-gradient-from), var(--footer-gradient-to));
    width: 100%;
    height: .5rem;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer */
.site-footer {
    background-color: #ebebeb;
}
.footer-main { background-color: #f5f5f5; }
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--uaeu-accent);
    margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--uaeu-accent);
    text-decoration: underline;
}
.footer-contact { padding-left: 0; }
@media (min-width: 992px) {
    .footer-contact { padding-left: 1rem; }
}
.tawasul-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(var(--uaeu-accent) 0deg 180deg, #198754 180deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tawasul-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
}
.tawasul-text { font-size: 0.9rem; font-weight: 600; color: #333; }
.footer-phone-link { color: #333; text-decoration: none; font-size: 0.95rem; }
.footer-phone-link:hover { color: var(--uaeu-accent); }
.footer-toll-free .border-secondary { border-color: #adb5bd !important; }
.footer-bottom {
    background-color: #ebebeb;
    border-top: 1px solid #dee2e6;
}
.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #6c757d;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s, border-color 0.2s;
}
.footer-social:hover { color: var(--uaeu-accent); border-color: var(--uaeu-accent); }

/* Auth (Login / Register) page */
.auth-page {
    min-height: 50vh;
    background-color: #f8f9fa;
}
.auth-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.auth-tabs {
    border-bottom: 1px solid #e9ecef;
    gap: 0.25rem;
}
.auth-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    transition: color 0.2s, background 0.2s;
}
.auth-tabs .nav-link:hover {
    color: var(--uaeu-dark);
    background: #e9ecef;
}
.auth-tabs .nav-link.active {
    color: #fff;
    background: var(--uaeu-accent);
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uaeu-dark);
}
.auth-form .form-label {
    font-weight: 500;
    color: #333;
}
.auth-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.auth-form .form-control:focus {
    border-color: var(--uaeu-accent);
    box-shadow: 0 0 0 0.2rem rgba(112, 182, 58, 0.25);
}
.auth-link {
    color: var(--uaeu-accent);
    text-decoration: none;
}
.auth-link:hover {
    color: var(--uaeu-accent-hover);
    text-decoration: underline;
}
.btn-auth {
    background: var(--uaeu-accent);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s;
}
.btn-auth:hover {
    background: var(--uaeu-accent-hover);
    color: #fff;
}

/* Media detail (article) page */
.media-detail-page {
    padding: 3rem 0 4rem;
    background-color: #f8fafc;
}
@media (min-width: 768px) {
    .media-detail-page {
        padding-top: 3.5rem;
    }
}
.media-detail-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2rem;
}
@media (min-width: 768px) {
    .media-detail-article {
        padding: 2.25rem 2.5rem 2.5rem;
    }
}
.media-detail-header {
    margin-bottom: 1.5rem;
}
.media-detail-category {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background-color: #e7f6dd !important;
}
.media-detail-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--uaeu-dark);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .media-detail-title {
        font-size: 2rem;
    }
}
.media-detail-meta {
    color: #64748b;
}
.media-detail-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    background: #f1f5f9;
}
.media-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.media-detail-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1rem;
}
.media-detail-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--uaeu-dark);
}
.media-detail-tags .badge {
    font-size: 0.75rem;
    border-radius: 999px;
}

/* Class detail (online class) page */
.class-detail-page {
    padding: 3rem 0 4rem;
    background-color: #f8fafc;
}
.class-detail-hero {
    display: flex;
}
.class-detail-content-col {
    display: flex;
    align-items: stretch;
}
.class-detail-content-inner {
    padding: 2rem 1.5rem;
    width: 100%;
}
@media (min-width: 992px) {
    .class-detail-content-inner {
        padding: 2.5rem 3rem;
    }
}
.class-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--uaeu-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .class-detail-title {
        font-size: 1.85rem;
    }
}
.class-detail-desc p {
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 0.75rem;
}
.class-detail-seemore:hover {
    text-decoration: underline !important;
    color: var(--uaeu-accent-hover) !important;
}
.class-detail-instructor-photo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
.class-detail-instructor-name {
    font-size: 1rem;
}
.class-detail-instructor-label {
    font-size: 0.85rem;
}
.class-detail-stars {
    color: #cbd5e1;
    font-size: 1.1rem;
}
.class-detail-watch-btn {
    background: var(--uaeu-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}
.class-detail-watch-btn:hover {
    background: var(--uaeu-accent-hover);
    color: #fff;
}
.class-detail-media-col {
    display: flex;
    align-items: stretch;
}
.class-detail-video-thumb-wrap {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.class-detail-video-thumb {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}
.class-detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uaeu-dark);
}
.class-detail-materials-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.class-detail-material-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.class-detail-material-item:last-child {
    border-bottom: none;
}
.class-detail-material-link:hover {
    color: var(--uaeu-accent) !important;
}
.class-detail-material-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.class-detail-material-title {
    font-size: 1rem;
    line-height: 1.4;
}
.class-detail-similar .online-class-card {
    flex: none;
    max-width: 100%;
}

/* Class detail: full-width YouTube embed (when "Tonton Sekarang" is clicked) */
.class-detail-hero-video {
    width: 100%;
}
.class-detail-video-embed-wrap {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: #0d0d0d;
}
.class-detail-video-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}
.class-detail-video-close:hover {
    background: #fff !important;
    color: #333;
}
.class-detail-video-embed-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.class-detail-video-embed-inner iframe {
    border: none;
    border-radius: 8px;
}

/* Registration (Multi-step wizard) page */
.registration-page {
    background-color: #f8fafc;
}
.registration-card {
    border-radius: 12px;
}
.registration-card-body {
    background-color: #ffffff;
}
.registration-progress-steps span {
    flex: 1;
    text-align: center;
}
.reg-step {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.reg-step.d-none {
    opacity: 0;
    transform: translateY(6px);
}
.reg-step:not(.d-none) {
    opacity: 1;
    transform: translateY(0);
}
.registration-summary {
    max-height: 260px;
    overflow-y: auto;
}
.registration-summary table th {
    width: 40%;
    font-weight: 500;
}
.registration-summary table td {
    font-size: 0.9rem;
}
