/* ============================================================
   PECC - Responsive Styles
   Complete mobile responsiveness across all breakpoints
   ============================================================ */

/* ── 1400px and below ── */
@media (max-width: 1400px) {
    .hero-content h1 { font-size: 3.8rem; }
    .container { max-width: 1140px; }
}

/* ── 1200px and below ── */
@media (max-width: 1199.98px) {
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .page-header .page-title { font-size: 2.6rem; }
    .section-title h2 { font-size: 2.4rem; }
    .cta-section h2 { font-size: 2.4rem; }
    .sitemap-list { columns: 2; }
    .section-padding { padding: 90px 0; }
    .section-padding-md { padding: 60px 0; }
    .section-title { margin-bottom: 48px; }
    .stats-section { padding: 70px 0; }
    .brand-title { font-size: 1.35rem; }
    .brand-subtitle { font-size: 0.62rem; letter-spacing: 0.8px; }
    .nav-auth-item { gap: 6px; margin-left: 4px; }
    .nav-auth-link { padding: 7px 16px; font-size: 0.82rem; }
}

/* ── 992px and below (tablet & mobile) ── */
@media (max-width: 991.98px) {
    .section-padding { padding: 70px 0; }
    .hero-slider .hero-slide { min-height: 70vh; }
    .hero-content { padding: 40px 0; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-content p { font-size: 1.05rem; }
    .hero-buttons .btn { padding: 12px 30px; font-size: 0.9rem; }
    .stat-item .stat-number { font-size: 2.6rem; }
    .stat-item { margin-bottom: 30px; }
    .about-experience { position: relative; bottom: 0; right: 0; margin-top: 20px; }
    .page-header { padding: 110px 0 70px; }
    .page-header .page-title { font-size: 2.2rem; }
    .page-header .page-subtitle { font-size: 1rem; }
    .footer-bottom-links { text-align: center; margin-top: 12px; }
    .footer-bottom-links li { margin: 0 10px; }
    .main-navbar .nav-link { padding: 16px 16px; }
    .brand-title { font-size: 1.3rem; }
    .brand-subtitle { font-size: 0.6rem; }
    .navbar-brand img { height: 55px; }
    .membership-tier.featured { transform: none; }
    .membership-tier.featured:hover { transform: translateY(-8px); }
    .cta-section h2 { font-size: 2rem; }
    .cta-section { padding: 70px 0; }
    .auth-card { padding: 36px; }
    .contact-card, .contact-info-card { padding: 32px; }
    .section-title h2 { font-size: 2rem; }
    .section-title { margin-bottom: 40px; }
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next { display: none; }
    .about-image { margin-bottom: 30px; }
    .section-bg-dark .container .row > div { margin-bottom: 0; }
    .what-we-offer .service-card { margin-bottom: 0; }
    .cert-carousel .owl-nav { display: none; }
    .why-choose-card { margin-bottom: 0; }
}

/* ── 768px and below (large phones, small tablets) ── */
@media (max-width: 767.98px) {
    .section-padding { padding: 60px 0; }
    .hero-slider .hero-slide { min-height: 60vh; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.95rem; }
    .hero-buttons .btn { padding: 12px 28px; font-size: 0.88rem; }
    .hero-buttons { gap: 12px; }
    .stat-item { margin-bottom: 30px; }
    .stat-item .stat-number { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title { margin-bottom: 32px; }
    .section-title p { font-size: 0.95rem; }
    .page-header { padding: 90px 0 50px; }
    .page-header .page-title { font-size: 1.8rem; }
    .page-header .page-subtitle { font-size: 0.9rem; }
    .footer-top { padding: 60px 0 30px; }
    .footer-widget { margin-bottom: 36px; }
    .sitemap-list { columns: 1; }
    .auth-card { padding: 24px; }
    .auth-title { font-size: 1.6rem; }
    .contact-card, .contact-info-card { padding: 24px; }
    .page-content { padding: 50px 0; }
    .error-page h1 { font-size: 6rem; }
    .stats-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.6rem; }
    .cta-section p { font-size: 0.95rem; }
    .cta-section { padding: 60px 0; }
    .h1, h1 { font-size: 2rem; }
    .h2, h2 { font-size: 1.6rem; }
    .about-image div[style*="height: 500px"] { height: 350px !important; }
    .about-image div[style*="height: 500px"] i { font-size: 6rem !important; }
    .testimonial-card { padding: 28px 20px; }
    .news-card .news-image { height: 200px; }
    .team-card .team-image { height: 240px; }
    .gallery-item { height: 220px; }
    .news-detail-card { padding: 28px 24px; }
    .event-detail-card { padding: 28px 24px; }
    .event-date-box-large { padding: 14px; }
    .event-date-box-large .event-date-day { font-size: 2.2rem; }
    .cert-header { flex-wrap: wrap; }
    .cert-toggle { width: 100%; margin-top: 10px; justify-content: center; }
    .cert-actions { flex-direction: column; }
    .cert-actions .btn { width: 100%; justify-content: center; }
    .cert-meta-tags { flex-wrap: wrap; gap: 8px; }
    .certification-detail-card { padding: 24px 18px; }
    .exec-program-card { padding: 28px 20px; }
    .corporate-advantage-item { flex-direction: column; text-align: center; align-items: center; padding: 20px; }
    .info-table td { display: block; width: 100% !important; }
    .info-table td:first-child { width: 100% !important; background: var(--off-white); }
    .detail-meta-bar { justify-content: center; }
    .detail-meta-item { font-size: 0.82rem; padding: 10px 16px; }
    .detail-stat-card .stat-number { font-size: 1.8rem; }
    .page-header .page-title { font-size: 2.2rem; }

    /* Footer */
    .footer-top { padding: 50px 0 20px; }
    .footer-widget { margin-bottom: 30px; text-align: center; }
    .footer-widget .footer-logo { justify-content: center; }
    .footer-widget .social-links { justify-content: center; }
    .footer-bottom { text-align: center; padding: 16px 0; }
    .footer-bottom-links { justify-content: center; margin-top: 8px; }
    .footer-bottom-links li { margin: 0 8px; }
}

/* ── Stats Section: Mobile 2-Column Grid ── */
@media (max-width: 767.98px) {
    .stats-section {
        padding: 50px 0;
    }
    .stats-section .row {
        margin: 0 -6px;
    }
    .stats-section .row > div {
        padding: 0 6px;
        margin-bottom: 12px;
    }
    .stat-item {
        padding: 20px 12px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,0.02);
        margin-bottom: 0;
    }
    .stat-item .stat-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    .stat-item .stat-number {
        font-size: 1.4rem;
    }
    .stat-item .stat-label {
        font-size: 0.7rem;
        margin-top: 4px;
        line-height: 1.3;
    }
}

