
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0c0c0f url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%231a1a1a" width="100" height="100"/><path fill="%23121218" d="M0,0 L100,100 M100,0 L0,100"/></svg>');
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles
/* Header Styles - Made Sticky */
header {
    background: linear-gradient(to bottom, #2c1a1a 0%, #1a1010 100%);
    border-bottom: 2px solid #d35400;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
} 

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: linear-gradient(to right, #d35400, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(211, 84, 0, 0.3);
    margin-left: 10px;
}

/* This ensures the link inherits the gradient properly */
.logo h1 a {
    color: inherit;
    text-decoration: none;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

.logo-icon {
    font-size: 2.5rem;
    color: #d35400;
    text-shadow: 0 0 10px rgba(211, 84, 0, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12;
    background: rgba(211, 84, 0, 0.2);
}

.auth-buttons {
    display: flex;
}

.btn {
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(to right, #d35400, #f39c12);
    color: #fff;
    border: 1px solid #d35400;
}

.btn-register {
    background: linear-gradient(to right, #d35400, #f39c12);
    color: #fff;
    border: 1px solid #d35400;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* ===== HERO WRAPPER ===== */
.hero{
  position: relative;
  /* isolation: isolate; keeps filters inside */
  min-height: var(--hero-min-h);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-block: 2px solid var(--forge-ember);
  background: var(--forge-bg);
}

/* background image (use your attachment here) */
.hero-bg{
  position:absolute;
  inset:0;
  background: url("../assets/image/hero-bg.png") center/cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
  z-index:-3;
}

/* soft vignette to focus center */
.hero-vignette{
  position:absolute; inset:-10%;
  background:radial-gradient(70% 60% at 50% 40%,
    transparent 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.7) 100%);
  z-index:-2;
  pointer-events:none;
}

/* central molten glow (matches reference) */
.hero-glow{
  position:absolute; inset:0;
  background:
    radial-gradient(450px 220px at 50% 52%,
      rgba(243,156,18,0.20) 0%,
      rgba(243,156,18,0.10) 35%,
      rgba(211,84,0,0.05) 55%,
      transparent 70%);
  mix-blend-mode: screen;
  z-index:-1;
  pointer-events:none;
}

/* animated embers */
.hero-embers{
  position:absolute; inset:0;
  background-image:
    radial-gradient(2px 2px at 20% 80%, rgba(255,170,60,0.9) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 65% 70%, rgba(255,210,120,0.9) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(255,140,60,0.8) 40%, transparent 41%),
    radial-gradient(1.8px 1.8px at 75% 60%, rgba(255,200,120,0.8) 40%, transparent 41%);
  animation: emberFloat 10s linear infinite;
  opacity:.55;
  filter: blur(0.2px);
  pointer-events:none;
  z-index:-1;
}
@keyframes emberFloat{
  0%   { transform: translateY(10px); opacity:.55; }
  50%  { transform: translateY(-20px); opacity:.7; }
  100% { transform: translateY(10px); opacity:.55; }
}

/* ===== TEXT ===== */
.hero-inner{ padding: 96px 20px; }
.hero-title{
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing:.5px;
  line-height:1.15;
  color:#fff;
  text-shadow:
    0 0 18px rgba(211,84,0,0.45),
    0 2px 0 rgba(0,0,0,0.6);
  margin-bottom: 10px;
}
.hero-sub{
  max-width: 980px;
  margin: 10px auto 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color:#e7e5df;
  text-shadow: 0 0 6px rgba(0,0,0,0.65);
  padding-inline: 8px;
  opacity:.95;
}

/* optional CTA layout (matches your button styles) */
.hero-cta{
  margin-top: 28px;
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
}

/* Mobile adjustments */
@media (max-width: 768px){
  :root{ --hero-min-h: 56vh; }
  .hero-inner{ padding: 72px 16px; }
  .hero-border{ height:44px; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(211, 84, 0, 0.1) 0%, transparent 70%);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px rgba(211, 84, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background: rgba(26, 16, 16, 0.8);
    border: 1px solid #d35400;
    border-radius: 5px;
    padding: 20px;
    width: 200px;
    box-shadow: 0 0 15px rgba(211, 84, 0, 0.3);
}

.info-box h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-box p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: #121218;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #f39c12;
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgba(211, 84, 0, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-decoration: none;
    color: inherit;
}

.feature-card {
    background: linear-gradient(to bottom, #1e1e2a, #161620);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #d35400;
    box-shadow: 0 5px 20px rgba(211, 84, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #d35400;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Optional: better focus style for keyboard users */
.features-grid a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(243,156,18,0.45);
  border-radius: 6px;
}
.features-grid a { -webkit-tap-highlight-color: transparent; }

.features-grid a,
.features-grid a:link,
.features-grid a:visited {
  text-decoration: none;
  color: inherit;         /* no purple visited color */
  display: block;         /* whole card clickable */
}


/* Forum Preview */
.forum-preview {
    padding: 60px 0;
    background: #0c0c0f;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #161620;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

.forum-table th {
    background: linear-gradient(to bottom, #2c1a1a, #1a1010);
    color: #f39c12;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #d35400;
}

.forum-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.forum-table tr:last-child td {
    border-bottom: none;
}

.forum-table tr:hover {
    background: rgba(211, 84, 0, 0.1);
}

.forum-category {
    color: #f39c12;
    font-weight: bold;
}

.forum-threads, .forum-posts {
    text-align: center;
    color: #e0e0e0;
}

.forum-latest {
    color: #e0e0e0;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #1a1010 0%, #0c0c0f 100%);
    padding: 40px 0;
    border-top: 2px solid #d35400;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f39c12;
}

.copyright {
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .auth-buttons {
        margin-top: 20px;
        justify-content: center;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

.nav-menu {
    display: flex;
    position: static; /* This keeps it in normal flow but header is sticky */
}


.latest-news {
    background: linear-gradient(to bottom, #1a1010, #161616);
    border: 1px solid #d35400;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 0 20px rgba(211, 84, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.latest-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #d35400, #f39c12, #d35400);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-header h2 {
    color: #f39c12;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.section-header h2 i {
    margin-right: 12px;
    color: #d35400;
}

.header-ornament {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d35400, transparent);
    margin: 0 auto;
}

.news-article {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(40, 30, 30, 0.6);
    border-left: 3px solid #d35400;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-article:hover {
    background: rgba(60, 40, 40, 0.8);
    transform: translateX(5px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    margin-right: 20px;
    background: #2c1a1a;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #d35400;
}

.date-day {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
}

.date-month {
    font-size: 0.9rem;
    color: #e0e0e0;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.news-content p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-link {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #ffb347;
}

.news-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(3px);
}

.news-view-all {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.btn-news {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(to right, #d35400, #e67e22);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-news:hover {
    background: linear-gradient(to right, #e67e22, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

.btn-news i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-news:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .news-article {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 15px;
        flex-direction: row;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .date-day {
        margin-right: 10px;
    }
}

/* Wrapper positions buttons and progress */
.carousel-wrapper {
  position: relative;
  max-width: 900px;
  left: 10%;
  right: 10%;
  padding: 0.5rem 0; /* room for progress bar */
}

/* The scrolling row: keep the class name 'carausel' to match your JS */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* ✅ match JS’s implicit 16px */
  gap: 16px;
}

.carousel::-webkit-scrollbar { display: none; }

/* While dragging (your JS toggles this) */
.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* free-drag, JS snaps on release */
}

/* Cards */
.card {
  flex: 0 0 100%;     /* one card = full carousel width */
  max-width: 100%;    /* fill container; prevents peek */
  margin: 0;          /* center handled by width, not margins */
  scroll-snap-align: start;
  border-radius: .5em;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Arrow buttons */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.scroll-button.left  { left: .5rem; }
.scroll-button.right { right: .5rem; }

.scroll-button:hover { background: rgba(0,0,0,.8); }
.scroll-button:active { transform: translateY(-50%) scale(0.96); }

/* Responsive niceties */
@media (max-width: 600px) {
  .card { flex-basis: 16rem; }
  .scroll-button { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; }
  .carousel { padding: 0.75rem 3rem; }
  .carousel-progress { left: 3rem; right: 3rem; }
}

/* Image: full-bleed, cover, non-draggable */
.carousel .card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* crop to fill while keeping aspect */
  border-radius: inherit;    /* match .card rounding */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;      /* so dragging the carousel is easy */
  transition: transform .3s ease, filter .3s ease;
}

/* Subtle hover pop (optional) */
.carousel .card:hover img {
  transform: scale(1.03);
  filter: brightness(1.03);
}

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;        /* make it larger */
  color: #f39c12;         /* match your theme */
  margin-bottom: 1rem;    /* space below icon */
  text-shadow: 0 0 10px rgba(243,156,18,0.5);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

p{
    text-align: center;
}
