/* PART 1 - CSS VARIABLES, RESET & BASE LAYOUT */

:root{
  --bg:#0b0b10;
  --panel:rgba(0,0,0,.65);
  --panel2:rgba(0,0,0,.75);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --faint:rgba(255,255,255,.50);
  --line:rgba(255,255,255,.12);
  --brand:#f2c46d;
  --brand2:#7dd3fc;
  --ok:#34d399;
  --warn:#fbbf24;
  --danger:#fb7185;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
  --blur: blur(16px);
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    linear-gradient(180deg, rgba(11,11,16,.25), rgba(11,11,16,.15)),
    url("https://images.pexels.com/photos/1717868/pexels-photo-1717868.jpeg?auto=compress&cs=tinysrgb&w=1920") center/cover fixed no-repeat;
  color:var(--text);
  line-height:1.45;
  overflow-x:hidden;
  padding-bottom:120px;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding-top:18px; padding-left:18px; padding-right:18px}

/* EMERGENCY ALERT BANNER */
.alert-banner{
  position:relative;
  left:0;
  right:0;
  z-index:100;
  background: linear-gradient(135deg, rgba(251,113,133,.95), rgba(251,191,36,.85));
  border-bottom:2px solid rgba(251,113,133,.6);
  animation: slideDown .3s ease;
}

@keyframes slideDown{
  from{transform:translateY(-100%)}
  to{transform:translateY(0)}
}

.alert-content{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
}

.alert-icon{font-size:20px}
.alert-text{flex:1; font-weight:700; font-size:14px}
.alert-close{
  background:rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,.3);
  color:var(--text);
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
  font-size:16px;
  font-weight:700;
}

/* TOP BAR */
.topbar{
  position:relative; 
  width:100%;
  z-index:50;
  background: linear-gradient(180deg, rgba(11,11,16,.88), rgba(11,11,16,.58));
  backdrop-filter: var(--blur);
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 18px;
  max-width:var(--max);
  margin:0 auto;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brand img{
  width:60px;
  height:60px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  object-fit:contain;
  padding:6px;
}

.brand .t1{font-weight:800; letter-spacing:.2px; font-size:14px}
.brand .t2{font-size:12px; color:var(--muted)}

/* WEATHER WIDGET */
.weather-widget{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(0,0,0,.4);
  border:1px solid var(--line);
}

.weather-icon{font-size:24px}
.weather-info{display:flex; flex-direction:column; gap:2px}
.weather-temp{font-weight:700; font-size:14px}
.weather-location{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em}

/* NAVIGATION */
.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background: var(--panel);
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
  user-select:none;
}
.chip:hover{transform: translateY(-1px); background: var(--panel2); border-color: rgba(255,255,255,.18)}
.chip:active{transform: translateY(0)}

.chip.primary{
  background: linear-gradient(135deg, rgba(242,196,109,.22), rgba(125,211,252,.16));
  border-color: rgba(242,196,109,.35);
}

.chip.donate{
  background: linear-gradient(135deg, rgba(251,113,133,.25), rgba(251,191,36,.18));
  border-color: rgba(251,113,133,.40);
  font-weight: 700;
}
.chip.donate:hover{
  background: linear-gradient(135deg, rgba(251,113,133,.35), rgba(251,191,36,.28));
  border-color: rgba(251,113,133,.55);
}

/* QUICK CONTACT */
.quick-contact{margin-top:16px}
.mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
  justify-content:center;
}

/* GRID SYSTEM */
.grid{
  display:grid;
  gap:14px;
}

@media (min-width: 820px){
  .grid.cols-2{grid-template-columns: 1.25fr .75fr}
  .grid.cols-3{grid-template-columns: repeat(3, 1fr)}
}

/* SECTIONS */
section{margin-top:18px}

/* CARD */
.card{
  background: rgba(0,0,0,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 14px 50px rgba(0,0,0,.28);
}

.card h2{margin:0 0 8px 0; font-size: 16px; letter-spacing:-.01em}
.card p{margin:0; color:var(--muted); font-size: 13px}

.kicker{
  font-size:12px;
  color:var(--faint);
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
}

/* END OF PART 1 */
/* PART 2 - HERO CAROUSEL, BUTTONS & COMPONENTS */

/* HERO CAROUSEL */
.hero{
  margin-top:16px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  background: rgba(255,255,255,.03);
}

.carousel{position:relative; overflow:hidden}

.carousel-slide{
  display:none;
  opacity:0;
  transition: opacity .5s ease;
}

.carousel-slide.active{
  display:block;
  opacity:1;
}

.hero-media{
  position:relative;
  min-height: 58vh;
  max-height: 660px;
  display:flex;
  align-items:flex-end;
  justify-content:stretch;
}

.hero video,
.hero .fallback{
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.hero .fallback{
  background-size: cover;
  background-position:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(11,11,16,.10), rgba(11,11,16,.78) 70%, rgba(11,11,16,.92));
}

.hero-content{
  position:relative;
  width:100%;
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

@media (min-width: 820px){
  .hero-content{padding: 28px}
}

.headline{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width: 860px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.16em;
  text-transform:uppercase;
}

.dot{width:10px;height:10px;border-radius:999px;background:var(--ok); box-shadow: 0 0 24px rgba(52,211,153,.55)}

h1{
  margin:0;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height:1.05;
  letter-spacing:-.02em;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* CAROUSEL CONTROLS */
.carousel-prev,
.carousel-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.6);
  border:1px solid rgba(255,255,255,.2);
  color:var(--text);
  border-radius:50%;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:24px;
  z-index:10;
  transition: background .2s ease;
}

.carousel-prev:hover,
.carousel-next:hover{
  background:rgba(0,0,0,.8);
}

.carousel-prev{left:14px}
.carousel-next{right:14px}

.carousel-dots{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:10;
}

.carousel-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.4);
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
}