/* ── 576px and below (phones) ── */
@media (max-width: 575.98px) {
    .hero-slider .hero-slide { min-height: 50vh; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p { font-size: 0.88rem; max-width: 100%; }
    .hero-content .hero-badge { font-size: 0.7rem; padding: 6px 16px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; }
    .hero-slider .owl-dots { bottom: 20px; }
    .hero-slider .owl-dots .owl-dot span { width: 28px; height: 3px; }
    .section-title h2 { font-size: 1.5rem; }
    .section-title p { font-size: 0.9rem; max-width: 100%; }
    .section-title .title-line { margin-top: 14px; }
    .page-header .page-title { font-size: 1.5rem; }
    .page-header .page-subtitle { font-size: 0.85rem; }
    .page-header { padding: 80px 0 40px; }
    .service-card { padding: 28px 20px; }
    .why-choose-card { flex-direction: column; text-align: center; }
    .why-choose-card .wc-icon { margin: 0 auto; }
    .testimonial-card { padding: 28px 20px; }
    .news-card .news-image { height: 200px; }
    .news-card .news-body { padding: 18px; }
    .news-card .news-body h3 { font-size: 1rem; }
    .news-card .news-body p { font-size: 0.85rem; }
    .team-card .team-image { height: 240px; }
    .gallery-item { height: 220px; }
    .video-item { height: 200px; }
    .cta-section h2 { font-size: 1.4rem; }
    .cta-section p { font-size: 0.9rem; }
    .cta-section { padding: 50px 0; }
    .cta-section .btn { width: 100%; justify-content: center; }
    .about-feature { flex-direction: column; text-align: center; padding: 16px; }
    .about-feature .feature-icon { margin: 0 auto; }
    .about-section .about-content .section-title h2 { font-size: 1.5rem; }
    .about-image div[style*="height: 500px"] { height: 250px !important; }
    .about-image div[style*="height: 500px"] i { font-size: 4rem !important; }
    .about-experience { position: relative; bottom: 0; right: 0; margin-top: -40px; padding: 16px 24px; }
    .about-experience h3 { font-size: 2rem; }
    .about-experience p { font-size: 0.8rem; }
    .membership-tier { padding: 28px 20px; }
    .auth-card { padding: 20px; }
    .auth-title { font-size: 1.4rem; }
    .contact-info-card { padding: 20px; }
    .contact-card { padding: 20px; }
    .cert-card .cert-image { height: 180px; }
    .cert-card { padding: 20px 18px; }
    .cert-card h3 { font-size: 1.05rem; }
    .page-content { padding: 40px 0; }
    .page-content p { font-size: 0.92rem; }
    .stat-item .stat-label { font-size: 0.85rem; }
    .section-padding { padding: 50px 0; }
    .brand-title { font-size: 1rem; }
    .navbar-brand img { height: 45px; }

    .error-page h1 { font-size: 4rem; }
    .error-page h2 { font-size: 1.3rem; }
    .error-page p { font-size: 0.9rem; }

    /* Typography */
    .h1, h1 { font-size: 1.7rem; }
    .h2, h2 { font-size: 1.4rem; }
    .h3, h3 { font-size: 1.2rem; }
    .h4, h4 { font-size: 1.1rem; }
    body { font-size: 15px; }

    /* Cards */
    .service-card { padding: 24px 18px; }
    .service-card h3 { font-size: 1.15rem; }
    .service-card p { font-size: 0.88rem; }
    .why-choose-card .wc-icon { width: 56px; height: 56px; font-size: 1.3rem; }
    .testimonial-card .testimonial-text { font-size: 0.92rem; }
    .team-card .team-info { padding: 16px; }
    .team-card .team-name { font-size: 1.05rem; }
    .event-card .event-card-body { padding: 18px; }
    .event-card .event-card-body h3 { font-size: 1.05rem; }
    .event-card .event-card-body p { font-size: 0.85rem; }
    .event-meta { flex-direction: column; gap: 6px; }
    .event-meta span { font-size: 0.82rem; }
    .brand-subtitle { display: none; }

    /* Posts & Detail pages */
    .post-navigation { flex-direction: column; gap: 12px; }
    .post-navigation .post-nav-link { width: 100%; text-align: left !important; font-size: 0.88rem; }
    .share-buttons .btn { font-size: 0.78rem; padding: 8px 14px; }
    .blog-meta { font-size: 0.85rem; gap: 8px !important; flex-wrap: wrap; }
    .blog-content { font-size: 0.95rem; }
    .sidebar-widget { margin-bottom: 24px; }
    .sidebar-widget h4 { font-size: 1.05rem; margin-bottom: 14px; }
    .news-detail-card { padding: 24px 18px; }
    .event-detail-card { padding: 24px 18px; }
    .news-content { font-size: 0.95rem; }
    .event-info-item { font-size: 0.85rem; }

    /* Service pages */
    .service-item-row { flex-direction: column; text-align: center; padding: 20px; }
    .service-item-row .sir-icon { margin: 0 auto; }
    .step-card { padding: 24px 18px; }
    .detail-header-info { padding: 20px; }
    .detail-header-info h1 { font-size: 1.5rem; }

    /* Gallery */
    .gallery-image-card { margin-bottom: 0; }
    .gallery-video-card iframe { height: 200px; }
    .gallery-filter { flex-wrap: wrap; gap: 6px; justify-content: center; }
    .gallery-filter .filter-btn { font-size: 0.78rem; padding: 6px 14px; }
    .gallery-categories { flex-wrap: wrap; gap: 6px; justify-content: center; }
    .gallery-categories .btn { font-size: 0.78rem; padding: 5px 12px; }

    /* Auth */
    .auth-card-premium { padding: 20px 16px; }
    .auth-title-premium { font-size: 1.3rem; }
    .auth-logo { width: 60px; height: 60px; font-size: 1.5rem; }
    .auth-divider { margin: 20px 0; }
    .auth-footer-links { font-size: 0.85rem; flex-direction: column; gap: 8px; text-align: center; }

    /* Footer */
    .footer-widget { margin-bottom: 24px; }
    .footer-widget h4 { font-size: 1.05rem; }
    .footer-widget p, .footer-widget li { font-size: 0.88rem; }
    .footer-bottom { font-size: 0.82rem; }
    .footer-logo img { max-height: 50px; }
    .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; line-height: 40px; font-size: 0.9rem; }

    /* Corporate / Membership Sections */
    .contact-card.content-list { padding: 0; }
    .contact-card ul.content-list { padding-left: 0; }
    .contact-card ul.content-list li { font-size: 0.88rem; padding: 10px 0; }

    /* Executive Education */
    .membership-tier { padding: 24px 18px; }
    .membership-tier .tier-icon { width: 56px; height: 56px; font-size: 1.2rem; }
    .membership-tier h5 { font-size: 1.05rem; }
    .membership-tier p { font-size: 0.85rem; }

    /* Dark Section Adjustments */
    .section-bg-dark .section-padding { padding: 50px 0; }

    /* CTA Section */
    .cta-section .hero-buttons { flex-direction: column; width: 100%; }
    .cta-section .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Event cards */
    .event-card .row { flex-direction: column; }
    .event-card .col-md-4 { width: 100%; }
    .event-card .event-image-box { min-height: 200px !important; }
    .event-card .event-date-box { flex-direction: row; min-width: 100%; padding: 16px; gap: 10px; justify-content: center; }
    .event-date-day, .event-date-box .event-date-day { font-size: 1.5rem; }
    .event-date-month, .event-date-box .event-date-month { font-size: 0.85rem; }
    .event-card .col-md-8 { width: 100%; }

    /* Newsletter form mobile stack */
    .newsletter-input-wrap {
        flex-direction: column;
        gap: 12px;
    }
    .newsletter-input-wrap .form-control {
        border-radius: 50px !important;
        width: 100%;
        height: 50px;
        font-size: 0.95rem;
        background: rgba(255,255,255,0.08);
    }
    .newsletter-input-wrap .btn {
        border-radius: 50px !important;
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    form .row > div { margin-bottom: 0; }
}

/* ── Tablet range (768px - 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .sitemap-list { columns: 2; }
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next { display: none; }
    .navbar-brand img { height: 60px; }
    .brand-title { font-size: 1.25rem; }
    .brand-subtitle { font-size: 0.58rem; }
    .about-image div[style*="height: 500px"] { height: 400px !important; }
    .auth-card-premium .auth-card-body { padding: 40px 36px; }
    .auth-title-premium { font-size: 1.5rem; }
}

/* ── Desktop hover dropdowns (992px+) ── */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        pointer-events: none;
    }
    .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-navbar .dropdown:hover > .nav-link::after { width: 70%; }
}

