/*
Theme Name: shahab-mehranfar Child
Template: shahab-mehranfar
Author: Chat GPT
Version: 1.0.1753779687
Updated: 2025-07-29 12:31:27


==============================================================================================

/* Playfair Display variable fonts ready f
or use */
@font-face {
    font-family: 'Playfair Display';
    src: url('Fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;  /* all normal weights */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('Fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;  /* all italic weights */
    font-style: italic;
    font-display: swap;
}


/* Hero container adjustments */
.hero-container {
    justify-content: space-between;
    padding-left: 2mm; /* Adds small left margin */
}

/* Hero image positioning */
.hero-image {
    margin-left: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-end; /* Makes image align with footer */
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    max-height: 100%;
}

/* Hero text adjustments */
.hero-text {
    text-align: left; /* Aligns text to the left */
    max-width: 500px;
}

.hero-text q {
    display: block;
    text-align: justify; /* Justifies the quote text */
    hyphens: auto; /* Adds hyphenation for better justification */
}

.hero-text h4 {
    text-align: left; /* Moves attribution to left */
    margin-top: 20px;
    font-style: italic;
    width: 100%;
}

==============================================================================================

/* === CEFR Cards Container === */
.cefr-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* full‑width stretch */
  background: #111;              /* dark background */
}

/* === Individual CEFR Card === */
.cefr-card {
  background: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;            /* adjust to your exact card height */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cefr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.7);
}

/* === Card Image or Placeholder === */
.cefr-card img {
  max-width: 100%;
  height: auto;
  display: block;
}
.cefr-placeholder-img {
  width: 100%;
  height: 120px;                /* placeholder image height */
  background: #333;
}

/* === Card Text === */
.cefr-card p {
  margin: 12px 8px 0;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
}







==============================================================================================


/* Container tweaks for comment form */
#commentform {
  max-width: 700px; /* shrinks form width a bit */
  margin: 0px auto 50px auto;
  font-family: 'Playfair Display', serif;
  color: #12221F;
}

/* Labels and instructions */
#commentform label,
.comment-notes,
.comment-notes a {
  color: #12221F !important;
  font-family: 'Playfair Display', serif;
}

/* Reduce vertical spacing between inputs */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
  width: 78%;  /* 22.5% narrower than full width */
  max-width: 450px;
  margin-bottom: 12px !important;
  padding: 10px;
  font-family: 'Times New Roman', serif;
  font-size: 16px;
  color: black;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  resize: none; /* disable textarea resizing */
}

/* Post Comment button styling */
#commentform input[type="submit"] {
  background-color: #e3ede5 !important;
  color: #12221F !important;
  font-weight: bold;
  padding: 12px 25px;
  border: 2px solid #12221F;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  display: inline-block;
  margin-top: 10px;
}

#commentform input[type="submit"]:hover {
  background-color: #12221F !important;
  color: #e3ede5 !important;
}

/* Remove horizontal lines if any */
#comments hr,
#reply-title hr,
#reply-title + hr {
  display: none !important;
}

/* Replace default "I would love to hear your thoughts" style */
#reply-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #12221F;
  margin-bottom: 0px !important; /* reduced gap */
}

/* Style “Your email address will not be published” text */
.comment-notes {
  font-family: 'Playfair Display', serif;
  color: #12221F !important;
  font-size: 15px;
  margin-top: 0px !important; /* reduce gap below heading */
}

/* Fix comment text area height and disable resizing */
#comment {
  height: 150px !important;
  resize: none !important;
}

/* Style saved data checkbox label */
#commentform p.comment-form-cookies-consent label {
  font-family: 'Playfair Display', serif;
  color: #12221F;
  font-size: 14px;
}
#comments hr,
#reply-title hr,
#reply-title + hr,
#reply-title::after {
  display: none !important;
  border: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the two horizontal lines around the comment form title */
#reply-title,
.comment-reply-title {
    border-top: none !important;
    border-bottom: none !important;
}

#comments hr {
    display: none !important;
}










/* Simple styling for shortcode bullets */
.sc-bullet {
  display: inline-block;
  width: 28px;             /* fixed symbol box (adjust if you want larger/smaller) */
  text-align: center;
  margin-right: 10px;
  font-size: 18px;         /* size of the symbol */
  line-height: 1;
  vertical-align: middle;
  color: #12221F;          /* default site dark-green; edit if needed */
}

/* Optional per-symbol tweaks (you can edit colours individually) */
.sc-boxwithcheck { color: #0b6b3a; } /* checked box green */
.sc-star         { color: #c59d1a; } /* gold */
.sc-check        { color: #0b6b3a; } /* green check */
.sc-dot          { color: #383838; } /* grey dot */

/* If you want them to behave like list bullets, remove default padding of parent list: */
ul.sc-inline-bullets { list-style: none; padding-left: 0; }
ul.sc-inline-bullets li { display: flex; align-items: center; gap: 8px; }




/* =========================
   Mobile Fix for Contact Form
   ========================= */
body:not(.front-page) {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
}

body:not(.front-page) #page {
  min-height: auto !important;
}

@media only screen and (max-width: 910px) {
  body:not(.front-page) #page {
    overflow: visible !important;
  }
}
