/* ==========================================================
   sections.css
   The main page sections, in the order they appear on the page.
   ========================================================== */

/* Shared vertical rhythm for the main sections */
.search-section,
.destinations-section,
.about-section,
.guides-section {
  padding: 105px 9%;
}
/* ---------- Search and results ---------- */
.search-section {
  background: #eaf6fb;
}
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  margin: 0 auto 40px;
}
.section-heading h2,
.about-section h2,
.guides-section h2,
.account-section h2,
.funding-band h2 {
  font-size: clamp(34px, 4vw, 51px);
  margin: 17px 0 0;
}
.section-heading > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 auto;
}
.section-heading h2 {
  text-align: center;
}
.search-panel {
  padding: 18px;
  background: #E5F5F2;
border: 1px solid #20BFA5;
  border-radius: 7px;
  box-shadow: 0 18px 50px #0002;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gold2);
  font-size: 25px;
}
.search-input-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #075985;
  font-size: 16px;
}
.search-input-wrap input::placeholder {
  color: #8790a9;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  padding-top: 14px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #526579;
  text-transform: uppercase;
}
.filters select {
  width: 100%;
 background: #EAF6FB;
border: 1px solid #20BFA5;
color: #075985;
  border-radius: 3px;
  padding: 11px;
  font-size: 15px;
}
.search-button {
  align-self: end;
  padding: 12px 20px;
  font-size: 16px;
color: #075985;
}
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 55px 0 16px;
}
.small-eye {
  font-size: 12px;
color: #526579;
}
.results-top h3 {
  font: 600 30px var(--display);
color: #075985;
  margin: 7px 0 0;
}
.result-count {
  font-size: 14px;
  color: #526579;
}
.demo-notice {
  padding: 14px 16px;
  border: 1px solid #20BFA5;
  background: #E5F5F2;
  color: #075985;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  border-radius: 4px;
}
.demo-notice span {
  margin-right: 8px;
}
.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Keep the search area content centered at a comfortable width. */
.search-section .section-heading,
.search-section .search-panel,
.search-section .results-top,
.search-section .demo-notice,
.search-section .scholarship-grid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.center-action {
  text-align: center;
  margin-top: 30px;
}
/* ---------- Fully funded banner ---------- */
.funding-band {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 82px 12%;
 background: radial-gradient(
  ellipse at 80% 40%,
  #E5F5F2 0,
  #EAF6FB 45%,
  #075985 100%
);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.funding-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.funding-band p {
  color: #526579;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.9;
  margin: 20px 0 25px;
}
.funding-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #20BFA5;
  border-radius: 50%;
  right: 17%;
  top: 5%;
  box-shadow:
    0 0 0 30px #d3bd7b0a,
    0 0 0 65px #d3bd7b08,
    inset 0 0 90px #9475d32b;
}
.funding-orb:after {
  content: "✧";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 170px;
  color: #20BFA5;
  opacity: 0.65;
}
.funding-stat {
  position: relative;
  z-index: 1;
  margin-right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #075985;
}
.funding-stat > span {
  font-size: 52px;
}
.funding-stat b {
  font-size: 14px;
  color: #075985;
  letter-spacing: 0.22em;
}
.funding-stat small {
  color: #526579;
font-size: 13px;
  margin-top: 8px;
}
/* ---------- Destinations ---------- */
.destinations-section {
  background: var(--bg2);
}
/* One large feature tile (the destination with the most scholarships) and four smaller ones */
.destination-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 16px;
}
.destination {
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s,
    box-shadow 0.35s;
  background-color: transparent;
  font-family: inherit;
}
.destination:first-child {
  grid-column: span 2;
  grid-row: span 2;
  padding: 30px;
}
/* Globe-line pattern and a dark gradient so the label always reads clearly */
.destination:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #09102620 20%, #091026d0 100%),
    radial-gradient(
      circle at 78% 22%,
      transparent 0 34%,
      #ffffff12 34.5% 35.2%,
      transparent 35.7% 52%,
      #ffffff0d 52.5% 53.2%,
      transparent 53.7%
    ),
    var(--tile-bg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.destination:hover {
  transform: translateY(-6px);
  border-color: #20BFA5;
  box-shadow: 0 22px 50px #0006;
}
.destination:hover:before {
  transform: scale(1.06);
}
.dest-1 {
  --tile-bg: linear-gradient(135deg, #3e5a8c, #1a2150 60%, #3b2a6b);
}
.dest-2 {
  --tile-bg: linear-gradient(135deg, #8a4b57, #1f2348);
}
.dest-3 {
  --tile-bg: linear-gradient(135deg, #4f6f86, #19244a);
}
.dest-4 {
  --tile-bg: linear-gradient(135deg, #7d6b45, #1c2543);
}
.dest-5 {
  --tile-bg: linear-gradient(135deg, #6c4d86, #1c2142);
}
.destination-number {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #20BFA5;
}
.destination-name {
  font: 600 23px var(--display);
  color: #EAF6FB;
  margin-top: auto;
}
.destination:first-child .destination-name {
  font-size: 34px;
  letter-spacing: -0.02em;
}
.destination-count {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #EAF6FB;
  margin-top: 4px;
}
.destination-arrow {
  position: absolute;
  right: 22px;
  top: 20px;
  color: #20BFA5;
  font-size: 22px;
  transition: transform 0.3s;
}
.destination:hover .destination-arrow {
  transform: translate(3px, -3px);
}

/* ---------- About: how Scholarship Atlas helps ---------- */
.about-section {
  background-color: #EAF6FB;
  background-image:
    linear-gradient(
      120deg,
      rgba(234,246,251,0.22),
      rgba(229,245,242,0.18)
    ),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=2200&q=90");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.about-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.about-intro h2 {
  margin-bottom: 22px;
}
.about-intro > p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 24px;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.about-points li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #EAF6FB;
background: var(--royal);
}
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: none;
}
.journey li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #E5F5F2;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.journey li:hover {
  transform: translateX(6px);
  border-color: #20BFA5;
}
.journey-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #20BFA5;
  color: var(--gold2);
  font: 600 14px var(--display);
}
.journey h3 {
  font: 600 23px var(--display);
  margin: 4px 0 6px;
  color: var(--royal);
}
.journey p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Guides ---------- */
.guides-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  background: var(--bg2);
}
.guides-intro p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 330px;
  margin: 22px 0;
}
.guide-list {
  border-top: 1px solid var(--line);
}
.guide-item {
  display: grid;
  grid-template-columns: 145px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.guide-item > span:first-child {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold2);
}
.guide-item b {
  font: 600 17px var(--display);
  color: #075985;
}
.guide-item > span:last-child {
  color: var(--gold2);
}
.guide-item:hover b {
  color: var(--gold2);
}
/* ---------- Student profile call to action ---------- */
.account-section {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  background:
  radial-gradient(ellipse at 50% 100%, #E5F5F2 0, transparent 60%), #EAF6FB;
}
.account-section .eyebrow {
  justify-content: center;
}
.account-section h2 {
  margin: 18px 0;
}
.account-section p {
  font-size: 18px;
  font-weight: 500;
  color: #526579;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 30px;
}
.account-decoration {
  position: absolute;
  right: 15%;
  top: 10%;
  font-size: 90px;
  color: #20BFA5;
}
.account-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
  color: #075985;
  font-size: 16px;
  font-weight: 700;
}
.account-features span {
  padding: 10px 16px;
  border: 1px solid #20BFA5;
  background: #E5F5F2;
  border-radius: 30px;
  color: #075985;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Scholarship Preparation Centre ---------- */

.guide-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  background: #EAF6FB;
  padding-top: 90px;
}