.carousel-dot.active{
  background:var(--brand);
  transform:scale(1.2);
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration:none;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22)}
.btn:active{transform: translateY(0)}
.btn.brand{
  background: linear-gradient(135deg, rgba(242,196,109,.30), rgba(125,211,252,.18));
  border-color: rgba(242,196,109,.35);
}
.btn.ghost{background: transparent}

/* ROWS */
.rows{display:flex; flex-direction:column; gap:10px}

.row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition: background .15s ease;
}
.row:hover{background: rgba(255,255,255,.08)}

.badge{
  flex:0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border:1px solid rgba(255,255,255,.14);
  color:var(--text);
  background: rgba(255,255,255,.06);
  white-space:nowrap;
}

.badge.gold{border-color: rgba(242,196,109,.35); background: rgba(242,196,109,.10)}
.badge.blue{border-color: rgba(125,211,252,.35); background: rgba(125,211,252,.10)}
.badge.green{border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10)}

.row .meta{display:flex; flex-direction:column; gap:3px; min-width:0}
.row .meta .title{font-weight:800; font-size: 14px; letter-spacing:-.01em}
.row .meta .desc{color:var(--muted); font-size: 13px}

/* LINK CARDS */
.dir{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.linkcard{
  flex: 1 1 210px;
  min-width: 210px;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.linkcard:hover{transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18)}

.linkcard .t{font-weight:900}
.linkcard .s{color:var(--muted); font-size: 13px; margin-top:4px}

/* VIDEO EMBED */
.video-embed{
  position:relative;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  border-radius:16px;
  background:rgba(0,0,0,.4);
  border:1px solid var(--line);
}
.video-embed iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}
.video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  text-align:center;
  padding:20px;
}

/* END OF PART 2 */
/* PART 3 - OBITUARIES, ANNOUNCEMENTS, FORMS & MODALS */

/* OBITUARIES */
.obit-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px){
  .obit-grid{grid-template-columns: repeat(2, 1fr)}
}

@media (min-width: 980px){
  .obit-grid{grid-template-columns: repeat(3, 1fr)}
}

.obit-card{
  background: rgba(0,0,0,.4);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.obit-card:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.18);
}

.obit-photo{
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}

