/* Global */
:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --backdrop: rgba(0, 0, 0, 0.35);
  --panel: rgba(0, 0, 0, 0.55);
  --accent: #00d1b2;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: #0f172a;
}

/* Full-screen background image (use your photo at assets/home-bg.jpg) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)), url("assets/home-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--backdrop);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

#site-logo {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.site-name {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.tabs {
  display: inline-flex;
  gap: 0.25rem;
}

.tab {
  appearance: none;
  border: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.tab.is-active {
  color: #0b1220;
  background: var(--text);
}

/* Main layout */
.site-main {
  padding: 2rem 1rem 3rem;
  max-width: 1350px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-content {
  background: var(--panel);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

h1, h2 {
  margin-top: 0;
}

.list {
  margin: 0.5rem 0 0;
}

/* Larger hero panel on Home */
.hero {
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  max-width: 1200px;
  width: 100%;
}

.actions {
  margin-top: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: #0b1220;
  background: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: transform 0.06s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--text); color: #0b1220; }
.btn-lg { padding: 0.8rem 1.25rem; font-size: 1.05rem; }

.btn-filters {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-filters:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-filters:active {
  transform: translateY(0);
}

/* About Section */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0rem;
  align-items: start;
}

.about-image-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.about-image {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-text h2 {
  margin-top: 0;
  color: var(--text);
}

.about-text p {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.about-text .intro-text {
  font-size: 0.92rem;
  opacity: 1;
}

.about-text .intro-text-english {
  font-size: 0.90rem;
  opacity: 0.85;
  font-style: italic;
  margin-top: 0.5rem;
}

.intro-text-english {
  font-style: italic;
}




.about-video-section {
  padding: 0;
  margin-top: 4rem;
}

.about-video-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
}

.video-heading {
  margin: 0 0 1rem 0;
  color: var(--text);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  z-index: 1;
}

.youtube-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-placeholder-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.about-form-section {
  padding: 0;
}

.about-form-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-intro-text {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.google-form-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.google-form {
  width: 100%;
  border: none;
  border-radius: 8px;
  min-height: 600px;
  display: block;
}

.form-placeholder-text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-option h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

.form-link {
  text-align: center;
  padding: 2rem;
}

.form-link p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Scholarships Section */
.scholarships-section {
  padding: 0;
}

.scholarships-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.scholarships-title {
  margin: 0;
  color: var(--text);
}

.scholarships-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 0.95rem;
  min-width: 250px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  width: 18px;
  height: 18px;
}


.scholarships-content {
  position: relative;
  display: flex;
  gap: 1.5rem;
}

.filters-panel {
  position: fixed;
  left: 0;
  top: 180px;
  bottom: 0;
  min-width: 250px;
  max-width: 350px;
  background: var(--panel);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.filters-panel.is-open {
  transform: translateX(0);
}

.filters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-panel-header h3 {
  margin: 1;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.filters-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  padding: 0;
}

.filters-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.filters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  color: var(--text);
}

.filter-checkbox:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--text);
  flex-shrink: 0;
}

.filter-checkbox span {
  user-select: none;
  font-size: 0.95rem;
}

.btn-clear-filters {
  margin-top: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-clear-filters:hover {
  background: rgba(255, 255, 255, 0.2);
}

.scholarships-grid-wrapper {
  flex: 1;
  transition: margin-left 0.3s ease;
}

.scholarships-content.filters-open .scholarships-grid-wrapper {
  margin-left: calc(25% + 1.5rem);
}

.scholarships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.scholarship-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scholarship-card.filtered-out {
  display: none;
}

.scholarship-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.scholarship-card-title {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.scholarship-eligibility {
  flex: 1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scholarship-eligibility strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
}

.scholarship-eligibility p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.scholarship-see-more {
  align-self: flex-start;
  margin-top: auto;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 59, 59, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-overlay.is-open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-title {
  margin: 0 2.5rem 1.5rem 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-field strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.modal-field p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-field .btn {
  margin-top: 0.25rem;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .filters-panel {
    width: 75%;
    max-width: none;
  }

  .scholarships-content.filters-open .scholarships-grid-wrapper {
    margin-left: 0;
  }

  .scholarships-content.filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .scholarships-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
    min-width: auto;
  }

  .filters-toggle {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-image-container {
    max-width: 400px;
    margin: 0 auto;
  }

  .videos-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
  }
  .tabs {
    width: 100%;
    justify-content: center;
  }

  .scholarships-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    width: 85%;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-right: 2rem;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .about-section {
    gap: 2rem;
    padding: 1.5rem;
  }

  .about-image-container {
    max-width: 100%;
  }
}