.guide-resources > .guides-intro {
  max-width: 650px;
  margin-bottom: 12px;
}

.guide-resources .guides-intro h2 {
  font-size: clamp(34px, 4vw, 51px);
}

.guide-resource {
  padding: 38px;
  border: 1px solid var(--line);
  background: #E5F5F2;
  border-radius: 12px;
  scroll-margin-top: 100px;
}

.guide-resource .eyebrow {
  color: var(--gold2);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.guide-resource h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.guide-resource h3 {
  color: var(--gold2);
  font-size: 19px;
  font-weight: 500;
  margin: 30px 0 14px;
}

.guide-resource p,
.guide-resource li,
.guide-resource label {
  color: #526579;
  font-size: 16px;
  line-height: 1.9;
}

.guide-resource ul,
.guide-resource ol {
  padding-left: 22px;
}

.guide-resource li {
  padding-left: 5px;
  margin-bottom: 7px;
}

.guide-resource label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  cursor: pointer;
}

.guide-resource input[type="checkbox"] {
  accent-color: var(--gold2);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 5px;
  cursor: pointer;
}

.guide-resource label:has(input:checked) {
  color: #e4d5ad;
}

.guide-resource blockquote {
  margin: 18px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--gold2);
 background: #EAF6FB;
color: #075985;
font-size: 16px;
  line-height: 1.9;
}

