/*
    Allied Certification Services Limited
    Frontend stylesheet
*/

:root {
    --primary: #062f6f;
    --primary-dark: #05265b;
    --primary-light: #1758b8;
    --gold: #d99a24;
    --gold-light: #f0b93f;
    --text: #102a4c;
    --muted: #5e6d82;
    --soft-blue: #eef6ff;
    --border: #dce8f5;
    --white: #ffffff;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Flex/grid columns default to min-width: auto, which stops them shrinking
   below their content's natural size and causes horizontal overflow on
   narrow screens even though Bootstrap sets width: 100%. Force them to
   respect their container width instead. */
.row > * {
    min-width: 0;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container-custom {
    max-width: 1180px;
    margin: auto;
    padding: 0 18px;
}

/* Header */
.top-header {
    padding: 5px 0;
    background: #fff;
    border-bottom: 1px solid #eef3f8;
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-wrap img,
.brand-wrap .logo-mark {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(6, 47, 111, .18));
    transition: transform .4s var(--ease);
    padding: 20px;
}

.brand-wrap:hover img,
.brand-wrap:hover .logo-mark {
    transform: scale(1.05) rotate(-2deg);
}

.brand-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-top: 4px;
}

.header-contact {
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-bottom: 18px;
}

.header-contact span,
.header-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--text);
}

.header-contact i {
    color: var(--primary);
    font-size: 15px;
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.navbar-custom a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    transition: color .3s var(--ease);
}

.navbar-custom a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s var(--ease);
}

.navbar-custom a:hover,
.navbar-custom a.active {
    color: var(--gold);
}

.navbar-custom a:hover::after,
.navbar-custom a.active::after {
    width: 100%;
}

.quote-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 7px;
    font-weight: 700 !important;
    box-shadow: 0 8px 18px rgba(6, 47, 111, .22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.quote-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(6, 47, 111, .32);
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    min-height: 540px;
    background:
        radial-gradient(rgba(6,47,111,.07) 1px, transparent 1px),
        linear-gradient(90deg, #ffffff 0%, #ffffff 46%, #eef6ff 100%);
    background-size: 22px 22px, 100% 100%;
    background-position: 0 0, 0 0;
    position: relative;
    padding: 80px 0 115px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(217,154,36,.1) 0%, rgba(217,154,36,0) 70%);
    top: -140px;
    right: 10%;
}

.hero::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(6,47,111,.07) 0%, rgba(6,47,111,0) 70%);
    bottom: -80px;
    left: -60px;
}

.hero .container-custom {
    position: relative;
    z-index: 1;
}

.hero-visual-col {
    position: relative;
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 26px 54px rgba(9, 42, 86, .24);
    animation: heroPhotoFloat 6s ease-in-out infinite;
}

@keyframes heroPhotoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 16px 36px rgba(9, 42, 86, .16);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    animation: heroBadgeFade .7s var(--ease) forwards, badgeFloat 5s ease-in-out infinite;
    opacity: 0;
}

.hero-badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.hero-badge-icon.gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.hero-badge-top {
    top: 6%;
    left: -6%;
    animation-delay: .6s, .6s;
}

@keyframes heroBadgeFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-copy > * {
    opacity: 0;
    animation: heroFadeUp .7s ease forwards;
}

.hero-copy .eyebrow { animation-delay: .05s; }
.hero-copy h1 { animation-delay: .15s; }
.hero-copy p { animation-delay: .28s; }
.hero-copy .hero-actions { animation-delay: .4s; }
.hero-copy .hero-credentials { animation-delay: .55s; }

.hero-credentials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-credentials-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--muted);
    margin-right: 4px;
}

.hero-badges {
    margin-top: 32px;
}

.hero-badges .hero-credentials-label {
    display: block;
    margin-bottom: 12px;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 18px;
}

.hero-badges-row img {
    height: 95px;
    width: 95px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(6, 47, 111, .08);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.hero-badges-row img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(6, 47, 111, .16);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(6, 47, 111, .05);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.hero-chip i {
    font-size: 11px;
    color: var(--gold);
    transition: color .3s var(--ease);
}

.hero-chip:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(6, 47, 111, .22);
}

.hero-chip:hover i {
    color: #fff;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.smoke-puff {
    transform-origin: center;
    animation: smokeRise 4s ease-in-out infinite;
}

