@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap");
:root{--bg:#07090c;--panel:#0d1117;--panel2:#121820;--red:#ef2b2d;--orange:#ff6b35;--text:#f5f7fa;--muted:#a9b1bc;--line:rgba(239,43,45,.35);--shadow:0 18px 60px rgba(0,0,0,.35)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Cairo,"Segoe UI",Tahoma,Arial,sans-serif;background:radial-gradient(circle at 80% 0,rgba(239,43,45,.08),transparent 28%),var(--bg);color:var(--text);direction:rtl}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{width:min(1180px,92%);margin:auto}.section{padding:82px 0}.section-title{text-align:center;margin-bottom:38px}.section-title span{color:var(--red);font-weight:800}.section-title h2{font-size:clamp(28px,4vw,48px);margin:8px 0}.section-title p{color:var(--muted);max-width:760px;margin:auto;line-height:1.9}.topbar{position:sticky;top:0;z-index:1000;background:rgba(5,7,10,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.07)}.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:900}.brand-badge{width:48px;height:48px;border:1px solid var(--red);border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#301015,#111);box-shadow:0 0 25px rgba(239,43,45,.25)}.brand-badge:before{content:"🔥";font-size:24px}.brand strong{font-size:20px;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-weight:500;font-size:11px}.menu{display:flex;align-items:center;gap:26px;font-weight:700}.menu a{color:#d9dde4;position:relative}.menu a:hover,.menu a.active{color:#fff}.menu a.active:after{content:"";position:absolute;right:0;left:0;bottom:-28px;height:3px;background:var(--red);border-radius:4px}.nav-actions{display:flex;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--red);padding:12px 20px;border-radius:10px;font-weight:800;transition:.25s;cursor:pointer}.btn:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(239,43,45,.18)}.btn-primary{background:linear-gradient(135deg,var(--red),#b8101f);color:white}.btn-ghost{background:transparent;color:#fff}.hero{min-height:690px;display:flex;align-items:center;position:relative;overflow:hidden;border-bottom:1px solid rgba(239,43,45,.25)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#05070a 0%,rgba(5,7,10,.84) 43%,rgba(5,7,10,.2) 100%),url('../images/hero-firefighter.jpg') center left/cover no-repeat}.hero:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(239,43,45,.16);border-radius:50%;right:-220px;top:80px;box-shadow:0 0 0 45px rgba(239,43,45,.025),0 0 0 90px rgba(239,43,45,.018)}.hero-content{position:relative;z-index:2;max-width:720px;padding:84px 0}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:#ff7862;border:1px solid rgba(239,43,45,.35);background:rgba(239,43,45,.08);padding:8px 14px;border-radius:999px;font-weight:800}.hero h1{font-size:clamp(45px,7vw,82px);line-height:1.08;margin:22px 0}.hero h1 em{font-style:normal;color:var(--red)}.hero p{font-size:19px;color:#d1d5dc;line-height:1.9;max-width:650px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:42px;border:1px solid rgba(255,255,255,.1);background:rgba(10,13,17,.76);backdrop-filter:blur(10px);border-radius:16px;overflow:hidden}.stat{padding:20px;text-align:center;border-left:1px solid rgba(255,255,255,.08)}.stat:last-child{border-left:0}.stat strong{font-size:26px;display:block}.stat span{color:var(--muted);font-size:13px}.courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:linear-gradient(180deg,#111720,#0b0f14);border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:.28s}.card:hover{transform:translateY(-8px);border-color:rgba(239,43,45,.55)}.card-media{height:220px;overflow:hidden;position:relative}.card-media img{width:100%;height:100%;object-fit:cover;transition:.4s}.card:hover .card-media img{transform:scale(1.06)}.card-media:after{content:"";position:absolute;inset:auto 0 0;height:70%;background:linear-gradient(transparent,#0b0f14)}.badge{position:absolute;top:14px;right:14px;background:var(--red);padding:7px 10px;border-radius:8px;font-size:12px;font-weight:800;z-index:2}.card-body{padding:22px}.card h3{margin:0 0 10px;font-size:22px}.card p{color:var(--muted);line-height:1.8}.meta{display:flex;justify-content:space-between;color:#c5cad2;font-size:13px;border-top:1px solid rgba(255,255,255,.08);padding-top:16px;margin-top:16px}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature{padding:28px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.08);border-radius:16px}.feature-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:rgba(239,43,45,.12);border:1px solid var(--line);font-size:24px;margin-bottom:18px}.feature p{color:var(--muted);line-height:1.7}.dark-panel{background:linear-gradient(145deg,#0f141b,#080b0f);border:1px solid rgba(239,43,45,.18);border-radius:24px;padding:40px}.learning{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}.learning-visual{min-height:450px;border-radius:20px;background:linear-gradient(0deg,rgba(5,7,10,.75),rgba(5,7,10,.1)),url('../images/hero-portrait.jpg') center/cover;position:relative;overflow:hidden}.hud{position:absolute;left:24px;bottom:24px;right:24px;background:rgba(8,10,14,.78);border:1px solid var(--line);padding:20px;border-radius:16px;backdrop-filter:blur(10px)}.progress{height:10px;background:#272d35;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;width:78%;background:linear-gradient(90deg,var(--red),var(--orange))}.checklist{display:grid;gap:14px;margin:26px 0}.check{display:flex;gap:12px;align-items:center;color:#dce0e6}.check i{font-style:normal;color:#fff;background:var(--red);width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:13px}.cta{padding:58px;border-radius:24px;background:linear-gradient(115deg,rgba(239,43,45,.22),rgba(12,17,24,.96)),url('../images/course-firefighting.jpg') center/cover;border:1px solid rgba(239,43,45,.45);display:flex;align-items:center;justify-content:space-between;gap:25px}.cta h2{font-size:clamp(28px,4vw,48px);margin:0 0 10px}.cta p{color:#d6dae1}.footer{padding:45px 0 24px;border-top:1px solid rgba(255,255,255,.08);background:#05070a}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:30px}.footer h4{margin-top:0}.footer p,.footer a{color:var(--muted);line-height:2}.copyright{text-align:center;color:#7f8792;border-top:1px solid rgba(255,255,255,.06);margin-top:30px;padding-top:20px}.mobile-toggle{display:none}.page-hero{padding:110px 0 70px;background:linear-gradient(90deg,#080b0f,rgba(8,11,15,.72)),url('../images/course-emergency.jpg') center/cover;border-bottom:1px solid rgba(239,43,45,.25)}.dashboard{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 78px)}.sidebar{background:#090c11;border-left:1px solid rgba(255,255,255,.07);padding:28px 18px}.side-link{display:block;padding:13px 15px;border-radius:10px;color:#b8c0ca;margin-bottom:8px}.side-link.active,.side-link:hover{background:rgba(239,43,45,.12);color:white}.dash-main{padding:34px}.dash-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.dash-card{padding:22px;background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:16px}.dash-card strong{font-size:30px}.table{width:100%;border-collapse:collapse;background:var(--panel);border-radius:14px;overflow:hidden}.table th,.table td{padding:16px;text-align:right;border-bottom:1px solid rgba(255,255,255,.07)}.table th{color:#ff8876;background:#12171e}.form{display:grid;gap:14px}.input{width:100%;background:#0c1117;border:1px solid rgba(255,255,255,.12);color:white;padding:14px;border-radius:10px;outline:none}.input:focus{border-color:var(--red)}
@media(max-width:980px){.menu{position:fixed;inset:78px 0 auto;background:#080b0f;padding:22px;display:none;flex-direction:column;border-bottom:1px solid var(--line)}.menu.open{display:flex}.mobile-toggle{display:inline-flex}.nav-actions .btn-ghost{display:none}.courses-grid{grid-template-columns:repeat(2,1fr)}.features{grid-template-columns:repeat(2,1fr)}.learning{grid-template-columns:1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}.dashboard{grid-template-columns:1fr}.sidebar{display:none}.dash-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hero{min-height:760px}.hero:before{background:linear-gradient(0deg,#05070a 18%,rgba(5,7,10,.75) 62%,rgba(5,7,10,.2)),url('../images/hero-firefighter.jpg') 68% center/cover}.hero-content{padding-top:210px}.stats{grid-template-columns:repeat(2,1fr)}.stat{border-bottom:1px solid rgba(255,255,255,.08)}.courses-grid,.features,.footer-grid,.dash-cards{grid-template-columns:1fr}.cta{padding:34px 24px;flex-direction:column;align-items:flex-start}.section{padding:62px 0}.card-media{height:210px}.nav{height:70px}.brand strong{font-size:16px}}
.brand-logo{width:245px;max-height:62px;object-fit:contain;object-position:right center}.footer-logo{width:270px}.hero h1{max-width:830px;font-size:clamp(42px,5.8vw,72px)}.hero h1 em{display:inline;color:#ef2b2d}.card-media:before{content:"FIRE PRO ONE";position:absolute;left:12px;bottom:12px;z-index:3;background:rgba(5,7,10,.72);border:1px solid rgba(239,43,45,.75);padding:6px 9px;border-radius:7px;font-size:10px;font-weight:900;letter-spacing:1px;color:#fff;backdrop-filter:blur(6px)}
@media(max-width:640px){.brand-logo{width:180px}.hero h1{font-size:40px;line-height:1.25}}

/* Reference-inspired academy homepage */
.academy-home{background:#f2f3f5;color:#1f2933}.academy-home .topbar{background:rgba(12,13,16,.96)}.academy-home .academy-nav .nav{height:86px}.academy-home .academy-nav .brand-logo{width:210px}.ref-hero{min-height:610px;position:relative;overflow:hidden;background:url('../images/hero-firefighter.jpg') center/cover no-repeat;color:#fff}.ref-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,11,14,.98) 0%,rgba(10,11,14,.92) 38%,rgba(10,11,14,.34) 73%,rgba(10,11,14,.18) 100%),radial-gradient(circle at 76% 45%,rgba(239,43,45,.2),transparent 36%)}.ref-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;min-height:610px}.ref-copy{padding:70px 0;max-width:640px}.mini-cap{display:inline-block;color:#f5a39b;font-weight:800;margin-bottom:12px}.ref-copy h1{font-size:clamp(58px,7vw,98px);line-height:.98;margin:0 0 22px;font-weight:900}.ref-copy h1 em{font-style:normal;color:#ef473e}.ref-copy p{font-size:18px;line-height:2;color:#e7e8ec;max-width:620px}.ref-actions{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0}.hero-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}.hero-benefits div{text-align:center;padding:10px 6px}.hero-benefits b{display:block;color:#ef5b54;font-size:28px;margin-bottom:6px}.hero-benefits span{font-size:13px;line-height:1.5;color:#e9ebef}.hero-brand-panel{justify-self:end;text-align:center;display:none}.shield-mark{width:125px;height:145px;border:4px solid #ef473e;border-radius:22px 22px 45px 45px;display:grid;place-items:center;font-size:56px;margin:auto;background:rgba(0,0,0,.35)}.hero-brand-panel strong{display:block;font-size:26px;margin-top:14px}.hero-brand-panel small{letter-spacing:6px;color:#ef473e}.paths-shell{position:relative;margin-top:-48px;padding:72px 0 60px;background:#f6f7f8;clip-path:ellipse(82% 100% at 50% 100%);color:#202832}.paths-heading{text-align:center;margin-bottom:34px}.paths-heading span{color:#d75b51;font-weight:800}.paths-heading h2{font-size:42px;margin:6px 0 8px}.paths-heading p{color:#78818b}.path-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.path-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px rgba(30,38,48,.12);text-align:center;color:#303943;position:relative;transition:.25s}.path-card:hover{transform:translateY(-7px)}.path-card img{width:100%;height:125px;object-fit:cover;filter:saturate(.8)}.path-card:after{content:'FIRE PRO ONE';position:absolute;left:10px;top:95px;background:rgba(12,13,16,.72);color:#fff;border:1px solid rgba(239,43,45,.7);font-size:8px;padding:4px 6px;border-radius:5px}.path-card i{width:48px;height:48px;display:grid;place-items:center;margin:-24px auto 10px;border-radius:50%;background:#ef7068;color:#fff;font-style:normal;border:4px solid #fff;position:relative;z-index:2;font-weight:900}.path-card h3{font-size:15px;line-height:1.6;margin:0;padding:0 8px 20px}.knowledge-banner{margin-top:28px;background:linear-gradient(90deg,#34383d,#22262b);border-radius:14px;padding:22px 28px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px}.knowledge-banner strong{font-size:22px}.knowledge-banner em{font-style:normal;color:#ef7068}.knowledge-banner p{margin:7px 0 0;color:#d5d8dc}.academy-home .section{background:#0b0e12;color:#fff}.academy-home .footer{background:#06080b}.academy-home .section-title h2{color:#fff}
@media(max-width:1100px){.path-grid{grid-template-columns:repeat(3,1fr)}.ref-hero-grid{grid-template-columns:1fr}.ref-copy{max-width:700px}.ref-hero-overlay{background:linear-gradient(90deg,rgba(10,11,14,.96),rgba(10,11,14,.62))}}
@media(max-width:720px){.academy-home .academy-nav .brand-logo{width:160px}.ref-hero{min-height:720px;background-position:65% center}.ref-hero-grid{min-height:720px}.ref-copy{padding-top:185px}.ref-copy h1{font-size:54px}.hero-benefits{grid-template-columns:repeat(2,1fr)}.paths-shell{clip-path:none;margin-top:0;padding-top:55px}.path-grid{grid-template-columns:repeat(2,1fr)}.paths-heading h2{font-size:34px}.knowledge-banner{flex-direction:column;align-items:flex-start}.path-card img{height:115px}}


/* Exact style update based on the approved reference */
.academy-home{background:#f7f7f7}
.academy-home .topbar{background:#08090b;border-bottom:1px solid rgba(255,255,255,.08)}
.academy-home .academy-nav .nav{height:82px}
.academy-home .academy-nav .brand-logo{width:220px}
.academy-home .menu{gap:24px}
.academy-home .menu a{font-size:15px}
.academy-home .btn{border-radius:7px}
.ref-hero.exact-style{min-height:500px;background:#090a0c;position:relative;overflow:hidden;color:#fff;border-bottom:0}
.ref-hero.exact-style:before{content:"";position:absolute;top:0;right:0;width:58%;height:100%;background:url('../images/hero-reference-final.jpg') center/cover no-repeat;filter:saturate(1.05) contrast(1.05)}
.ref-hero.exact-style .ref-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#08090b 0%,#08090b 39%,rgba(8,9,11,.76) 55%,rgba(8,9,11,.12) 100%),linear-gradient(0deg,rgba(0,0,0,.18),rgba(0,0,0,.05));z-index:1}
.ref-hero.exact-style .ref-hero-grid{position:relative;z-index:3;display:block;min-height:500px}
.ref-hero.exact-style .ref-copy{width:50%;margin-left:auto;margin-right:0;padding:54px 0 46px;text-align:right}
.ref-hero.exact-style .mini-cap{font-size:14px;color:#f2f2f2;margin-bottom:10px;opacity:.9}
.ref-hero.exact-style h1{font-size:clamp(54px,6vw,88px);line-height:.98;margin:0 0 22px;letter-spacing:-1px}
.ref-hero.exact-style h1 em{display:block;color:#ef3c35;margin-top:6px}
.ref-hero.exact-style p{font-size:17px;line-height:1.95;color:#f2f2f2;max-width:620px;margin:0}
.ref-hero.exact-style .hero-benefits{grid-template-columns:repeat(4,1fr);gap:0;margin-top:30px;max-width:620px;border-top:1px solid rgba(255,255,255,.06)}
.ref-hero.exact-style .hero-benefits div{padding:18px 8px 12px;border-left:1px solid rgba(255,255,255,.08)}
.ref-hero.exact-style .hero-benefits div:last-child{border-left:0}
.ref-hero.exact-style .hero-benefits b{font-size:28px;color:#ed4b44}
.ref-hero.exact-style .hero-benefits span{font-size:13px;color:#fff}
.ref-hero.exact-style .ref-actions{margin:20px 0 0}
.hero-red-shape{position:absolute;right:-10px;bottom:0;width:210px;height:250px;background:linear-gradient(145deg,#ca1c24,#741017);clip-path:polygon(38% 0,100% 0,100% 100%,0 100%,22% 62%);z-index:2;border-left:2px solid rgba(255,255,255,.22);display:grid;place-items:center}
.hero-red-shape:before{content:"";position:absolute;inset:24px 20px 20px 48px;border:1px solid rgba(255,255,255,.18);clip-path:polygon(28% 0,100% 0,100% 100%,0 100%,20% 62%)}
.hero-red-shape span{font-size:66px;opacity:.12;transform:translate(24px,28px)}
.paths-shell{margin-top:-1px;padding:72px 0 55px;background:#fff;color:#202832;clip-path:ellipse(88% 100% at 50% 100%)}
.paths-heading span{color:#e06b62;font-weight:800}
.paths-heading h2{font-size:40px;color:#5e6268;font-weight:800}
.paths-heading p{display:none}
.path-grid{gap:14px}
.path-card{box-shadow:none;border:1px solid #eceef0;border-radius:12px;background:#fff}
.path-card img{height:118px;filter:saturate(.72) brightness(.95)}
.path-card:after{display:none}
.path-card i{background:#ef746b;width:46px;height:46px;margin-top:-23px;border-width:3px}
.path-card h3{color:#636a72;font-size:15px;padding-bottom:18px}
.knowledge-banner{margin-top:22px;background:linear-gradient(90deg,#202326,#2f3337);border-radius:12px;min-height:88px;padding:20px 28px}
.knowledge-banner strong{font-size:20px}
.knowledge-banner em{color:#ed665e}
.knowledge-banner .btn{order:2}
.academy-home #features{padding-top:70px}

@media(max-width:980px){
  .ref-hero.exact-style:before{width:100%;opacity:.62;background-position:65% center}
  .ref-hero.exact-style .ref-hero-overlay{background:linear-gradient(90deg,rgba(8,9,11,.97),rgba(8,9,11,.78))}
  .ref-hero.exact-style .ref-copy{width:72%;margin-left:auto}
  .hero-red-shape{display:none}
}
@media(max-width:720px){
  .ref-hero.exact-style{min-height:670px}
  .ref-hero.exact-style .ref-hero-grid{min-height:670px}
  .ref-hero.exact-style .ref-copy{width:100%;padding-top:180px}
  .ref-hero.exact-style h1{font-size:53px}
  .ref-hero.exact-style p{font-size:16px}
  .ref-hero.exact-style .hero-benefits{grid-template-columns:repeat(2,1fr)}
  .paths-shell{clip-path:none;padding-top:50px}
  .path-grid{grid-template-columns:repeat(2,1fr)}
}

/* Final hero background-image edition */
.ref-hero.exact-style{
  min-height:500px;
  background-image:url('../images/academy-hero-background.png');
  background-position:center top;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:#08090b;
}
.ref-hero.exact-style:before,
.ref-hero.exact-style .ref-hero-overlay,
.ref-hero.exact-style .hero-red-shape{display:none!important}
.ref-hero.exact-style .ref-copy{opacity:0;pointer-events:none;user-select:none}
@media(max-width:980px){
  .ref-hero.exact-style{background-position:center top;background-size:cover;min-height:460px}
  .ref-hero.exact-style .ref-hero-grid{min-height:460px}
}
@media(max-width:720px){
  .ref-hero.exact-style{background-position:center top;background-size:cover;min-height:310px}
  .ref-hero.exact-style .ref-hero-grid{min-height:310px}
  .ref-hero.exact-style .ref-copy{display:none}
}

/* 2026 final academy hero — approved FirePro One control-room style */
.ref-hero.exact-style{
  width:100%;
  min-height:0;
  aspect-ratio:1659/948;
  background-image:url('../images/academy-hero-background.png');
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:#050608;
}
.ref-hero.exact-style .ref-hero-grid{min-height:100%;}
.ref-hero.exact-style .ref-copy,
.ref-hero.exact-style .ref-hero-overlay,
.ref-hero.exact-style .hero-red-shape,
.ref-hero.exact-style:before{display:none!important;}
@media(max-width:720px){
  .ref-hero.exact-style{
    aspect-ratio:1659/948;
    min-height:0;
    background-size:contain;
    background-position:center top;
  }
  .ref-hero.exact-style .ref-hero-grid{min-height:0;height:100%;}
}
/* تحسين وضوح صور المسارات والدورات */
.course-card img,
.track-card img,
.path-card img,
.courses img {
    width: 100%;
    height: 190px;
    object-fit: cover;

    /* زيادة الوضوح والتباين */
    filter: brightness(1.08) contrast(1.18) saturate(1.12);
    
    /* تحسين عرض الصورة */
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);

    border-radius: 14px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* وضوح أكبر عند تمرير الماوس */
.course-card:hover img,
.track-card:hover img,
.path-card:hover img {
    filter: brightness(1.13) contrast(1.25) saturate(1.18);
    transform: scale(1.035);
}
.course-card img,
.course-image img,
.track-card img,
.card img{
    width:100%;
    height:240px;      /* أو 260px حسب التصميم */
    object-fit:cover;  /* تملأ المربع بالكامل */
    object-position:center;
    display:block;

    border-radius:16px;

    filter:brightness(1.05) contrast(1.15) saturate(1.15);
    transition:.4s ease;
}

.course-card:hover img,
.track-card:hover img{
    transform:scale(1.05);
}
.course-card img{
    width:100%;
    height:240px;
    object-fit:contain;
    background:#111;
}
.course-card{
    overflow:hidden;
    border-radius:16px;
}

.course-image{
    width:100%;
    height:240px;
    overflow:hidden;
}

/* ===== FirePro One Academy — stability fixes (old style preserved) ===== */
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.profile-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.profile-tag { display:inline-flex; padding:7px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04); }
.profile-tag.good { color:#78e3a9; border-color:rgba(120,227,169,.25); }
.message .bubble.error { border-color:rgba(239,43,45,.45); color:#ffd7d8; }
button:disabled { opacity:.65; cursor:not-allowed; }
@media (max-width: 980px) {
  .menu { display:none; position:absolute; top:72px; right:16px; left:16px; padding:12px; background:#0d1218; border:1px solid rgba(255,255,255,.1); border-radius:14px; z-index:50; }
  .menu.open { display:flex; flex-direction:column; align-items:stretch; }
  .menu a { padding:11px 12px; }
}


/* Google sign-in — old Academy style preserved */
.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--muted);
  margin:18px 0;
  font-size:13px;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  height:1px;
  background:rgba(255,255,255,.10);
  flex:1;
}
.google-login-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  width:100%;
  min-height:48px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:#fff;
  color:#202124;
  text-decoration:none;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease;
}
.google-login-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(0,0,0,.24);
}
.google-g{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  color:#4285f4;
  font:800 20px Arial,sans-serif;
}

.google-only-login{width:min(560px,92%);margin:42px auto;text-align:center}
.google-only-login .login-welcome{color:#e63946;font-weight:800;margin-bottom:10px}
.google-only-login .login-subtitle{color:var(--muted,#9fa9b5);line-height:1.8;margin-bottom:26px}
.google-login-btn{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 22px;border-radius:14px;border:1px solid #dadce0;background:#fff;color:#202124;text-decoration:none;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:.2s}
.google-login-btn:hover{transform:translateY(-2px);box-shadow:0 15px 38px rgba(0,0,0,.28)}
.google-icon{width:26px;height:26px;display:inline-flex}.google-icon svg{width:100%;height:100%}
.google-login-note{margin-top:16px;color:var(--muted,#7f8996);font-size:14px}
.google-login-message{min-height:22px;margin-top:14px;color:#ff8b8e;font-weight:700}
.firefighter-avatar{width:54px;height:54px;border-radius:50%;overflow:hidden;border:2px solid #e63946;background:#111820;box-shadow:0 0 0 4px rgba(230,57,70,.10),0 0 24px rgba(230,57,70,.28);flex:0 0 54px}
.firefighter-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.firefighter-avatar-fallback{display:grid;place-items:center;font-size:28px}

/* ===== Google-only auth and firefighter avatar fixes ===== */
.google-only-login{width:min(560px,92%);margin:42px auto;text-align:center}
.google-login-btn{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 22px;border-radius:14px;border:1px solid #dadce0;background:#fff;color:#202124;text-decoration:none;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:.2s}
.google-login-btn:hover{transform:translateY(-2px);box-shadow:0 15px 38px rgba(0,0,0,.28)}
.google-icon{width:26px;height:26px;display:inline-flex}.google-icon svg{width:100%;height:100%;display:block}
.google-login-note{margin-top:16px;color:var(--muted,#7f8996);font-size:14px}
.google-login-message{min-height:22px;margin-top:14px;color:#ff8b8e;font-weight:700}
.firefighter-avatar,.trainer-dashboard-avatar{width:58px;height:58px;border-radius:50%;overflow:hidden;border:2px solid #e63946;background:#111820;box-shadow:0 0 0 4px rgba(230,57,70,.10),0 0 24px rgba(230,57,70,.28);flex:0 0 58px}
.firefighter-avatar img,.trainer-dashboard-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.trainer-dashboard-avatar{margin:12px 0 18px}

/* FirePro One Academy v3 — unified brand/navigation */
.brand-logo{width:210px;max-height:62px;object-fit:contain}.topbar .brand-badge,.topbar .brand>span{display:none!important}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.guide-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:28px}.certificate-sample-section{padding-bottom:20px}.certificate-sample{max-width:980px;margin:auto;padding:16px;background:#0d1117;border:1px solid rgba(239,43,45,.35);border-radius:18px;box-shadow:var(--shadow)}.certificate-sample img{width:100%;border-radius:10px}.trainer-dashboard-avatar{width:116px;height:116px;border:3px solid var(--red);border-radius:50%;padding:4px;overflow:hidden;margin:12px 0 24px;box-shadow:0 0 30px rgba(239,43,45,.28)}.trainer-dashboard-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}@media(max-width:900px){.guide-grid{grid-template-columns:1fr}.brand-logo{width:165px}}

/* FirePro One Academy v4 — legal/contact pages + distinct page backgrounds */
.footer-legal-links{display:flex;justify-content:center;align-items:center;gap:22px;flex-wrap:wrap;padding:8px 0 18px}.footer-legal-links a{color:#b8c0ca}.footer-legal-links a:hover{color:#fff}
.page-hero.certificates-hero{background:linear-gradient(90deg,rgba(5,7,10,.96),rgba(5,7,10,.58)),url('../images/hero-reference-final.jpg') center 35%/cover no-repeat}
.legal-hero{background:linear-gradient(90deg,rgba(5,7,10,.96),rgba(5,7,10,.62)),url('../images/academy-hero-background-original.jpg') center/cover no-repeat}
.contact-hero{background:linear-gradient(90deg,rgba(5,7,10,.96),rgba(5,7,10,.58)),url('../images/hero-firefighter.jpg') center 30%/cover no-repeat}
.legal-content h2{color:#fff;margin-top:30px}.legal-content h2:first-child{margin-top:0}.legal-content p{color:var(--muted);line-height:2}
.contact-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:24px}.contact-info{text-align:center}.contact-info img{width:min(300px,90%);margin:0 auto 26px}.contact-info p{color:var(--muted);line-height:1.9}.form textarea{resize:vertical}
@media(max-width:800px){.contact-grid{grid-template-columns:1fr}.page-hero{padding:80px 0 50px}}

/* Footer legal links: keep Privacy, Disclaimer and Contact in one straight row */
.footer-legal-links{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  justify-content:center;
  align-items:center;
  gap:24px;
  white-space:nowrap;
  width:100%;
}
.footer-legal-links a{display:inline-block;white-space:nowrap;}
@media(max-width:640px){
  .footer-legal-links{gap:12px;font-size:12px;overflow-x:auto;justify-content:center;}
}