.guide-resource .guide-note {
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #8f9bb3;
  font-size: 11px;
}

/* Mobile layout */
@media (max-width: 700px) {
  .guide-resources {
    padding-top: 60px;
    gap: 22px;
  }

  .guide-resource {
    padding: 23px 18px;
  }

  .guide-resource h2 {
    font-size: 26px;
  }

  .guide-resource p,
  .guide-resource li,
  .guide-resource label {
    font-size: 12px;
  }
}

/* ---------- Scholar's Library: Premium Card Grid ---------- */

.guide-resources {
  display: block;
  padding: 90px 0;
  background: #EAF6FB;
}

.guide-resources > .guides-intro {
  max-width: 650px;
  margin-bottom: 42px;
}

.guide-resources > .guides-intro p {
  max-width: 440px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.guide-resource.guide-card {
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #20BFA5;
  border-radius: 10px;
  background: #E5F5F2;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.guide-card:hover {
  border-color: #20BFA5;
  background: #EAF6FB;
}

.guide-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 27px;
  cursor: pointer;
  list-style: none;
}

.guide-card summary::-webkit-details-marker {
  display: none;
}

.guide-card summary::marker {
  content: "";
}

.guide-number {
  color: #20BFA5;
  font: 600 34px var(--display);
  grid-column: 1;
}

