/* Company page (company.php). Shared pieces live in css/site.css. */

/* ---------- Hero ---------- */
.oc-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.oc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.oc-hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border: 6px solid rgba(255, 255, 255, .12); aspect-ratio: 4 / 3; background: #efeef0; background-clip: padding-box; }
/* slide4.png: the team only fills the right ~64% of the frame (x 460-1280 of 1280),
   the rest is empty backdrop - enlarge and pin to the bottom-right so the group fills the card. */
.oc-hero-photo img { position: absolute; right: 0; bottom: 0; width: 156%; max-width: none; height: auto; display: block; }

/* ---------- Journey ---------- */
.oc-journey { padding: 32px; }
.oc-journey img { width: 100%; height: auto; display: block; }
.oc-callout { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; padding: 22px 24px; border-radius: 18px; background: var(--oh-soft); border: 1px solid #d6e6fb; }
.oc-callout p { margin: 0; font-size: 15px !important; line-height: 1.7 !important; color: var(--oh-navy) !important; font-weight: 500; }
.oc-callout .oh-icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }

/* ---------- What we do ---------- */
.oc-what { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.oc-what-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--oh-shadow); }
.oc-what-photo img { width: 100%; display: block; }
.oc-points { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
.oc-points li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin: 0; border-radius: 16px; background: #fff; border: 1px solid var(--oh-line); transition: box-shadow .3s, transform .3s; }
.oc-points li:hover { box-shadow: var(--oh-shadow); transform: translateX(4px); }
.oc-points li > span:not(.oc-check) { font-size: 15px !important; line-height: 1.7 !important; color: var(--oh-text) !important; }
.oc-points .oc-check { color: #fff !important; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--oh-grad-navy); color: #fff; font-size: 13px; }

/* ---------- Vision & mission ---------- */
.oc-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.oc-vm-card { position: relative; overflow: hidden; border-radius: 28px; padding: 40px; }
.oc-vm-card h3 { font-size: 26px !important; font-weight: 700; margin: 18px 0 14px !important; }
.oc-vm-card p { font-size: 16px !important; line-height: 1.75 !important; margin: 0 0 12px; }
.oc-vm-card .oh-icon-tile { width: 60px; height: 60px; font-size: 22px; }
.oc-vision { background: radial-gradient(circle at 90% 10%, rgba(0, 174, 255, .3) 0%, rgba(0, 174, 255, 0) 45%), linear-gradient(135deg, var(--oh-navy-deep), var(--oh-navy) 60%, var(--oh-blue)); }
.oc-vision h3 { color: #fff !important; }
.oc-vision p { color: rgba(255, 255, 255, .85) !important; }
.oc-vision .oh-icon-tile { background: rgba(255, 255, 255, .14); box-shadow: none; }
.oc-mission { background: #fff; border: 1px solid var(--oh-line); }
.oc-mission ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.oc-mission li { display: flex; gap: 12px; margin: 0; }
.oc-mission li i { color: var(--oh-blue); margin-top: 6px; }
.oc-mission li span { font-size: 16px !important; line-height: 1.7 !important; color: var(--oh-text) !important; }

.oc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.oc-gallery figure { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--oh-soft); }
.oc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.oc-gallery figure:hover img { transform: scale(1.06); }

/* ---------- Certificate viewer (classes used by the page script) ---------- */
.cert-viewer-container { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.cert-list-panel { background: #fff; border: 1px solid var(--oh-line); border-radius: 24px; padding: 20px; align-self: start; }
.cert-list-panel h4 { font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oh-muted) !important; margin: 4px 8px 14px !important; }
.cert-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cert-list li {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin: 0; border-radius: 14px; cursor: pointer;
    font-size: 14px !important; font-weight: 600; color: var(--oh-navy) !important; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.cert-list li::before {
    content: '\f0a3'; font-family: 'Font Awesome 6 Free'; font-weight: 900; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; background: var(--oh-soft); color: var(--oh-blue); font-size: 14px;
}
.cert-list li:hover { background: #f8fafc; border-color: var(--oh-line); }
.cert-list li.active { background: var(--oh-grad-navy); color: #fff !important; box-shadow: 0 12px 24px -14px rgba(5, 54, 121, .9); }
.cert-list li.active::before { background: rgba(255, 255, 255, .16); color: #fff; }

.cert-display-panel {
    position: relative; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 32px; border-radius: 24px; text-align: center; background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%); border: 1px solid var(--oh-line);
    transition: opacity .2s ease-in-out;
}
.cert-display-panel.is-loading { opacity: 0; }
#cert-display-image { max-width: 100%; max-height: 480px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 24px 48px -24px rgba(5, 54, 121, .5); }
#cert-display-caption { font-size: 15px !important; font-weight: 600; color: var(--oh-navy) !important; margin-top: 20px; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 10px 24px -12px rgba(5, 54, 121, .7); transition: transform .2s;
}
.slider-arrow:hover { transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow svg { width: 24px; height: 24px; fill: var(--oh-navy); }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: #c7d6ea; cursor: pointer; transition: transform .2s, background .2s; }
.slider-dots .dot.active { background: var(--oh-navy); transform: scale(1.3); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .oc-hero-grid, .oc-what, .oc-vm { grid-template-columns: 1fr; gap: 40px; }
    .cert-viewer-container { grid-template-columns: 1fr; }
    .cert-display-panel { min-height: 420px; }
    .oc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .oc-journey { padding: 18px; }
    .oc-vm-card { padding: 28px; }
    .oc-hero-actions .oh-btn { width: 100%; }
    .oc-gallery { gap: 12px; }
}