.obit-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obit-info{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.obit-name{
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.obit-dates{
  color: var(--muted);
  font-size: 13px;
}

.obit-preview{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

.obit-service{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* DEATH ANNOUNCEMENTS */
.announcement-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px){
  .announcement-grid{grid-template-columns: repeat(2, 1fr)}
}

@media (min-width: 980px){
  .announcement-grid{grid-template-columns: repeat(3, 1fr)}
}

.announcement-card{
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announcement-card:hover{
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.18);
}

.announce-header{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.announce-photo-small{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.announce-photo-small img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announce-info-small{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.announce-name-small{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.announce-date-small{
  color: var(--muted);
  font-size: 12px;
}

.announce-preview{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FORMS */
form{display:flex; flex-direction:column; gap:10px}

.field{display:flex; flex-direction:column; gap:6px}
label{font-size: 12px; color: var(--muted)}
input, textarea, select{
  width:100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  font-family: inherit;
}
textarea{min-height: 110px; resize: vertical}
.hint{font-size: 12px; color: var(--faint)}

.actions{display:flex; gap:10px; flex-wrap:wrap}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding: 12px;
  padding-bottom: 72px;
  z-index: 200;
}
.modal.open{display:flex}
.backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55)}

.sheet{
  position:relative;
  width:min(980px, 100%);
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(14,14,20,.92);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: 85vh;
  display:flex;
  flex-direction:column;
  transform: translateY(10px);
  animation: up .18s ease forwards;
}

@keyframes up{to{transform: translateY(0)}}

.sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sheet-title{font-weight:900}
.sheet-actions{display:flex; gap:8px; align-items:center}

.iconbtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  transition: background .15s ease;
}

.iconbtn:hover{
  background: rgba(255,255,255,.12);
}

.sheet-body{padding: 12px 14px; overflow:auto}

.iframe{
  width:100%;
  height: 60vh;
  border:0;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

/* CALENDAR/EVENTS */
.calendar{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 820px){
  .calendar{grid-template-columns: 1fr 1fr}
}

.event{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  display:flex;
  gap:12px;
  align-items:flex-start;
  cursor:pointer;
  transition: background .15s ease;
}
.event:hover{background: rgba(0,0,0,.25)}
.event .date{
  min-width: 64px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  text-align:center;
}
.event .date .m{font-size: 11px; color: var(--muted); letter-spacing:.12em; text-transform:uppercase}
.event .date .d{font-size: 20px; font-weight:900; margin-top:2px}
.event .body{display:flex; flex-direction:column; gap:4px}
.event .body .t{font-weight:900}
.event .body .s{color:var(--muted); font-size: 13px}

/* END OF PART 3 */
/* PART 4 - STICKY PLAYER, FOOTER & UTILITIES */

/* STICKY PLAYER */
.player{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(207,75,0,.35), rgba(14,14,20,.95));
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: var(--blur);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.player.hidden{
  transform: translateY(50%);
}

.player-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.now{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

.pulse{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--danger);
  box-shadow: 0 0 0 rgba(251,113,133,.0);
  animation: pulse 1.3s ease-in-out infinite;
  flex:0 0 auto;
}

@keyframes pulse{
  0%{box-shadow: 0 0 0 0 rgba(251,113,133,.35)}
  60%{box-shadow: 0 0 0 14px rgba(251,113,133,0)}
  100%{box-shadow: 0 0 0 0 rgba(251,113,133,0)}
}

.now .txt{display:flex; flex-direction:column; gap:2px; min-width:0}
.now .txt .a{font-weight:900; font-size: 13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.now .txt .b{font-size: 12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.controls{display:flex; gap:8px; align-items:center}

.vol{display:flex; align-items:center; gap:8px}
input[type="range"]{accent-color: var(--brand)}

/* FOOTER */
footer{margin-top:18px; padding: 18px 0 10px; color: var(--muted); font-size: 13px}
.footgrid{display:grid; gap:12px}
@media (min-width: 820px){.footgrid{grid-template-columns: 1fr 1fr}}

/* UTILITIES */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* BLOG SPECIFIC STYLES */
.blog-post{
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.blog-post-header{
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.blog-post-title{
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -.02em;
}

.blog-post-meta{
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-post-image{
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.blog-post-content{
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

.blog-post-content p{
  margin: 0 0 14px 0;
}

.blog-post-content h3{
  margin: 24px 0 12px 0;
  font-size: 20px;
  font-weight: 700;
}

.blog-post-content ul,
.blog-post-content ol{
  margin: 0 0 14px 0;
  padding-left: 24px;
}

.blog-post-content li{
  margin-bottom: 8px;
}

/* PROGRAMMING PAGE STYLES */
.talent-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px){
  .talent-grid{grid-template-columns: repeat(2, 1fr)}
}

@media (min-width: 980px){
  .talent-grid{grid-template-columns: repeat(3, 1fr)}
}

.talent-card{
  background: rgba(0,0,0,.4);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.talent-card:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.18);
}

.talent-photo{
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}

.talent-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talent-info{
  padding: 14px;
}

.talent-name{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.talent-role{
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.talent-schedule{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.talent-bio{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* JOB BOARD STYLES */
.job-card{
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.job-card:hover{
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.18);
}

.job-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.job-title{
  font-weight: 800;
  font-size: 16px;
}

.job-company{
  color: var(--brand2);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-details{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.job-description{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* PHOTO GALLERY */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.gallery-item{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 1;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--line);
  transition: transform .15s ease;
}

.gallery-item:hover{
  transform: scale(1.02);
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: var(--text);
  font-size: 13px;
}

/* NEWSLETTER SIGNUP */
.newsletter-box{
  background: linear-gradient(135deg, rgba(242,196,109,.15), rgba(125,211,252,.10));
  border: 1px solid rgba(242,196,109,.25);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.newsletter-box h3{
  margin: 0 0 8px 0;
  font-size: 20px;
}

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

.newsletter-form{
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input{
  flex: 1;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 820px){
  .topbar-inner{
    flex-direction: column;
    align-items: stretch;
  }
  
  .weather-widget{
    order: -1;
    justify-content: center;
  }
  
  .nav{
    justify-content: center;
  }
  
  .player-inner{
    flex-direction: column;
    gap: 10px;
  }
  
  .controls{
    width: 100%;
    justify-content: space-between;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top{
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .2s ease;
  font-size: 24px;
}

.back-to-top.show{
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

.back-to-top:active{
  transform: translateY(-2px);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px){
  /* Move back-to-top button up on mobile */
  .back-to-top{
    bottom: 120px; /* Moved up from 100px by 20px */
  }
}

/* END OF PART 4 */
