/* Global Styles */
body {
    font-family: "Vazir", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0fdf4;
    color: #1e3a8a;
}

header, footer {
    background: linear-gradient(to left, #38bdf8, #34d399);
    color: white;
    padding: 1rem;
    text-align: center;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    padding: 2rem;
}

/* Form Styles */
form {
    margin-top: 2rem;
}

.form-field {
    margin-bottom: 20px;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 45px;
}

.calendar-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6f42c1;
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

/* Error Messages */
.error, .error-text {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Button Styles */
.btn-cta {
    background-color: #6a1b9a;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%; /* Makes it responsive on small screens */
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #4a148c;
}

@media (min-width: 768px) {
    .btn-cta {
        width: auto; /* Keep it compact on desktop */
    }
}

form {
    padding: 20px 15px;
    box-sizing: border-box;
}



.btn-primary {
  background-color: #6a1b9a;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #4a148c;
}


.form-submit {
  text-align: center;
  margin-top: 20px;
}



/* Persian Datepicker Customization */
.datepicker-plot-area {
    font-family: 'Vazirmatn', sans-serif;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.datepicker-header {
    background-color: #6f42c1;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.datepicker-day-view .datepicker-table td.selected {
    background-color: #6f42c1;
    color: white;
    border-radius: 50%;
}

.datepicker-day-view .datepicker-table td:hover {
    background-color: #d1c4e9;
    cursor: pointer;
}

.datepicker-plot-area .month-item,
.datepicker-plot-area .year-item {
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: url("/static/images/school.jpeg") no-repeat center center;
    background-size: cover;
    padding: 100px 20px;
    color: white;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 5px #000;
}

.hero p {
    font-size: 20px;
    text-shadow: 1px 1px 4px #000;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
    text-align: center;
}

.feature {
    padding: 20px;
    border-radius: 15px;
    background: #f7f5ff;
    border: 1px solid #e0dcf2;
    transition: 0.3s ease;
}

.feature:hover {
    background: #ece8ff;
}

.feature img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Call-to-Action */
.cta {
    text-align: center;
    margin: 40px 0;
}

.cta a {
    background: #5c2d91;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s ease;
}

.cta a:hover {
    background: #432174;
}

/* About Page */
.about-container {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    line-height: 2;
    font-size: 18px;
    color: #333;
    text-align: justify;
}

.about-container h2 {
    text-align: center;
    color: #5c2d91;
}

.about-container p {
    margin-bottom: 20px;
}

.about-container p:last-child {
    font-weight: bold;
    font-size: 20px;
    color: #5c2d91;
}

.centered-text {
    text-align: center;
    margin-top: 20px;
}


.map-wrapper {
    width: 100%;
    max-width: none;
    overflow: hidden;
}


.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: none;
    overflow: hidden;
}


.talent-highlight {
    background: linear-gradient(to bottom, #f8f2ff, #fefcff);
    padding: 50px 20px;
    text-align: center;
    border-radius: 24px;
    margin: 60px auto;
    box-shadow: 0 8px 24px rgba(180, 139, 255, 0.15);
    max-width: 960px;
}

.talent-highlight h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7b2cbf;
    margin-bottom: 15px;
}

.talent-highlight .subtitle {
    font-size: 1.1rem;
    color: #4b4b4b;
    margin-bottom: 30px;
}

.talent-highlight .quotes blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-right: 20px;
}

.talent-highlight .quotes blockquote::before {
    content: "❝";
    font-size: 1.5rem;
    color: #c084fc;
    position: absolute;
    right: 0;
    top: 0;
}



.talent-discovery {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  width: 90%;
}



.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  line-height: 2;
  direction: rtl;
  text-align: justify;
  font-size: 1.1rem;
}

.about-container h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.about-container h2 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #6a1b9a;
}

.about-container ul {
  padding-right: 20px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.about-container ul li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.about-container .centered-text {
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #4a148c;
}

/* ✅ Mobile responsiveness */
@media (max-width: 768px) {
  .about-container {
    padding: 20px 15px;
    font-size: 1rem;
  }

  .about-container h1 {
    font-size: 1.6rem;
  }

  .about-container h2 {
    font-size: 1.2rem;
  }

  .about-container .centered-text {
    font-size: 1.1rem;
    margin-top: 30px;
  }
}


/* Vertical Video Container - Perfect for 478×854 */
.vertical-video-container {
  position: relative;
  width: 100%;
  max-width: 478px; /* Original video width */
  margin: 2rem auto;
}

.vertical-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 178.66%; /* 854/478*100 = perfect aspect ratio */
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

.vertical-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills container while maintaining aspect ratio */
}

/* Mobile-specific perfecting */
@media (max-width: 768px) {
  .vertical-video-container {
    max-width: 100%;
    padding: 0;
  }
  
  .vertical-video-wrapper {
    border-radius: 0;
    height: 80vh; /* Takes majority of screen height */
    padding-top: 0;
  }
  
  .vertical-video-wrapper video {
    object-position: center top; /* Ensures top alignment */
  }
}