.smoke-puff-1 { animation-delay: 0s; }
.smoke-puff-2 { animation-delay: .6s; }
.smoke-puff-3 { animation-delay: 1.2s; }

@keyframes smokeRise {
    0% { transform: translateY(6px) scale(.85); opacity: .35; }
    50% { transform: translateY(-6px) scale(1.05); opacity: .8; }
    100% { transform: translateY(6px) scale(.85); opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo,
    .hero-copy > *,
    .smoke-puff,
    .shield-mark,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.eyebrow {
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.eyebrow::after {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--gold);
    position: absolute;
    left: 0;
    bottom: -8px;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    font-weight: 800;
    background: linear-gradient(100deg, var(--primary) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    max-width: 690px;
    margin-bottom: 24px;
}

.hero p {
    max-width: 570px;
    font-size: 17px;
    color: #334966;
    margin-bottom: 30px;
}

.btn-primary-custom,
.btn-outline-custom {
    min-height: 54px;
    padding: 0 26px;
    border-radius: 7px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.btn-primary-custom::before,
.btn-outline-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}

.btn-primary-custom:hover::before,
.btn-outline-custom:hover::before {
    left: 130%;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 60%, var(--primary-dark));
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 20px rgba(6, 47, 111, .22);
}

.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(6, 47, 111, .3);
}

.btn-outline-custom {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(6, 47, 111, .18);
}

/* Feature panel */
.feature-panel {
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(9, 42, 86, .1);
    border: 1px solid #e5eef8;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.feature-item {
    text-align: center;
    padding: 0 28px;
    border-right: 1px solid #e5edf6;
}

.feature-item:last-child {
    border-right: none;
}

.icon-circle {
    width: 78px;
    height: 78px;
    background: linear-gradient(150deg, #edf5ff, #dbeaff);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 32px;
    transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}

.icon-circle.gold {
    color: var(--gold);
}

.feature-item:hover .icon-circle {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(6, 47, 111, .28);
}

.feature-item:hover .icon-circle.gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #fff;
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* About */
.section-padding {
    padding: 45px 0;
}

.section-tint {
    background: linear-gradient(180deg, var(--soft-blue) 0%, #fbfdff 100%);
}

.about-visual {
    min-height: 270px;
    background: linear-gradient(180deg, #edf6ff 0%, #fff 100%);
    border-radius: 50% 50% 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(220, 232, 245, .8), 0 20px 50px rgba(9, 42, 86, .08);
}

.about-visual::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,154,36,.12) 0%, rgba(217,154,36,0) 70%);
    top: -40px;
    right: -30px;
}

.about-visual .factory-illustration {
    width: 78%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 14px 24px rgba(9, 42, 86, .12));
}

.about-visual-photo {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.shield-mark {
    width: 84px;
    height: 96px;
    border: 6px solid rgba(217,154,36,.65);
    border-radius: 42px 42px 26px 26px;
    position: absolute;
    right: 60px;
    top: 70px;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 10px 26px rgba(217, 154, 36, .22);
    z-index: 2;
    animation: shieldPulse 3.2s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.section-label {
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
}

.section-label::after {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--gold);
    position: absolute;
    left: 0;
    bottom: -6px;
}

.section-title-custom {
    color: var(--primary);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 800;
    margin: 18px 0 18px;
    letter-spacing: -.6px;
}

.section-text {
    color: #3d4f68;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.read-more {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
    transition: gap .3s var(--ease), color .3s var(--ease);
}

.read-more i {
    transition: transform .3s var(--ease);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 14px;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Mission */
.mission-box {
    background: linear-gradient(100deg, #f0f7ff, #f8fbff 60%, #fdf6ea);
    border-radius: 12px;
    padding: 24px 36px;
    border: 1px solid #e7f0f9;
    margin-bottom: 52px;
    position: relative;
    overflow: hidden;
}

.mission-box::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,47,111,.05) 0%, rgba(6,47,111,0) 70%);
    right: -80px;
    top: -120px;
}

