/**
 * Compact UI Overrides
 * Makes all public pages more compact and information-dense
 * without changing the visual identity or design language.
 * Created: May 2026
 *
 * Strategy: reduce padding, margins, font-sizes, heights by ~15-25%
 * while preserving colors, shadows, border-radius, typography weight.
 */

/* ========================================
   1. HEADER — Compact (5.2rem → 4rem)
   ======================================== */
body {
    padding-top: 4rem !important;
}

.header-inner {
    height: 4rem !important;
}

header .logo img,
header#header .logo img {
    height: 46px !important;
}

/* Nav links tighter */
@media (min-width: 992px) {
    nav a,
    header#header nav a {
        padding: 0.45rem 0.85rem !important;
    }
    nav,
    header#header nav {
        gap: 0.6rem !important;
    }
}

/* Header buttons smaller */
.header-inner .btn,
header#header .btn {
    padding: 0.4rem 1rem !important;
    min-width: 85px !important;
    border-radius: 10px !important;
}

/* Hamburger smaller */
.hamburger {
    width: 42px !important;
    height: 42px !important;
}

/* Sidebar compact */
.sidebar-header {
    padding: 1rem 1.2rem !important;
}
.sidebar-logo img {
    height: 38px !important;
}
.sidebar-nav a {
    padding: 0.7rem 1.2rem !important;
}


/* ========================================
   2. HERO SECTIONS — All pages
   ======================================== */
.hero,
.courses-hero,
.about-hero,
.blog-hero,
.contact-hero,
.page-header {
    padding: 1.2rem 0 1.5rem !important;
    min-height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0 0 2rem 2rem !important;
}

.hero h1,
.courses-hero h1,
.about-hero h1,
.blog-hero .hero-content h1,
.contact-hero h1 {
    margin-bottom: 0.5rem !important;
}

.hero .tagline,
.courses-hero .tagline,
.about-hero .tagline,
.hero-content p {
    margin-bottom: 0.8rem !important;
}

.blog-hero .hero-content h1 {
    margin-bottom: 0.8rem !important;
}

.blog-hero .hero-content p {
    margin-bottom: 1rem !important;
}

.hero-actions {
    margin-top: 1.2rem !important;
    gap: 0.6rem !important;
}

/* Stats in hero */
.stats {
    margin-top: 1.8rem !important;
    gap: 1.2rem !important;
}
.stat {
    padding: 0.7rem 1.1rem !important;
    min-width: 90px !important;
}
.stat-number {
}


/* ========================================
   3. SECTIONS — Global
   ======================================== */
.section {
    padding: 3rem 0 !important;
}

.bg-section {
    padding: 2rem !important;
    margin-bottom: 1.8rem !important;
}

.section-title {
    margin-bottom: 0.8rem !important;
}

.courses-section .section-title {
    margin-bottom: 1rem !important;
}

.section-desc {
    margin-bottom: 1.5rem !important;
    margin-top: 0.8rem !important;
}

#comments-section .section-title {
    margin-bottom: 0.8rem !important;
}

#comments-section .section-desc {
    margin-top: 0.8rem !important;
}

.divider {
    height: 2.5rem !important;
}


/* ========================================
   4. BUTTONS — Globally smaller
   ======================================== */
.btn {
    padding: 0.45rem 1.3rem !important;
    min-height: 38px !important;
}


/* ========================================
   5. COURSE GRID — 4 columns
   ======================================== */
.course-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.4rem !important;
}

@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ========================================
   6. COURSE CARDS — Compact
   ======================================== */
.course-grid {
    align-items: stretch !important;
}

.course-card {
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
}

.course-card .course-image,
.course-image {
    height: 160px !important;
}

.course-card .course-image {
    border-radius: 18px 18px 0 0 !important;
}

