/* ==========================================================================
   QUALITY PAGE — quality.css
   ========================================================================== */

/* ===== HERO ===== */
.ql-hero {
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('../img/industrial-foundry.webp') center center / cover no-repeat;
    padding-top: 90px;
    overflow: hidden;
}

.ql-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 48, 135, 0.4);
    z-index: 1;
}

.ql-hero .container { position: relative; z-index: 2; }

.ql-hero-inner {
    max-width: 100%;
    width: 100%;
    padding: 55px 0 45px;
}

.ql-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.ql-hero-title span { color: rgba(255,255,255,0.75); }

.ql-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    max-width: 100%;
    margin-bottom: 0;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.ql-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-top: 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    animation: heroFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

.ql-breadcrumb a { color: rgba(255,255,255,0.80); }
.ql-breadcrumb a:hover { color: #ffffff; }
.ql-breadcrumb span { color: #ffffff; font-weight: 700; }
.ql-breadcrumb i.fa-chevron-right { font-size: 0.55rem; color: rgba(255,255,255,0.4); }

/* ===== SHARED ===== */
.ql-section { padding: 90px 0; }
.ql-white { background: #ffffff; }
.ql-grey  { background: #f8fafc; }

.ql-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--corporate-blue);
    background: rgba(0,48,135,0.08);
    border: 1px solid rgba(0,48,135,0.15);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ql-heading {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.15;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ql-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 14px;
}

.ql-sec-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px auto;
}

.ql-sec-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin-top: 10px;
}

/* ===== TWO COL ===== */
.ql-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.ql-check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.ql-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.ql-check-item i {
    color: var(--corporate-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.ql-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.ql-img-wrap img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    display: block;
}

.ql-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.ql-img-badge i { font-size: 1.6rem; color: var(--corporate-blue); }
.ql-img-badge strong { display: block; font-size: 0.85rem; font-weight: 800; color: #1e293b; }
.ql-img-badge span { font-size: 0.72rem; color: #64748b; }

/* ===== PILLARS GRID ===== */
.ql-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.ql-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ql-pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--corporate-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ql-pillar-card:hover {
    border-color: var(--corporate-blue);
    box-shadow: 0 12px 40px rgba(0,48,135,0.1);
    transform: translateY(-4px);
}

.ql-pillar-card:hover::before { transform: scaleX(1); }

.ql-pillar-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,48,135,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corporate-blue);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.ql-pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.ql-pillar-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 10px;
}

.ql-pillar-card p:last-child { margin-bottom: 0; }
.ql-pillar-card strong { color: #1e293b; font-weight: 700; }

/* ===== CERTIFICATE ===== */
.ql-cert-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.ql-cert-img-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    background: #f8fafc;
}

.ql-cert-img {
    width: 100%;
    display: block;
}

.ql-cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 30px;
    text-align: center;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ql-cert-placeholder i {
    font-size: 3.5rem;
    color: rgba(0,48,135,0.15);
}

.ql-cert-placeholder span {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ql-cert-placeholder small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.ql-cert-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ql-cert-info-header {
    background: var(--corporate-blue);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ql-cert-info-header i { font-size: 1rem; }

.ql-cert-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ql-cert-detail:last-child { border-bottom: none; }

.ql-cert-detail-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.ql-cert-detail-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

.ql-cert-active {
    color: #16a34a !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ql-cert-active i { font-size: 0.5rem; }

/* ===== ISO BADGES ===== */
.ql-iso-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.ql-iso-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    min-width: 0;
}

.ql-iso-badge-item:hover {
    border-color: var(--corporate-blue);
    box-shadow: 0 8px 28px rgba(0,48,135,0.1);
    transform: translateY(-2px);
}

.ql-iso-badge-icon {
    width: 46px;
    height: 46px;
    background: rgba(0,48,135,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corporate-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ql-iso-badge-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.ql-iso-badge-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

/* ===== CTA ===== */
.ql-cta {
    background: var(--corporate-blue);
    padding: 80px 0;
}

.ql-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.ql-cta-text h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.ql-cta-text p { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

.ql-cta-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ql-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    transition: all 0.25s ease;
}

.ql-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: #ffffff;
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ql-two-col { grid-template-columns: 1fr; gap: 40px; }
    .ql-img-badge { display: none; }
    .ql-cert-wrap { grid-template-columns: 1fr; gap: 28px; }
    .ql-pillars-grid { grid-template-columns: 1fr 1fr; }
    .ql-iso-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ql-hero { padding-top: 68px; min-height: 260px; }
    .ql-hero-title { font-size: 2rem; }
    .ql-hero-inner { padding: 36px 0 28px; }
    .ql-hero-sub { font-size: 0.88rem; }
    .ql-section { padding: 48px 0; }
    .ql-heading { font-size: 1.5rem; }
    .ql-pillars-grid { grid-template-columns: 1fr; gap: 16px; }
    .ql-iso-badges { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ql-iso-badge-item { padding: 14px 12px; gap: 10px; min-width: 0; }
    .ql-iso-badge-icon { width: 36px; height: 36px; font-size: 0.95rem; flex-shrink: 0; }
    .ql-iso-badge-title { font-size: 0.85rem; }
    .ql-iso-badge-sub { font-size: 0.62rem; }
    .ql-cta { padding: 44px 0; }
    .ql-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ql-cta-btns { width: 100%; flex-direction: column; }
    .ql-cta-btns .btn, .ql-btn-ghost { width: 100%; justify-content: center; }
    .ql-cta-text h2 { font-size: 1.3rem; }
    .ql-sec-header { margin-bottom: 36px; }
    .ql-cert-placeholder { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .ql-hero-title { font-size: 1.65rem; }
    .ql-hero-sub { font-size: 0.82rem; }
    .ql-iso-badges { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ql-iso-badge-item { padding: 12px 8px; flex-direction: column; text-align: center; gap: 6px; }
    .ql-iso-badge-title { font-size: 0.82rem; }
    .ql-iso-badge-sub { font-size: 0.58rem; }
    .ql-pillar-card { padding: 22px 18px; }
    .ql-heading { font-size: 1.3rem; }
    .ql-section { padding: 36px 0; }
}