.mission-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.mission-visual img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.mission-title {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

/* Certifications */
.cert-title {
    text-align: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.cert-card {
    background: #fff;
    border: 1px solid #e0e9f3;
    border-radius: 10px;
    text-align: center;
    padding: 26px 14px 22px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(6,47,111,.04);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6,47,111,.14);
    border-color: transparent;
}

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

.cert-card:hover .icon-circle {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(6, 47, 111, .25);
}

.cert-card .cert-seal {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card .cert-seal img {
    max-width: 100%;
    max-height: 100%;
}

.cert-card .icon-circle {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: 14px;
}

.doc-card-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: block;
    transition: transform .35s var(--ease);
}

.cert-card:hover .doc-card-logo {
    transform: scale(1.06);
}

.cert-card h6 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 4px;
    font-size: 14px;
}

.cert-card p {
    color: var(--muted);
    font-size: 12.5px;
    margin: 0;
}

/* Compact ISO / standards list (simple, dense rows instead of cards) */
.iso-list-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 22px 4px;
    box-shadow: 0 10px 28px rgba(6, 47, 111, .06);
}

.iso-list {
    row-gap: 0;
}

.iso-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 14px 8px 14px 12px;
    border-bottom: 1px solid var(--border);
    margin: 0 -8px;
    border-radius: 8px;
    transition: background .25s var(--ease), box-shadow .25s var(--ease), padding-left .25s var(--ease);
}

.iso-list > [class*="col-"]:nth-last-child(-n+2) .iso-item {
    border-bottom: none;
}

.iso-item:hover {
    background: var(--soft-blue);
    box-shadow: inset 3px 0 0 var(--gold);
    padding-left: 18px;
}

.iso-item-code {
    color: var(--primary);
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.iso-item-code::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.iso-item-desc {
    color: var(--muted);
    font-size: 13px;
    flex: 1 1 200px;
}

.quality-statement-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #eef1f5;
    border-radius: 10px;
    padding: 28px 34px;
    margin-top: 24px;
    overflow: hidden;
    transition: background .3s var(--ease);
}

.quality-statement-bar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    height: 100px;
    background-image: radial-gradient(rgba(6,47,111,.2) 1.5px, transparent 1.5px);
    background-size: 11px 11px;
    -webkit-mask-image: linear-gradient(to top left, #000 30%, transparent 75%);
    mask-image: linear-gradient(to top left, #000 30%, transparent 75%);
    pointer-events: none;
}

.quality-statement-bar:hover {
    background: #e3e8ef;
}

.quality-statement-text {
    position: relative;
    z-index: 1;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--text);
}

.quality-statement-text em {
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    color: var(--muted);
    margin-left: 8px;
}

.quality-statement-pdf-icon {
    color: #e02424;
    font-size: 22px;
    margin-right: 10px;
    vertical-align: middle;
}

.quality-statement-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.quality-statement-bar:hover .quality-statement-icon {
    background: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .quality-statement-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Specialization cards (detailed certification descriptions) */
.spec-group-title {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 20px;
}

[id] {
    scroll-margin-top: 100px;
}

/* Services: category chip nav */
.services-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
}

.services-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: 13.5px;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.services-chip i {
    font-size: 12px;
    color: var(--gold);
    transition: color .3s var(--ease);
}

.services-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 47, 111, .2);
}

.services-chip:hover i {
    color: var(--gold-light);
}

/* Services: group header (icon badge + title + count + rule) */
.services-group-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.services-group-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 8px 18px rgba(6, 47, 111, .25);
}

.services-group-icon.gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 18px rgba(217, 154, 36, .3);
}

.services-group-icon-img {
    width: 80px;
    height: 80px;
    background: none;
    box-shadow: none;
}

.services-group-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.services-group-header h4 {
    color: var(--primary);
    font-size: 16.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
    white-space: nowrap;
}

.services-group-count {
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.services-group-rule {
    flex: 1;
    height: 1px;
    min-width: 40px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.spec-card {
    background: #fff;
    border: 1px solid #e0e9f3;
    border-radius: 12px;
    padding: 28px 26px;
    height: 100%;
    display: flex;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(6,47,111,.04);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--gold));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s var(--ease);
}

.spec-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,154,36,.08) 0%, rgba(217,154,36,0) 70%);
    top: -70px;
    right: -60px;
    pointer-events: none;
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(6,47,111,.14);
    border-color: transparent;
}

.spec-card:hover::before {
    transform: scaleY(1);
}