.guide-category {
  grid-column: 1;
  color: var(--gold2);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.guide-card-title {
  grid-column: 1 / -1;
 color: #075985;
font: 600 27px var(--display);
  line-height: 1.35;
}

.guide-card-description {
  grid-column: 1 / -1;
  color: #526579;
font-size: 16px;
  line-height: 1.8;
}

.guide-card-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--gold2);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.guide-card-action span {
  font-size: 17px;
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-action span {
  transform: translate(3px, -3px);
}

.guide-card[open] {
  grid-column: 1 / -1;
  border-color: var(--gold2);
}

.guide-card[open] .guide-card-action span {
  transform: rotate(45deg);
}

.guide-content {
  padding: 0 30px 30px;
  border-top: 1px solid var(--line);
}

.guide-content h3 {
  margin-top: 27px;
}

.guide-content p,
.guide-content li,
.guide-content label {
  font-size: 13px;
}

/* Mobile layout */

@media (max-width: 700px) {
  .guide-resources {
    padding: 60px 0;
  }

  .guide-resources > .guides-intro {
    margin-bottom: 28px;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-card[open] {
    grid-column: auto;
  }

  .guide-card summary {
    padding: 23px;
  }

  .guide-card-title {
    font-size: 21px;
  }

  .guide-content {
    padding: 0 20px 24px;
  }
}

/* ---------- Scholar's Library: Readability Upgrade ---------- */

.guide-card-description {
  font-size: 15px;
  line-height: 1.9;
}

.guide-card-action {
  font-size: 13px;
}

.guide-content p,
.guide-content li,
.guide-content label {
  font-size: 15px;
  line-height: 1.9;
}

.guide-content h3 {
  font-size: 18px;
  line-height: 1.5;
}

.guide-content .guide-note {
  font-size: 13px;
  line-height: 1.8;
}

.guide-content blockquote {
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 700px) {
  .guide-card-description {
    font-size: 14px;
  }

  .guide-content p,
  .guide-content li,
  .guide-content label {
    font-size: 14px;
  }
}

/* ---------- Larger, More Readable Guide Text ---------- */

.guide-resource.guide-card .guide-content p,
.guide-resource.guide-card .guide-content li,
.guide-resource.guide-card .guide-content label {
  font-size: 17px !important;
  line-height: 2 !important;
  color: #526579;
}

.guide-resource.guide-card .guide-content h3 {
  font-size: 20px !important;
  line-height: 1.5;
}

.guide-resource.guide-card .guide-content .guide-note {
  font-size: 14px !important;
  color: #526579;
}

.guide-resource.guide-card .guide-content blockquote {
  font-size: 17px !important;
  line-height: 1.9;
}

.guide-card .guide-card-description {
  font-size: 16px !important;
  line-height: 1.8;
}

.guide-card .guide-card-action {
  font-size: 14px !important;
}

@media (max-width: 700px) {
  .guide-resource.guide-card .guide-content p,
  .guide-resource.guide-card .guide-content li,
  .guide-resource.guide-card .guide-content label {
    font-size: 16px !important;
  }
}


/* ---------- Guide card layout fix ---------- */

.guide-section {
  display: block;
  width: 100%;
  grid-column: 1 / -1;
  position: relative;
  float: none;
  clear: both;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-grid .guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  text-decoration: none;
}

.guide-grid .guide-card > span {
  display: block;
}

.guide-grid .guide-card .guide-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

@media (max-width: 600px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



/* ==========================================================
   SCHOLARSHIP ATLAS — HOMEPAGE PHOTOGRAPHIC BACKGROUNDS
   Background improvements only.
   Existing cards, content and layouts remain unchanged.
   ========================================================== */

/* 1. Scholarship search and results */
.search-section {
  background:
    linear-gradient(
      rgba(234,246,251,.80),
      rgba(229,245,242,.82)
    ),
    url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=2000&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 2. International study destinations */
.destinations-section {
  background:
    linear-gradient(
      rgba(234,246,251,.76),
      rgba(229,245,242,.80)
    ),
    url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=2000&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


/* ABOUT SECTION — PHOTOGRAPHIC BACKGROUND */

/* Keep About text readable */
.about-intro h2,
.about-intro > p,
.about-points li,
.journey h3,
.journey p {
  color: #075985 !important;
}

/* Keep the three steps clearly visible */
.journey li {
  background: rgba(234,246,251,0.94) !important;
  border: 1px solid #20BFA5;
}

.journey-num {
  color: #075985 !important;
  background: #E5F5F2;
}



/* 4. Scholarship guides */
.guides-section,
.guide-resources {
  background:
    linear-gradient(
      rgba(234,246,251,.82),
      rgba(229,245,242,.84)
    ),
    url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=2000&q=85");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Mobile background adjustment */
@media (max-width: 700px) {
  .search-section,
  .destinations-section,
  .about-section,
  .guides-section,
  .guide-resources {
    background-attachment: scroll;
  }
}

/* ---------- Destination University Gallery: Image and Text Layout ---------- */

.destination-gallery-section {
  width: 100%;
  box-sizing: border-box;
}

.destination-gallery-section[hidden] {
  display: none !important;
}

.destination-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.university-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e5e9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(7, 89, 133, 0.08);
}

.university-card .university-image {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  margin: 0;
}

.university-details {
  padding: 13px 16px 16px;
}

.university-details h3 {
  margin: 0 0 5px;
  color: #075985;
  font-size: 18px;
  line-height: 1.35;
}

.university-location {
  margin: 0 0 9px;
  color: #526579;
  font-size: 13px;
}

.university-source {
  display: inline-block;
  color: #526579;
  font-size: 10px;
  line-height: 1.5;
}

.destination-scholarship-action {
  margin-top: 30px;
  text-align: center;
}

@media (max-width: 800px) {
  .university-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .university-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100%;
  }

  .university-card {
    min-width: 0;
    width: 100%;
  }

  .university-card .university-image {
    height: 140px;
    width: 100%;
    object-fit: cover;
  }
}