.course-body {
    padding: 1rem !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.course-body h3 {
    min-height: auto !important;
    margin-bottom: 0.5rem !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.course-card .course-description,
.course-item .course-description {
    min-height: auto !important;
    margin-bottom: 0.5rem !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.course-body .course-excerpt {
    -webkit-line-clamp: 2 !important;
    margin-bottom: 0.6rem !important;
}

.course-meta {
    gap: 0.4rem !important;
    padding: 0.6rem 0 !important;
    margin: 0.5rem 0 !important;
}

.course-meta span {
    padding: 0.2rem 0.5rem !important;
}

.course-footer {
    padding: 0.6rem 0 0 !important;
    margin-top: auto !important;
    min-height: auto !important;
}

.course-price {
    min-height: auto !important;
}

.course-price .current-price {
}

.course-price .original-price {
}

.course-card .btn-primary {
    padding: 0.65rem 1.2rem !important;
    min-width: 110px !important;
    height: 44px !important;
    border-radius: 10px !important;
}


/* ========================================
   7. CLASS TYPE CARDS (Homepage)
   ======================================== */
.class-types {
    gap: 0.8rem !important;
    width: 100% !important;
    margin: 1rem 0 !important;
}

.class-type-card {
    padding: 0.9rem 1.1rem !important;
}

.class-type-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin-bottom: 0 !important;
}

.class-type-title {
    margin-bottom: 0.15rem !important;
}

.class-type-desc {
    margin-bottom: 0 !important;
}

.class-type-features li {
    display: none !important;
}


/* ========================================
   8. INSTRUCTORS PAGE — Compact
   ======================================== */
.instructors-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 1.4rem !important;
}

.instructor-image {
    height: 150px !important;
}

.instructor-body {
    padding: 1.1rem !important;
}

.instructor-body h3 {
    margin-bottom: 0.4rem !important;
}

.instructor-title {
    margin-bottom: 0.8rem !important;
}

.btn-resume {
    padding: 0.4rem 1rem !important;
}

/* Tabs compact */
.tabs {
    gap: 0.7rem !important;
    margin: 2rem 0 1.8rem !important;
}

.tab {
    padding: 0.6rem 1.5rem !important;
}


/* ========================================
   9. ABOUT US PAGE — Compact
   ======================================== */
.about-container {
    margin-top: 1.5rem !important;
}

.about-text {
    padding: 1.8rem 1.6rem !important;
}

.about-text h3 {
}

.about-text p {
}

.benefits-grid {
    gap: 1.2rem !important;
}

.benefit-card {
    padding: 1.2rem !important;
}

.benefit-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 0.8rem !important;
}

.benefit-card h3 {
}

.courses-grid {
    gap: 1.6rem !important;
}


/* ========================================
   10. BLOG PAGE — Compact
   ======================================== */
.blog-hero .hero-grid {
    gap: 1.2rem !important;
}

.blog-hero .hero-visual {
    height: 200px !important;
    border-radius: 10px !important;
}

.blog-hero .hero-badge {
    padding: 0.25rem 0.65rem !important;
    margin-bottom: 0.3rem !important;
}

.blog-hero .hero-badges {
    margin-bottom: 0.8rem !important;
}

.blog-hero .metric-icon {
    width: 28px !important;
    height: 28px !important;
}

.blog-hero .metric-title {
}

.blog-hero .metric-value {
}

.blog-hero .metric-card {
    padding: 0.4rem 0.6rem !important;
    border-radius: 10px !important;
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
}

.blog-image {
    height: 130px !important;
}

.blog-body {
    padding: 0.8rem !important;
    gap: 0.35rem !important;
}

.blog-title {
}

.blog-excerpt {
}

.blog-footer {
    padding: 0 0.8rem 0.7rem !important;
}


/* ========================================
   11. CONTACT US PAGE — Compact
   ======================================== */
.contact-info-grid {
    gap: 0.8rem !important;
    margin: 1.5rem 0 !important;
}

.contact-card {
    padding: 1rem !important;
}

.contact-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0.6rem !important;
}

.contact-card h3 {
    margin-bottom: 0.25rem !important;
}

.contact-card p,
.contact-card a {
}

.ticket-section {
    padding: 1.8rem !important;
    margin: 2rem 0 !important;
}

.ticket-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1rem !important;
}

.ticket-section h3 {
}

/* FAQ section compact */
.faq-section {
    margin: 2rem 0 !important;
}

.acc-header {
    padding: 1.1rem 1.5rem !important;
}

.acc-header h2 {
}

.acc-body {
    padding: 1.5rem !important;
}


/* ========================================
   12. FEATURES GRID (Courses page)
   ======================================== */
.features-grid {
    gap: 1.4rem !important;
    margin-top: 1.5rem !important;
}

.feature-item {
    padding: 1.5rem 1.2rem !important;
    border-radius: 16px !important;
}

.feature-icon {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 0.9rem !important;
}

.feature-icon i {
}

.feature-item h3 {
    margin-bottom: 0.5rem !important;
}

.feature-item p {
}


/* ========================================
   13. COMMENTS — Compact
   ======================================== */
.comments-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.2rem !important;
}

.comment {
    padding: 1.4rem !important;
}