.spec-card .icon-circle {
    width: 56px;
    height: 56px;
    font-size: 23px;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.spec-card:hover .icon-circle {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(6, 47, 111, .25);
}

.spec-card h6 {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.spec-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* CTA */
.cta-box {
    background: linear-gradient(100deg, #eef7ff, #f8fbff 55%, #fdf6ea);
    border-radius: 12px;
    border: 1px solid #e4edf8;
    padding: 28px 40px;
    margin-top: 38px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--gold));
}

.cta-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    flex-shrink: 0;
    box-shadow: 0 12px 26px rgba(6, 47, 111, .3);
}

.cta-icon-img {
    width: 120px;
    height: 120px;
    background: none;
    box-shadow: none;
}

.cta-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cta-box h3 {
    color: var(--primary);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.cta-box p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.cta-contact {
    border-left: 2px solid var(--primary);
    padding-left: 48px;
}

.cta-contact div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-contact div:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e8eef6;
    padding: 26px 0;
    color: #41536c;
    font-size: 14px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-item i {
    width: 46px;
    height: 46px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background .3s var(--ease), color .3s var(--ease);
}

.footer-item-icon {
    width: 46px;
    height: 46px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-item-icon img {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.footer-item:hover i {
    background: var(--primary);
    color: #fff;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform .3s var(--ease), background .3s var(--ease);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* Scroll-reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: .4s; }

/* Mobile menu */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #e8eef6;
    padding: 15px 0;
}

.mobile-nav a {
    display: block;
    color: var(--primary);
    padding: 12px 18px;
    font-weight: 700;
    border-bottom: 1px solid #edf3f9;
}

.mobile-nav.active {
    display: block;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    border: none;
    border-radius: 8px;
    padding: 6px;
    transition: background .2s ease, box-shadow .2s ease;
}

.lang-current:hover,
.lang-current[aria-expanded="true"] {
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.lang-menu {
    min-width: auto;
    padding: 6px;
    border-radius: 14px;
}

.lang-toggle .dropdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 6px;
    border-radius: 8px;
}

.lang-toggle .dropdown-item:hover {
    background: #eef1f5;
}

.lang-toggle .dropdown-item.active {
    background: #eef1f5;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.lang-toggle a::after,
.lang-toggle a:hover::after,
.lang-toggle a.active::after {
    content: none !important;
}

.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.lang-toggle-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef1f5;
    border-radius: 14px;
    padding: 4px;
    margin: 12px 18px 0;
}

.lang-toggle-mobile .lang-option {
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: background .2s ease, box-shadow .2s ease;
}

.lang-toggle-mobile .lang-option.active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

/* Responsive */
@media (max-width: 991px) {
    .header-contact,
    .navbar-custom {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .top-header {
        padding: 2px 0;
    }

    .brand-wrap {
        gap: 10px;
    }

    .brand-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .brand-wrap img,
    .brand-wrap .logo-mark {
        height: 68px;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 65px 0 100px;
    }

    .hero p {
        font-size: 16px;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid #e5edf6;
        padding: 24px 15px;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .cta-contact {
        border-left: none;
        padding-left: 0;
        margin-top: 25px;
    }
}

@media (max-width: 420px) {
    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-badges-row {
        justify-content: flex-start;
        gap: 12px;
    }

    .hero-badges-row img {
        height: 78px;
        width: 78px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
    }

    .feature-panel {
        margin-top: -35px;
    }

    .section-padding {
        padding: 32px 0;
    }

    .mission-box,
    .cta-box {
        padding: 25px 20px;
    }

    .mission-title {
        font-size: 21px;
    }

    .cta-box h3 {
        font-size: 22px;
    }

    .cta-icon-img {
        width: 64px;
        height: 64px;
    }

    .footer-item {
        align-items: flex-start;
    }
}

/* Contact modal */
.contact-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(6, 24, 54, .3);
    overflow: hidden;
}

.contact-modal-content .modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #eef1f6;
}

.contact-modal-content .modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
}

.contact-modal-content .btn-close {
    box-shadow: none !important;
    opacity: .6;
    transition: opacity .2s ease;
}

.contact-modal-content .btn-close:hover {
    opacity: 1;
}

.contact-modal-content .modal-body {
    padding: 28px;
}

#contactForm .form-label,
#applyForm .form-label,
#verifyForm .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
}

#contactForm .form-control,
#contactForm .form-select,
#applyForm .form-control,
#applyForm .form-select,
#verifyForm .form-control,
#verifyForm .form-select {
    border: 1px solid #dde3ee;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8f9fc;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#contactForm .form-control:focus,
#contactForm .form-select:focus,
#applyForm .form-control:focus,
#applyForm .form-select:focus,
#verifyForm .form-control:focus,
#verifyForm .form-select:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 88, 184, .12);
}

