/* Orthoveda Trauma Detail Page - Frontend Styles
   Uses fully unique .otd-* class names so this never clashes with any other
   Orthoveda plugin or the rest of the site. */

.otd-wrap {
    --otd-bg-clean: #FFFFFF;
    --otd-card-bg: #F8FAFC;
    --otd-gold: #C5A880;
    --otd-gold-dark: #A68B62;
    --otd-med-blue: #0F2942;
    --otd-text-body: #475569;
    --otd-border-soft: #E2E8F0;

    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 24px;
    background: var(--otd-bg-clean);
    font-family: 'Inter', sans-serif;
    color: var(--otd-text-body);
    box-sizing: border-box;
    overflow-x: hidden;
    opacity: 1;
}

.otd-wrap * {
    box-sizing: border-box;
}

/* Safe entrance animation: visible by default, only enhanced by JS */
.otd-wrap.otd-anim-init {
    opacity: 0;
    transform: translateY(30px);
}

.otd-wrap.otd-anim-run {
    animation: otdFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes otdFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero: image + intro side by side ---------- */
.otd-hero-row {
    display: flex;
    align-items: center;
    gap: 70px;
    margin-bottom: 100px;
}

.otd-hero-img-box {
    flex-shrink: 0;
    width: 500px;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--otd-border-soft);
    background: var(--otd-card-bg);
    box-shadow: 0 20px 50px rgba(15,41,66,0.08);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.otd-hero-img-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 65px rgba(15,41,66,0.14);
}

.otd-hero-img-box img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    display: block;
    opacity: 0.97;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.otd-hero-img-box:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.otd-hero-text { flex: 1; min-width: 260px; }

.otd-eyebrow {
    font-family: 'Manrope', sans-serif;
    color: var(--otd-gold-dark);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 18px;
}

.otd-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin: 0 0 22px;
    color: var(--otd-med-blue);
}

.otd-title span {
    color: var(--otd-gold);
    font-weight: 500;
}

.otd-intro {
    color: var(--otd-text-body);
    font-size: 15.5px;
    line-height: 1.9;
    font-weight: 400;
    margin: 0 0 20px;
}

.otd-divider {
    width: 60px;
    height: 3px;
    background: var(--otd-gold);
    border-radius: 2px;
    margin-top: 26px;
}

/* ---------- Detail cards grid ---------- */
.otd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.otd-detail {
    background: radial-gradient(100% 100% at 50% 0%, #FFFFFF 0%, #FDFDFD 100%);
    border: 1px solid var(--otd-border-soft);
    border-radius: 14px;
    padding: 44px 38px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.4s ease;
}

.otd-detail::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--otd-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.otd-detail:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 24px 45px rgba(15,41,66,0.08), 0 0 30px rgba(197,168,128,0.04);
}

.otd-detail:hover::before { transform: scaleX(1); }

.otd-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1.5px solid rgba(197, 168, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.otd-detail:hover .otd-icon {
    background: rgba(197, 168, 128, 0.12);
    border-color: var(--otd-gold);
    transform: rotate(-8deg) scale(1.06);
}

.otd-icon svg { stroke: var(--otd-gold-dark); }

.otd-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.otd-card-num {
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--otd-gold-dark);
    display: block;
    margin-bottom: 12px;
}

.otd-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--otd-med-blue);
    letter-spacing: -0.4px;
    margin: 0 0 14px;
    transition: color 0.3s ease;
}

.otd-detail:hover .otd-card-title { color: var(--otd-gold-dark); }

.otd-card-desc {
    font-family: 'Inter', sans-serif;
    color: var(--otd-text-body);
    font-size: 14.5px;
    line-height: 1.85;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 992px) {
    .otd-hero-row { flex-direction: column; gap: 40px; }
    .otd-hero-img-box { width: 100%; height: 340px; }
    .otd-hero-img-box img { width: 100%; height: 100%; }
    .otd-title { font-size: 32px; }
    .otd-grid { grid-template-columns: 1fr; }
    .otd-wrap { padding: 60px 16px; }
}