.comment-text {
    margin-bottom: 1rem !important;
}

.comment-form {
    padding: 1.6rem !important;
    margin-top: 1.2rem !important;
}


/* ========================================
   14. COOPERATE SECTION (Instructors page)
   ======================================== */
#cooperate {
    margin: 3.5rem 0 !important;
    padding: 2.5rem 1.5rem !important;
}

#cooperate h2 {
    margin-bottom: 0.8rem !important;
}

#cooperate p {
    margin-bottom: 1.5rem !important;
}


/* ========================================
   15. FOOTER — Compact
   ======================================== */
.footer-galaxy {
    padding: 2rem 0 1rem !important;
    margin-top: 2rem !important;
}

.footer-grid {
    gap: 1.5rem !important;
}

@media (min-width: 992px) {
    .footer-grid {
        gap: 2rem !important;
    }
}

.footer-col h4 {
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.4rem !important;
}

.footer-logo img {
    height: 46px !important;
}

.slogan {
    margin-top: 0.5rem !important;
}

.footer-col ul {
    gap: 0.45rem !important;
}

.footer-col ul a {
    padding: 0.25rem 0 !important;
}

.contact-item {
    margin-bottom: 0.5rem !important;
    gap: 0.5rem !important;
}

.social-networks {
    margin-top: 1rem !important;
    gap: 0.5rem !important;
}

.social-icon {
    width: 38px !important;
    height: 38px !important;
}

.social-icon img {
    width: 22px !important;
    height: 22px !important;
}

.newsletter-form input {
    padding: 0.6rem 0.9rem !important;
}

.newsletter-form button {
    padding: 0 0.9rem !important;
}

.footer-bottom {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
}


/* ========================================
   16. PAGINATION — Compact
   ======================================== */
.pagination {
    gap: 0.4rem !important;
    margin-top: 2rem !important;
}

.pagination a {
    min-width: 40px !important;
    height: 40px !important;
}


/* ========================================
   17. RESPONSIVE OVERRIDES
   ======================================== */
@media (max-width: 992px) {
    .hero h1,
    .courses-hero h1,
    .about-hero h1,
    .contact-hero h1 {
    }
    
    .section-title {
    }
    
    .class-types {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 3.5rem !important;
    }
    
    .header-inner {
        height: 3.5rem !important;
    }
    
    header .logo img,
    header#header .logo img {
        height: 38px !important;
    }
    
    .hero,
    .courses-hero,
    .about-hero,
    .blog-hero,
    .contact-hero {
        padding: 1rem 0 1.3rem !important;
        min-height: auto !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero h1,
    .courses-hero h1,
    .about-hero h1,
    .blog-hero .hero-content h1 {
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    .section-title {
    }
    
    .class-types {
        max-width: 100% !important;
    }
    
    .class-type-card {
        padding: 0.8rem 1rem !important;
    }
    
    .footer-galaxy {
        padding: 1.5rem 0 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .courses-hero h1,
    .about-hero h1 {
    }
    
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .bg-section {
        padding: 1.4rem !important;
    }
    
    .btn {
        padding: 0.4rem 1rem !important;
    }
}

/* ── Why SibLearn Section ─────────────────────────── */
.why-siblearn-section {
    padding: 3rem 0 2.5rem;
}

.why-siblearn-section .section-title {
    text-align: center;
    margin-bottom: 0.8rem !important;
}

.why-subtitle {
    text-align: center;
    color: var(--text-muted, #6b7280);
    margin-top: 0.8rem;
    margin-bottom: 2rem;
}

.why-subtitle strong {
    color: var(--c3, #7209b7);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 860px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: rgba(114, 9, 183, 0.03);
    border: 1px solid rgba(114, 9, 183, 0.08);
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(114, 9, 183, 0.07);
    border-color: rgba(114, 9, 183, 0.18);
    transform: translateY(-3px);
}

.why-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c1, #f72585), var(--c3, #7209b7));
    color: #fff;
}

.why-card h4 {
    color: var(--text-dark, #1f2937);
    margin: 0 0 0.3rem;
}

.why-card p {
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.why-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.why-btn {
    padding: 0.45rem 1.4rem !important;
    border-radius: 10px !important;
    gap: 0.4rem;
    display: inline-flex;
    align-items: center;
}

.why-btn i {
    transition: transform 0.2s ease;
}

.why-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .why-card {
        padding: 1.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .why-icon {
        width: 40px;
        height: 40px;
    }
    .why-card h4 {
    }
    .why-card p {
    }
}