#contactForm .form-control.is-invalid,
#contactForm .form-select.is-invalid,
#applyForm .form-control.is-invalid,
#applyForm .form-select.is-invalid,
#verifyForm .form-control.is-invalid,
#verifyForm .form-select.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

#contactForm textarea.form-control,
#applyForm textarea.form-control,
#verifyForm textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

#contactForm .invalid-feedback,
#applyForm .invalid-feedback,
#verifyForm .invalid-feedback {
    font-size: 13px;
}

#contactForm button[type="submit"],
#applyForm button[type="submit"],
#verifyForm button[type="submit"] {
    border: none;
    margin-top: 6px;
    font-size: 16px;
    padding: 14px 20px;
}

#contactForm button[type="submit"]:disabled,
#applyForm button[type="submit"]:disabled,
#verifyForm button[type="submit"]:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.contact-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-alert {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-form-alert.alert-success {
    background: rgba(25, 135, 84, .1);
    color: #146c43;
    border: 1px solid rgba(25, 135, 84, .25);
}

.contact-form-alert.alert-danger {
    background: rgba(220, 53, 69, .1);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, .25);
}

@media (max-width: 575.98px) {
    .contact-modal-content .modal-header,
    .contact-modal-content .modal-body {
        padding: 20px;
    }
}

/* Certificate verification page */
.verify-section {
    position: relative;
    background: radial-gradient(1200px 480px at 50% -120px, rgba(217, 154, 36, .12), transparent 60%),
                linear-gradient(180deg, var(--soft-blue) 0%, #fff 420px);
}

.verify-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 4px 52px 48px;
    box-shadow: 0 30px 70px rgba(6, 47, 111, .14), 0 2px 0 rgba(6, 47, 111, .02);
    overflow: hidden;
}

.verify-card::before {
    content: "";
    display: block;
    height: 6px;
    margin: 0 -52px 44px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.verify-header {
    text-align: center;
    margin-bottom: 8px;
}

.verify-seal {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.verify-seal.is-valid {
    background: linear-gradient(135deg, #23a866, #157347);
    box-shadow: 0 12px 28px rgba(21, 115, 71, .32);
}

.verify-seal.is-expired {
    background: linear-gradient(135deg, var(--gold-light), #b5790f);
    box-shadow: 0 12px 28px rgba(181, 121, 15, .32);
}

.verify-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}

.verify-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 20px;
}

.verify-status.is-valid {
    background: rgba(25, 135, 84, .1);
    color: #157347;
}

.verify-status.is-expired {
    background: rgba(217, 154, 36, .12);
    color: #9c6f0f;
}

.verify-title {
    color: var(--primary);
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -.5px;
}

.verify-cert-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: #fff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 8px 16px;
    border-radius: 8px;
}

.verify-cert-chip i {
    color: var(--gold-light);
}

.verify-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0 28px;
}

.verify-standards {
    background: var(--soft-blue);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.verify-standards .section-label i,
.verify-info-block .section-label i {
    color: var(--gold);
    margin-right: 6px;
}

.verify-standards-value {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

.verify-standards-label {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.verify-info-row {
    margin-bottom: 8px;
}

.verify-info-block {
    height: 100%;
    background: #fbfcfe;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.verify-info-name {
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    margin-top: 6px;
}

.verify-info-text {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 4px;
}

.verify-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 20px;
}

.verify-dates div {
    flex: 1 1 160px;
    background: #f8fafd;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.verify-dates span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--muted);
    margin-bottom: 2px;
}

.verify-footnote {
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin: 0;
    line-height: 1.7;
}

.verify-footnote i {
    color: var(--gold);
    margin-right: 4px;
}

.verify-timestamp {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--muted);
    opacity: .8;
}

@media (max-width: 575.98px) {
    .verify-card {
        padding: 4px 22px 30px;
    }

    .verify-card::before {
        margin: 0 -22px 30px;
    }
}

/* Certification application page */
.apply-section {
    background: linear-gradient(180deg, var(--soft-blue) 0%, #fff 320px);
}

.apply-intro {
    position: sticky;
    top: 100px;
}

.apply-steps {
    position: relative;
    margin-top: 30px;
}

.apply-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 28px;
}

.apply-step::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--border), transparent);
}