/* ── MOBILE FIX: Center footer widget h4::after decorative line ── */
@media (max-width: 767.98px) {
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ── MOBILE FIX: Scale section title decorative end-caps ── */
@media (max-width: 575.98px) {
    .section-title .title-line {
        width: 60px;
    }
    .section-title .title-line::before {
        left: -6px;
        width: 10px;
        height: 7px;
    }
    .section-title .title-line::after {
        right: -6px;
        width: 10px;
        height: 7px;
    }
}

/* ── MOBILE FIX: Scale testimonial quote icon ── */
@media (max-width: 575.98px) {
    .testimonial-card::before {
        left: 20px;
        font-size: 2.5rem;
        top: -8px;
    }
}

/* ── MOBILE FIX: Override inline about page placeholder sizes ── */
@media (max-width: 767.98px) {
    div[style*="height: 400px"][style*="linear-gradient"] {
        min-height: 280px !important;
        height: auto !important;
    }
}
@media (max-width: 575.98px) {
    div[style*="height: 400px"][style*="linear-gradient"] {
        min-height: 220px !important;
    }
    div[style*="height: 400px"][style*="linear-gradient"] i[style*="font-size: 8rem"] {
        font-size: 5rem !important;
    }
}

/* ── MOBILE FIX: Scale 404-page oversized inline elements ── */
@media (max-width: 575.98px) {
    .error-page div[style*="width: 120px"][style*="height: 120px"] {
        width: 90px !important;
        height: 90px !important;
        line-height: 90px !important;
        font-size: 2.5rem !important;
    }
    .error-page h2[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
    .error-page p[style*="font-size: 1.15rem"] {
        font-size: 1rem !important;
    }
}

/* ── MOBILE FIX: Scale gallery fallback placeholder ── */
@media (max-width: 575.98px) {
    div[style*="height: 250px"][style*="linear-gradient"] {
        height: 180px !important;
    }
    div[style*="height: 250px"][style*="linear-gradient"] i[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }
}

/* ── MOBILE FIX: Scale index page inline icon circles ── */
@media (max-width: 575.98px) {
    div[style*="width: 52px"][style*="height: 52px"][style*="line-height: 52px"] {
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 1rem !important;
    }
    div[style*="width: 70px"][style*="height: 70px"][style*="line-height: 70px"] {
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        font-size: 1.3rem !important;
    }
    div[style*="width: 64px"][style*="height: 64px"][style*="border-radius: 50%"] {
        width: 48px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 1rem !important;
    }
    div[style*="width: 120px"][style*="height: 60px"] {
        width: 90px !important;
        height: 45px !important;
    }
}

/* ── MOBILE FIX: Reduce sidebar widget padding ── */
@media (max-width: 575.98px) {
    .sidebar-widget {
        padding: 20px !important;
    }
}

/* ── MOBILE FIX: Touch-friendly social icon sizing ── */
@media (max-width: 575.98px) {
    .social-links a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 0.65rem !important;
    }
}

/* ── Print styles ── */
@media print {
    .main-navbar, .back-to-top,
    .footer-newsletter, .breadcrumb, .page-header,
    .hero-section, .stats-section, .cta-section,
    .footer-widget .social-links, .share-buttons { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .container { max-width: 100%; padding: 0; }
    .section-padding { padding: 20px 0; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
    .main-content { margin: 0 !important; padding: 0 !important; }
}