/* Base styles inherited from mainHome.css */


/* --- Main Layout --- */
.container {
  max-width: 1400px; /* Kept slightly tighter for text readability */
  margin: 120px auto 60px;
  padding: 0 24px;
}

/* Ad Column Styling */
.fixed-column {
  position: relative;
  height: fit-content;
}

.fixed-placeholder {
  width: 400px;
  height: 400px; /* Skyscraper height */
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  text-align: center;
}



.fixed-column-inline {
  display: flex;
  justify-content: center;
}

.fixed-placeholder-inline {
  width: 350px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  text-align: center;
}


/* Main wrapper holding left + right ads — grid for equal ad columns */
.main-wrapper {
  display: grid;
  grid-template-columns: 1fr 3.5fr 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  margin: 40px 0 140px 0;
}

/* .fixed-box base styles are in mainHome.css */

/* Mobile: stack ads vertically */
@media (max-width: 1000px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fixed-box {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .fixed-box a {
    max-width: 340px;
    aspect-ratio: 340 / 280;
  }
}

/* Center Content Column */
.main-content-single {
  max-width: 2200px;
  margin: 240px auto 60px;
  padding: 0 24px;
}

.main-content {
  width: 100%;
  min-width: 0; /* Prevents grid blowout */
}

.divider {
  width: 50%;
  height: 1px;
  background: var(--gold);
  margin: 60px auto;
  opacity: 0.3;
}

/* --- Hero Section --- */
.page-hero {
  text-align: center;
  padding: 40px 20px;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--gold), #f4e4c1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.page-hero p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Content Boxes --- */
.content-box {
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(212,175,55,0.04);
  margin: 30px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.content-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: -1;
}

.content-box h2 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
  padding-bottom: 15px;
  display: block;
  width: fit-content;
  min-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.content-center {
  text-align: center;
}

/* --- Video Container --- */
.video-placeholder {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto;
  position: relative;
  padding-bottom: 42.86%; /* 21:9 Cinematic Aspect Ratio */
  height: 0;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Tools Grid (Fido, Massgrave, etc) --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tool-card {
  background: rgba(15, 15, 20, 0.55);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: -1;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 24px rgba(201,168,106,0.12), 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}

.tool-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  margin-top: 15px;
}

.tool-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tool-card img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #333;
}

.btn-link {
  display: inline-block;
  color: var(--blue-highlight);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dashed var(--blue-highlight);
}

.btn-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --- Tabbed Box (For LTSB/LTSC/Win7) --- */
.tabbed-box {
  width: 89vw;
  max-width: 2200px;   /* prevents it from getting too wide on huge screens */
  margin: 20px auto;   /* centers it horizontally */
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(212,175,55,0.04);
  position: relative;
  isolation: isolate;
}
.tabbed-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: -1;
}



.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--gold);
  background: #000;
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  color: #aaa;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.tab-button:last-child {
  border-right: none;
}

.tab-button:hover {
  background: #151515;
  color: var(--gold);
}

.tab-button.active {
  background: #252525;
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
  margin-bottom: -1px;
}

.tab-content-wrapper {
  padding: 30px;
  min-height: 200px;
}

.tab-pane {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Download Lists within Tabs --- */
.download-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.download-list h4 {
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-align: center;
}

.download-list ul {
  list-style: none;
  padding: 0;
}

.download-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.download-list a {
  color: var(--blue-highlight);
  text-decoration: none;
  transition: color 0.2s;
}

.download-list a:hover {
  color: var(--gold);
}

/* --- Dual Section Grid (LTSB & LTSC side-by-side) --- */
.dual-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.split-box {
  display: flex;
  flex-direction: column;
}

.split-box h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- Sources Section --- */
.sources-section {
  text-align: center;
  margin: 60px 0;
  padding: 40px 20px;
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(212,175,55,0.04);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sources-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: -1;
}

.sources-title {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.sources-list {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.sources-list a {
  color: var(--blue-highlight);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sources-list a:hover {
  color: var(--gold);
}

/* Footer */
footer {
    background: var(--black);
    color: #ddd;
    padding: 50px 24px;
    margin-top: 40px;
}

.footer-grid {
    max-width: 2200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 0;
}

.footer-links a {
  display: block;
  color: #9aa0a6;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 18px;
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-links p {
  font-size: 22px;
  margin-bottom: 15px;
}
.policy {
  font-size: 16px;
  line-height: 1.6;
  color: #aaa;
}
.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.requestlink {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}
.contact-area {
  text-align: center;
  padding: 40px;
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  border-top: 2px solid var(--gold);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(212,175,55,0.04);
  margin-top: 20px;
  margin-bottom: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: -1;
}
.social-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-item {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s;
}
.social-item img {
  width: 45px;
  height: 45px;
}
.social-item:hover {
  transform: translateY(-5px);
  color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* Show hamburger button (base styles in mainHome.css) */
  .ankh-hamburger {
    display: flex;
  }

  /* Nav becomes a slide-in mobile menu */
  .nav nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-left: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 24px 30px;
    overflow-y: auto;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
  }
  .nav nav.ankh-mobile-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .ankh-mobile-overlay.show {
    display: block;
  }

  /* Stack dropdown columns vertically */
  .dropdown-columns {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .dropdown-section {
    padding: 4px 0 !important;
  }
  .dropdown-section a {
    padding: 6px 0 !important;
    font-size: 0.88rem !important;
  }
  .dropdown-section h4 {
    font-size: 0.82rem !important;
  }
  .download-columns { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dual-section-grid { grid-template-columns: 1fr; }

  .ad-banner-left {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 420 / 80;
    margin: 15px auto;
  }
  .page-hero h1 { font-size: 2rem; }
  .content-box { padding: 20px; }
}

@media (max-width: 1024px){
  .tabbed-box { width: 78vw; }
}

@media (max-width: 1600px){
  .tabbed-box { width: 81.5vw; }
}

@media (min-width: 1600px){
  .tabbed-box { width: 88vw; }
}

@media (min-width: 1920px){
  .tabbed-box { width: 89vw; }
}