.apply-step:last-child {
    padding-bottom: 0;
}

.apply-step:last-child::before {
    display: none;
}

.apply-step-number {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(6, 47, 111, .2);
    position: relative;
    z-index: 1;
}

.apply-step h6 {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.apply-step p {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
}

.apply-help-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 32px;
    box-shadow: 0 12px 28px rgba(6, 47, 111, .06);
}

.apply-help-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.apply-help-card h6 {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    margin: 0 0 2px;
}

.apply-help-card p {
    margin: 0;
}

.apply-help-card a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.apply-help-card a:hover {
    color: var(--primary);
}

.apply-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 24px 60px rgba(6, 47, 111, .1);
}

.apply-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.apply-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.apply-card-meta i {
    color: var(--gold);
    font-size: 12px;
}

.apply-fieldset {
    background: var(--soft-blue);
    border-radius: 12px;
    padding: 24px 24px 8px;
    margin-bottom: 24px;
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}

.apply-fieldset:focus-within {
    background: #eaf3fe;
    box-shadow: 0 0 0 3px rgba(23, 88, 184, .12);
}

.apply-fieldset-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.apply-fieldset-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(6, 47, 111, .1);
    transition: transform .35s var(--ease), color .35s var(--ease);
}

.apply-fieldset:focus-within .apply-fieldset-icon {
    transform: scale(1.1) rotate(-4deg);
    color: var(--gold);
}

.apply-fieldset-header h6 {
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
}

.apply-fieldset .form-control,
.apply-fieldset .form-select {
    background: #fff;
}

#applyForm .form-control,
#applyForm .form-select {
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

#applyForm .form-control:focus,
#applyForm .form-select:focus {
    transform: translateY(-2px);
}

@keyframes applyStepPulse {
    0% { box-shadow: 0 8px 18px rgba(6, 47, 111, .2), 0 0 0 0 rgba(23, 88, 184, .35); }
    70% { box-shadow: 0 8px 18px rgba(6, 47, 111, .2), 0 0 0 9px rgba(23, 88, 184, 0); }
    100% { box-shadow: 0 8px 18px rgba(6, 47, 111, .2), 0 0 0 0 rgba(23, 88, 184, 0); }
}

.apply-step:first-child .apply-step-number {
    animation: applyStepPulse 2.6s ease-out infinite;
}

#applyForm button[type="submit"] i {
    transition: transform .3s var(--ease);
}

#applyForm button[type="submit"]:hover i {
    transform: translateX(4px) translateY(-2px) rotate(8deg);
}

@media (max-width: 991.98px) {
    .apply-intro {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .apply-card {
        padding: 26px 20px;
    }
}

/* Rules & Regulations page */
.rule-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid var(--border);
    border-radius: 8px;
    transition: background .25s var(--ease);
}

.rule-row:hover {
    background: var(--soft-blue);
}

.rule-row:last-child {
    border-bottom: none;
}

.rule-row i {
    color: var(--gold);
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.rule-row p {
    margin: 0;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.65;
}

.rule-row p strong {
    color: var(--primary);
    font-weight: 800;
}

/* Company Policy page */
.policy-hero {
    background: linear-gradient(180deg, var(--soft-blue) 0%, #fff 100%);
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.policy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(6, 47, 111, .06);
}

.policy-meta i {
    color: var(--gold);
    font-size: 12px;
}

/* Audit Requirements memo header */
.audit-memo {
    padding: 0;
}

.audit-memo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
}

.audit-memo-row:last-child {
    border-bottom: none;
}

.audit-memo-row span {
    flex: 0 0 90px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .3px;
}

.audit-signoff {
    padding: 0;
    margin-bottom: 8px;
}

/* Impartiality risk cards */
.risk-card {
    padding-top: 24px;
}

.risk-card-number {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1;
    font-size: 24px;
    font-weight: 800;
    color: var(--border);
    letter-spacing: .5px;
    transition: color .35s var(--ease);
}

.risk-card:hover .risk-card-number {
    color: var(--gold);
}
