/* ================= GLOBAL ================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
    margin: 0;
    background: #0d0b1f;
    color: #eaeaf2;
    font-family: system-ui, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}
/* --- Card hover animation --- */
.asv-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.asv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  border-color: rgba(246, 196, 93, .35); /* matches your gold */
}

.asv-card:active {
  transform: translateY(-2px);
}

/* ================= PAGE LAYOUT ================= */
.page-content {
    padding: 40px 20px;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: linear-gradient(
        180deg,
        rgba(20,18,50,.92),
        rgba(12,10,30,.95)
    );
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* ================= TITLES ================= */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #f6c45d;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f6c45d, transparent);
    margin-top: 8px;
}

/* ================= CONTACT FORM ================= */
.contact-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #1b1938;
    color: #fff;
    font-size: 14px;
}

.contact-form button {
    margin-top: 10px;
    align-self: flex-start;
    padding: 12px 22px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    background: linear-gradient(135deg, #f6c45d, #e0a93a);
    color: #000;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.9;
}

.page-title{
    color:#f6c45d;
    margin-bottom:10px;
}

.post-meta{
    opacity:.6;
    font-size:14px;
    margin-bottom:25px;
}

.video-embed{
    margin:30px 0;
    border-radius:16px;
    overflow:hidden;
}

.video-embed iframe{
    width:100%;
    height:420px;
    border:0;
}

.post-content{
    line-height:1.8;
    font-size:16px;
}

.breadcrumb{
    font-size:13px;
    opacity:.7;
    margin-bottom:20px;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-card {
    background: linear-gradient(180deg, #151331, #0d0b1f);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.page-title {
    color: #f6c45d;
    font-size: 28px;
    margin-bottom: 12px;
}

.post-meta {
    opacity: .7;
    font-size: 14px;
    margin-bottom: 24px;
}

.post-content {
    line-height: 1.75;
    font-size: 16px;
}

.post-content h2,
.post-content h3 {
    color: #f6c45d;
    margin-top: 32px;
}

.video-embed {
    margin: 24px 0;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
    opacity: .75;
}

.page-container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.content-box {
    background: linear-gradient(180deg, #151331, #0d0b1f);
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 15px 50px rgba(0,0,0,.45);
}

.content-box h1 {
    color: #f6c45d;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 14px;
    opacity: .75;
    margin-bottom: 25px;
}

.video-wrapper {
    margin: 25px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.post-content {
    line-height: 1.75;
    font-size: 16px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #f6c45d;
    font-weight: 600;
}
.page-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-box {
    background: #151331;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.content-box h1 {
    color: #f6c45d;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.post-content {
    line-height: 1.8;
    font-size: 16px;
    color: #eaeaf2;
}

/* ---- Fix card title overflow ---- */
.blog-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* max lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* optional: keep Read more at bottom */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card .read-more {
  margin-top: auto;
}
/* Buttons / Links */
.cta-row{
  display:flex;
  justify-content:center;
  margin-top:18px;
}
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:#fff;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(246,196,93,.45);
  box-shadow:0 14px 28px rgba(0,0,0,.35);
}
.btn-primary{
  background:var(--accent);
  color:#000;
  border-color:rgba(246,196,93,.65);
}
.btn-primary:hover{
  border-color:rgba(246,196,93,.85);
}

.small-link{
  display:flex;
  justify-content:center;
  margin-top:12px;
  font-weight:800;
  color:rgba(255,255,255,.85);
}
.small-link a{
  color:var(--accent);
  text-decoration:none;
}
.small-link a:hover{
  text-decoration:underline;
}
.video-card img,
.latest-item img,
.carousel img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
/* ===== Blog Mobile Readability Fix ===== */
.blog-content,
article,
.post-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Make long text (hashtags/urls) wrap instead of breaking layout */
.blog-content,
.post-content,
article,
p,
h1, h2, h3, h4,
a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* MOBILE / TABLET tuning */
@media (max-width: 820px) {

  /* Main reading area */
  .container,
  main.container,
  main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Blog post article */
  article {
    padding: 22px 14px !important;
  }

  /* Titles */
  article h1 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  article h2 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-top: 18px !important;
  }

  /* Paragraphs */
  article p,
  .post-content p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  /* If you have a "meta/hashtags" block, reduce size */
  .post-meta,
  .hashtags,
  .tags {
    font-size: 14px !important;
    opacity: .85;
  }

  /* Make embeds behave */
  iframe,
  video {
    max-width: 100% !important;
  }
}

/* If your blog-post body uses inline styles with font-size:17px, this ensures it scales */
@media (max-width: 520px) {
  article p,
  .post-content p {
    font-size: 15.5px !important;
  }
}
/* Prevent text overflow on mobile */
article,
.post-content,
.blog-content,
p,
a,
h1, h2, h3, h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 820px) {
  article {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
  }
}
/* ===== BLOG LIST: Mobile layout fix (blog.php) ===== */

/* Always prevent long hashtags/urls from stretching the screen */
main.container article,
main.container article * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {

  /* Reduce top/bottom padding on mobile */
  main.container {
    padding: 26px 0 !important;
  }

  /* Stack thumbnail above text */
  main.container article {
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* Make thumbnail block full width */
  main.container article > a {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent weird sizing */
  main.container article img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Text sizing */
  main.container h1 {
    text-align: center;
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  main.container article h2 {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  main.container article p {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
  }
}
