/* ====== BASE RESET ====== */
body {
  margin: 0;	
  font-family: 'Arial', sans-serif;
  color
: #333;
}

/* ====== HEADER ====== */
#site-header {
  background-color: #000;
  padding: 10px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.site-logo img {
  height: 60px;
  max-width: 100%;
  width: auto;
  padding-right: 100px;
}

/* ====== MENU ====== */
.main-menu ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ====== SEARCH BAR BELOW HEADER ====== */
.header-search {
  background: none;
  padding: 10px 0;
  text-align: right;
  max-width: 1200px;
  margin: 0 auto;
}

.header-search form {
  display: inline-flex;
  gap: 0.5rem;
}

.header-search input[type="search"] {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ====== HERO & WELCOME SECTION = KEEP ===== */
.hero-banner img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ====== HOMEPAGE ONLY — Full-width fix */
.path-home .layout-content {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 auto !important;
}


/* ====== Welcome section styling ====== */
.path-home .welcome-text {
  background: linear-gradient(to bottom, #f7f7f7, #e0e7f0);
  padding: 40px 20px 20px; /* top 40, sides 20, bottom 20 */
  text-align: center;
  border-top: 5px solid #1261A0;
  border-bottom: 5px solid #1261A0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  width: 100%;
  margin: 0 !important; /* replaces separate top/bottom resets */
}

.path-home .welcome-text h2 {
  font-family: 'Luckiest Guy', cursive;
  color: #1261A0;
  font-size: 2.75rem;
  letter-spacing: 1.8px;
}

.path-home .welcome-text p {
  font-size: 1.15rem;
  max-width: 900px;
  margin: -10px auto;
  padding-bottom: 40px !Important;
}


/* ====== SCRITTOR PROFILES ====== */
.scrittor-profile {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fff;
  border: 3px solid #999;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  overflow: hidden; /* merge here */
}


.profile-layout {
  display: table;
  width: 100%;
}

.profile-left, .profile-right {
  display: table-cell;
  vertical-align: top;
  padding: 1.5rem;
}

.profile-left {
  width: 60%;
}

.profile-right {
  width: 40%;
}

.profile-left > div:nth-of-type(1) {
  margin-bottom: 2rem;
}

.profile-left > div:nth-of-type(2) {
  margin-top: 2rem;
}

.profile-thrc-icons-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-abilities {
  background-color: #e0f7fa;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #90c4d4;
  margin-top: 2rem;
}

.profile-right img, .profile-right figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

.profile-nickname {
  text-align: center;
  font-family: 'Arial', cursive;
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

/* === Increase spacing for profile page titles === */
.profile-title {
  letter-spacing: 3px; /* adjust as needed */
}

.profile-subtitle {
  letter-spacing: 2px; /* slightly less spacing for subtitle */
}

.fun-facts, .kingdom-link {
  background-color: #b2ebf2;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
}

/* === Spacing so THRC icons don’t break out on mobile */
.profile-thrc-icons-group {
  padding: 0 1rem;
}

/* Responsive fix: stack THRC rows on small screens */
@media (max-width: 600px) {
  .profile-thrc-icons-row {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-thrc-icon {
    flex: unset;
    width: 100%;
  }

  .profile-left, .profile-right {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }

  .scrittor-profile {
    padding: 1rem;
  }



/* ======== PROFILE CARDS ==== */
.profile-card-image-top {
  width: 100%;
  margin-bottom: 1rem;
}
.profile-card-image-top img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* ==== Responsive Fix: THRC icon stacking ==== */
@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
  }


/* Mobile-only improvements for single Scrittor profile page */
@media (max-width: 768px) {
  
  /* Make intro section full width */
  .scrittor-profile .profile-left {
    width: 100% !important;
    padding: 0 1rem !important; /* small side padding */
    display: block;
  }

  /* Center and enlarge the profile image */
  .scrittor-profile .profile-right {
    width: 100% !important;
    padding: 1rem 0 !important;
    text-align: center; /* center the image */
  }

  /* Make image bigger on mobile */
  .scrittor-profile .profile-right img {
    max-width: 85% !important; /* larger than default */
    margin: 0 auto 1rem auto; /* center with margin */
  }

  /* Move the image closer to the top */
  .scrittor-profile .profile-right {
    margin-top: 1rem; /* smaller top margin */
  }
}


  .profile-left,
  .profile-right {
    width: 100%;
    padding: 1rem 0;
  }

  .profile-thrc-icons-row {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-thrc-icon {
    width: 100%;
  }
}
}


/* ====== THRC ICON GRID ====== */
.profile-thrc-icons-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-thrc-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  flex: 1;
}

.profile-thrc-icon img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

.icon-text {
  font-weight: bold;
  font-size: 1rem;
}

.icon-text em {
  display: block;
  font-weight: normal;
  font-style: italic;
  color: #666;
}



/* ====== Scrittor Gallery Grid (Flexbox Unformatted List, Cleaned) ====== */

/* Gallery Cards */
.scrittor-card {
  width: 250px;
  border: 2px solid #ccc;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrittor-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.scrittor-card a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.scrittor-card a:hover {
  text-decoration: underline;
}

.scrittor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Fix page edge padding (safe site-wide option) */
.layout-content {
  padding: 0 2rem;
}

/* Gallery Layout (Flexbox Grid) */
.view-gallery .view-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive: Full-width cards on small screens */
@media (max-width: 600px) {
  .scrittor-card {
    width: 100%;
    max-width: 320px;
  }
}

/* Title Styling (Scrittor Name) */
.scrittor-card .views-field-title {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #345678;
}

/* Nickname Styling (Smaller, Italic, Blue) */
.scrittor-card .views-field-field-nickname {
  font-style: italic;
  color: #2c90c6;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.view-gallery .views-row {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* ====== Base Resets ====== */


/*====================SEARCH*/
/* ====== Search Section BELOW Header ====== */
.header-search {
  background: none; /* Remove black background */
  padding: 10px 0;  /* Add vertical space below header */
  text-align: right;
  max-width: 1200px;
  margin: 0 auto;
}

.header-search form {
  display: inline-flex;
  gap: 0.5rem;
}

.header-search input[type="search"] {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}



/* ====== Hero & Welcome Gradient ====== */
.hero-banner img {
  width: 100%;
  height: 450px; /* fixed height */
  object-fit: cover; /* crops to fill the area */
  object-position: center center; /* centers the cropping */
  display: block;
}

.welcome-text {
  background: linear-gradient(to bottom, #f7f7f7, #e0e7f0);
  padding: 40px 20px;
  text-align: center;
  border-top: 5px solid #1261A0;
  border-bottom: 5px solid #1261A0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.welcome-text h2 {
  font-family: 'Luckiest Guy', cursive;
  color: #1261A0;
  font-size: 2.75rem;
  letter-spacing: 1.8px;
  text-align: center;
}

.welcome-text p {
  color: #333;
  font-size: 1.15rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ====== Titles Styling ====== */
h1, h2.title, .section-heading {
  font-family: 'Luckiest Guy', cursive;
  color: #1261A0;
  text-align: center;
  letter-spacing: 1.5px;
}

.profile-title {
  text-align: center;
  font-size: 3rem;
}

.profile-subtitle {
  font-family: 'Luckiest Guy', cursive;
  font-size: 2rem;
  text-align: left;
  color: #1261A0;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

/* ====== Scrittor Profile Section ====== */
.scrittor-profile {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffffff;
  border: 3px solid #999;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}

/* === TABLE-LIKE PROFILE LAYOUT === */

.profile-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-left,
.profile-right {
  flex: 1 1 100%;
  padding: 1.5rem;
}


.profile-left {
  width: 60%;
}

.profile-right {
  width: 40%;
}

/* Spacing after intro paragraphs before Lore */
.profile-left > div:nth-of-type(1) {
  margin-bottom: 2rem;
}

/* Add more space above Lore */
.profile-left > div:nth-of-type(2) {
  margin-top: 2rem;
}

/* Padding after THRC icons before Lore */
.profile-thrc-icons-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem; /* Added spacing below Heart/Role icons */
}

/* Spacing before Abilities Box */
.profile-abilities {
  background-color: #e0f7fa;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #90c4d4;
  margin-top: 2rem;
}

.profile-nickname {
  text-align: center;
  font-family: 'arial', cursive;
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 1.2rem; /* Enlarged slightly */
 /* letter-spacing: 1px; /* Increased letter spacing */
  color: #333;
}

.fun-facts,
.kingdom-link {
  background-color: #b2ebf2;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
}

/* ====== THRC ICON GRID ====== */
.profile-thrc-icons-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-thrc-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  flex: 1;
}

.profile-thrc-icon img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

.icon-text {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

.icon-text em {
  display: block;
  font-weight: normal;
  font-style: italic;
  color: #666;
}


/* ==== SCRITTOR CARD STYLING === */

/* Grid container */
.scrittor-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  justify-items: center;
}

/* Individual Card */
.scrittor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px;
  height: 280px;
  background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
  border: 2px solid #ccc;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 1rem 1rem 0.5rem 1rem; /* tightened bottom padding */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Image wrapper: vertically centered in top 2/3 
.scrittor-image-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 180px; /* Force top section size 
  padding-bottom: 0.25rem;
}*/


/* Image itself */
.scrittor-card img {
  max-width: 240px; 
  max-height: 210px; 
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* Footer: force lower alignment *
.scrittor-footer {
  margin-top: auto;
  padding-top: 0.25rem;
  padding-bottom: 0; /* fully collapsed */
}

/* Typography */
.scrittor-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: -0.1rem;
  text-transform: capitalize !important; /* Capitalized each word */}

.scrittor-nickname {
  font-size: 0.70rem !important;
  font-style: italic;
  font-weight: 500;
  color: #1261A0 !important;
  margin-top: 0.15rem;
  margin-bottom: 0;
  line-height: 1;
}


.scrittor-card {
  padding: 1rem 1rem 0.5rem;
}

.scrittor-image-wrapper {
  padding: 0;
  min-height: 180px;
}

@media (min-width: 768px) {
  .profile-left {
    flex: 0 0 60%;
  }

  .profile-right {
    flex: 0 0 40%;
  }
}




.profile-right img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* ====== SCRITTOR PROFILES LAYOUT RESTORE ====== */
.profile-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.profile-left,
.profile-right {
  flex: 1;
  padding: 1.5rem;
}

/* === Restore .scrittor-card size, border, and hover === */
.scrittor-card {
  width: 250px;
  border: 2px solid #ccc;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrittor-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.scrittor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* === Restore image sizing inside profile === */
.profile-right img,
.profile-right figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}


@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
  }

  /* Force intro first, image second on mobile */
  .profile-left { order: 1; }
  .profile-right { order: 2; }
}


@media (max-width: 768px) {
  .scrittor-profile {
    border: none;
    box-shadow: none;
    padding: 0 1rem; /* let text breathe */
  }
}

/* Hide hero slider by default on all pages */
.hero-banner,
#block-basileia-style-welcome {
  display: none;
}
/* === MOBILE FIXES FOR PROFILE PAGE === */
@media (max-width: 768px) {

  /* Reduce side padding so icons & abilities aren't cut off */
  .scrittor-profile {
    padding-left: 0.2rem; 
    padding-right: 0.2rem;
    box-sizing: border-box;
  }

  /* Make icons and ability boxes fit fully on screen */
  .profile-thrc-icon,
  .profile-abilities {
    width: 98% !important; /* give a bit more breathing room */
    max-width: 98% !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* Fix ability box spacing so it fits neatly */
  .profile-abilities {
    display: block;
    padding: 0.75rem;
    margin-top: 0.5rem; /* bring closer to lore */
    margin-bottom: 1rem;
  }

  /* Remove extra space before the TCG image */
  .profile-right img {
    margin-top: 0.4rem !important; /* tighter gap */
    margin-bottom: 0.75rem !important;
    width: 96%;
    max-width: 400px; /* slightly bigger but still responsive */
    display: block;
  }

  /* Align "Meet Sowella" with text instead of edge */
  .profile-subtitle {
    padding-left: 0.5rem;
  }
}

/* === DESKTOP: Align Meet Sowella heading */
.profile-subtitle {
  padding-left: 1.5rem; /* aligns with paragraph text */
  display: block;
  margin-bottom: 0.75rem;
}

/* === UNIVERSAL ABILITY BOX FIX === */
.profile-abilities div {
  display: block;
  margin-bottom: 0.6rem; /* slight space between abilities */
  line-height: 1.4;
}

/* Bold ONLY the titles (Ability1, Ability2) */
.profile-abilities div strong {
  display: block;
  font-weight: bold;
  margin-bottom: 0.1rem; /* remove extra gap below title */
}

/* === UNIVERSAL tighten spacing before card image === */
.profile-right img {
  margin-top: 0.4rem !important;
}

/* === PREVENT CUTOFF ON MOBILE ICONS & ABILITIES === */
@media (max-width: 768px) {
  .profile-abilities,
  .profile-thrc-icon {
    width: 98% !important;
    max-width: 98% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
  }
}
