/*
Theme Name: GeneratePress Child
Theme URI: https://northcyprusscholarships.com/
Description: Child theme for GeneratePress
Author: Your Name
Author URI: https://northcyprusscholarships.com/
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* Note: All px values for font-size and line-height have been converted to rem. Base: 16px = 1rem */

/* General Styles */
html {
  /* Define base font size for rem calculation if needed, default is usually 16px */
  font-size: 14px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  box-sizing: border-box;
}

.inner-container {
  max-width: 1200px;
  /* This remains px as it's a layout constraint */
  margin-inline: auto;
}

@media (max-width: 768px) {
  .hero-content{
    display: flex;
    justify-content: center;
    padding-inline: 1rem !important;
    flex-direction: column;
    align-items: center;
  }
  .stat-info{
    display: flex;
    font-size:12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact{
    flex-direction:column;
    gap:  10px !important;
  }
  .scholarship-row{
    flex-direction: column;
    justify-content:center !important;
    align-items: center;
    padding: 20px;
  }
  .title-container{
    padding-inline:35px;
  }
  .section-subtitle{
    text-align:center;
  }
  .section-title{
    font-size: 30px !important;
  }
  .hero-image img {
    width: 320px !important;
}
  .hero-image {
    min-height: 350px !important;
  }
  .divider {
display:none;
}
  .footer-right {
    width: 100% !important;
    min-height: 250px;
    position: relative;
}
  .homepage-hero{
    margin-inline: 20px !important;
    border-radius: 16px !important;
  }
  .hero-content h1 {
    font-size: 40px !important;
    text-align: center;
    padding: 20px !important;
    margin-bottom: 0px !important;
  }
  .hero-content p {
    font-size: 16px !important;
    text-align:center;
    padding-block: 5px !important;
  }
  .footer-portal-box{
    padding: 18px !important;
  }
  .hero-stats-bar {
    margin-inline: 15px !important;
    border-radius: 20px !important;
    padding-inline: 40px !important;
  }
  .stat-item {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .hero-stats-bar .inner-container{
    justify-content: start !important
    ;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {

}

.scholarship-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* --- Hero Section --- */
.homepage-hero {
  background: linear-gradient(180deg, #F1F1F4 0%, rgba(243, 243, 243, 0.20) 100%);
  padding-top: 1.875rem;
  padding-bottom: 5rem;
  display: flex;
  margin-inline: 20px;
  position: relative;
  min-height: 49rem;
  border-radius: 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
img.pattern-overlay {
  position: absolute;
  bottom: 0;
  width: 500px;
  z-index: 0;
  left: 0;
}
.homepage-hero .inner-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.875rem;
  justify-content: flex-start;
}

.hero-content {
  flex: 1;
  padding-inline: 2.5rem;
  /* 40px / 16 */
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.625rem;
  /* 10px / 16 */
}


.hero-content h1 {
  font-size: 3.3rem;
  color: #4e597d;
  font-style: normal;
  font-weight: 600;
  margin-block: 1.25rem;
}
span.labeled-text {
  background: linear-gradient(90deg, #4e597d 0.82%, #7EB17A 20.69%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-box {
  display: flex;
  flex-direction: row;
  position: relative;
}
.hero-content p {
  font-size: 1em;
  color: #6c757d;
  font-family: 'Poppins';
  font-weight: 300;
  padding-block: 15px;
  margin-bottom: 1.0rem;
}
.stat-item svg {
  width: 50px;
}
.btn-register {
  all: unset;
  display: inline-flex;
  padding: 1rem 1.5625rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  border-radius: .7rem;
  background: #7EB17A;
  color: #FFF;
  text-align: start;
  font-family: Poppins;
  font-size: 1.25rem;
  font-weight: 600 !important;
  transition: all .2s ease-in-out;
  cursor: pointer;
}
span.next-icon svg {
  width: 28px;
}
span.next-icon {
  display: flex;
  align-items: center;
}
.scholarship-card-home {
  display: flex;
  width: 360px;
  border-radius: 36px;
  border: 4px solid #00000017;
  background: #FFF;
  overflow: hidden;
  transition: all 200ms ease-in-out;
  flex-direction: column;
  justify-content: space-between;
}
.scholarship-card-home:hover {
  border-color: #d6e1d2;
  transform: translateY(-10px);
  box-shadow: 0px 4px 6.8px 0px rgba(0, 0, 0, 0.05);
}
.scholarship-card-body {
  display: flex;
  padding: 20px 30px;
  background-color: #f8f8f8;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  flex-direction: column;
}
.scholarship-description {
  padding-inline: 30px;
  margin: 0;
  padding-block: 20px;
  color: #5c5c5c;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-height: 150px;
}
.scholarship-information {
  display: flex;
  padding-inline: 30px;
  gap: 6px;
  padding-block: 15px;
  border-block: solid 1px #e3e3e3;
  flex-direction: column;
}
.scholarship-card-header svg {
  width: 140px;
}
.scholarship-card-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}
.btn-apply-register {
  all: unset;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  padding: 20px 20px;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  align-items: center;
  gap: 10px;
  background: #DDB57E;
  color: white;
  cursor: pointer;
  transition: all .2s ease-in-out;
}
.btn-quick-apply{
  all: unset;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  padding: 20px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-top: 1px solid #FFF;
  background: #7EB17A;
  color: white;
  cursor: pointer;
  transition: all .2s ease-in-out;

}
.btn-apply-register:hover{
  background: #ccab7c;
}
.btn-quick-apply:hover{
  background: rgb(182, 152, 111);
}
p.deadline svg {
  width: 17px;
  padding-bottom: 2px;
}
h3.scholarship-title-main {
  display: flex;
  margin: 0;
  gap: 3px;
  color: #2A4C71;
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  align-items: center;
}
span.tag.free-application {
  font-size: 14px;
  border-radius: 50px;
  background: #E8F0EA;
  color: #6BB18B;
  padding: 2px 15px;
}
span.tag.limited-sits {
  font-size: 14px;
  border-radius: 50px;
  background: #f0e8ef;
  color: #b16ba1;
  padding: 2px 15px;
}
span.tag.test {
  font-size: 14px;
  border-radius: 50px;
  background: #f0e8e8;
  color: #b16b6b;
  padding: 2px 15px;
}
.scholarship-card-home {
}
.tag-items {
  display: flex;
  gap: 10px;
}
.card-header {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-direction: row;
}
p.deadline {
  display: flex;
  font-size: 14px;
  gap: 5px;
  align-items: center;
  margin: 0;
}
span.degree-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  font-size: 14px;
  color: #7d98ba;
  border-radius: 5px;
  background: #e9f5fa;
  padding: 3px 5px;
}
.degree-levels {
  display: flex;
  gap: 5px;
  font-size: 14px;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-register:hover {
  background-color: #538b53;
}

img.pattern-overlay-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 600px;
}

span.glow-icon {
  display: flex;
  align-items: center;
}

.hero-image img {
  width: 500px;
  position: absolute;
  height: auto;
  bottom: -50px;
  left: 0px;
  max-width: none;
}
.hero-image {
  z-index: 0;
  width: 400px;
  min-height: 550px;
  position: relative;
}

.divider {
  width: .25rem;
  height: 7.375rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.29);
}
.hero-stats-bar {
  display: flex;
  max-width: 1200px;
  padding: 2.6rem 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  gap: 0.625rem;
  margin-bottom: -30px;
  flex-shrink: 0;
  border-radius: 3.9rem;
  background: linear-gradient(93deg, rgba(62, 118, 174, 0.81) -8.01%, rgba(26, 49, 72, 0.81) 168.96%);
  box-shadow: 0px -0.5625rem 0.85rem 0px rgba(255, 255, 255, 0.25) inset;
  backdrop-filter: blur(1.996875rem);
  transform: translateY(-6.25rem);
}

.hero-stats-bar .inner-container {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 14.375rem;
  gap: 0.625rem;
  align-items: center;
  color: white;
  font-family: Poppins;
}

.stat-item i {
  font-size: 1.5em;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
}

.stat-label {
  color: #D9E5F1;
  text-align: center;
  font-family: Poppins;
  font-size: 1rem;
  /* 16px / 16 */
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  /* Keep normal */
}

/* ============================== */
/* Why Register Section           */
/* ============================== */
section.homepage-why-register {
  padding-bottom: 7.0625rem;
  /* 113px / 16 */
  position: relative;
  z-index: 33;
}

section.homepage-why-register .container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 91.375rem;
  /* 1462px / 16 */
  z-index: 34;
  margin-bottom: 4.375rem;
  /* 70px / 16 */
}

section.homepage-why-register h2 {
  color: #3c3c3c;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 2.8125rem;
  font-weight: 600;
  line-height: 4.6875rem;
  text-align: center;
  z-index: 35;
  margin: 0 0 0.3125rem 0;
}

.section-subtitle {
  color: #3c3c3c;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  z-index: 92;
  margin: 0;
}

.features-grid {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3.125rem;
  position: relative;
  padding: 2.375rem 2.4375rem;
  background: #f9fafe;
  z-index: 37;
  border-radius: 4.9375rem;
}

.feature-card {
  display: flex;
  min-height: 19.3125rem;
  /* 309px / 16 */
  min-width: 12.5rem;
  /* 200px / 16 */
  padding: 2.8125rem 3.125rem;
  /* 45px / 16, 50px / 16 */
  flex-direction: column;
  align-items: center;
  gap: 1.1875rem;
  /* 19px / 16 */
  border-radius: 3.625rem;
  /* 58px / 16 */
  border: 1px solid rgba(62, 118, 174, 0.28);
  /* Keep border px */
  background: linear-gradient(180deg, #F0F2F9 -3.94%, #FFF 99.96%);
  box-shadow: 0px 0.25rem 0.375rem 0px #FFF inset, 0px -0.3125rem 0.25rem 0px rgba(70, 164, 199, 0.25) inset, 0px 0.0625rem 0.45625rem 0px rgba(70, 164, 199, 0.75), 0px 0.9375rem 1.7rem 0px rgba(79, 91, 223, 0.14);
  /* 4px, 6px, -5px, 4px, 1px, 7.3px, 15px, 27.2px / 16 */
  backdrop-filter: blur(3.55625rem);
  /* 56.9px / 16 */
}

.title-container {
  margin-bottom: 5.625rem;
  /* 90px / 16 */
}

.feature-card img {
  flex-shrink: 0;
  position: relative;
  max-width: 6rem;
  /* 96px / 16 */
  max-height: 4.5rem;
  /* 72px / 16 */
  margin-bottom: 0.625rem;
  /* 10px / 16 */
  object-fit: contain;
}

.feature-card h3 {
  align-self: stretch;
  height: 2.25rem;
  /* 36px / 16 */
  color: #585858;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1.5rem;
  /* 24px / 16 */
  font-weight: 600;
  line-height: 2.25rem;
  /* 36px / 16 */
  text-align: center;
  white-space: nowrap;
  z-index: 42;
  margin: 0;
  margin-top: 0.625rem;
  /* 10px / 16 */
}

.feature-card p {
  align-self: stretch;
  color: #4f4f4f;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1rem;
  /* 16px / 16 */
  font-weight: 400;
  line-height: 1.5rem;
  /* 24px / 16 */
  text-align: center;
  z-index: 43;
  /* Keep z-index context */
  margin: 0;
  max-width: 21.1875rem;
  /* 339px / 16 */
}


/* ============================== */
/* Quote Section                  */
/* ============================== */
section.homepage-quote {
  position: relative;
  margin-top: 4.5rem;
  /* 72px / 16 */
  padding: 9.375rem 0;
  /* 150px / 16 */
  z-index: 54;
  border-radius: 3.4375rem;
  /* 55px / 16 */
  background: linear-gradient(180deg, #AED6E0 0%, #87B6C8 100%);
}

section.homepage-quote .quote-image {
  position: absolute;
  bottom: -5.625rem;
  /* -90px / 16 */
  left: 3.75rem;
  /* 60px / 16 */
  z-index: 90;
  width: 30.5rem;
  /* 488px / 16 */
  height: auto;
}

section.homepage-quote .quote-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

section.homepage-quote blockquote {
  color: #ffffff;
  font-family: 'Playfair Display', var(--default-font-family);
  font-size: 4rem;
  /* 64px / 16 */
  font-weight: 600;
  line-height: 5.332rem;
  /* 85.312px / 16 */
  text-align: right;
  z-index: 57;
  margin: 0;
}

section.homepage-quote blockquote footer {
  display: block;
  text-align: right;
  height: 2.0625rem;
  /* 33px / 16 */
  color: #f3f3f3;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1.375rem;
  /* 22px / 16 */
  font-weight: 300;
  line-height: 2.0625rem;
  /* 33px / 16 */
  white-space: nowrap;
  z-index: 58;
  margin-top: 1.25rem;
  /* 20px / 16 */
}


/* ============================== */
/* Who Eligible Section           */
/* ============================== */
section.homepage-eligible {
  padding-top: 4.5rem;
  /* 72px / 16 */
  padding-bottom: 4.5rem;
  /* 72px / 16 */
  position: relative;
  z-index: 61;
}

section.homepage-eligible .container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 91.375rem;
  /* 1462px / 16 */
  z-index: 62;
  margin-bottom: 4.375rem;
  /* 70px / 16 */
}

section.homepage-eligible h2 {
  height: 4.6875rem;
  /* 75px / 16 */
  color: #3c3c3c;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 3.125rem;
  /* 50px / 16 */
  font-weight: 600;
  line-height: 4.6875rem;
  /* 75px / 16 */
  text-align: center;
  white-space: nowrap;
  z-index: 63;
  margin: 0 0 0.3125rem 0;
  /* 5px / 16 */
}

section.homepage-eligible .section-subtitle {
  height: 2.0625rem;
  /* 33px / 16 */
  color: #3c3c3c;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1.375rem;
  /* 22px / 16 */
  font-weight: 400;
  line-height: 2.0625rem;
  /* 33px / 16 */
  text-align: center;
  white-space: nowrap;
  z-index: 64;
  margin: 0;
}

.eligible-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.0625rem;
  /* 17px / 16 */
  position: relative;
  z-index: 65;
}

.eligible-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  gap: 1.1875rem;
  /* 19px / 16 */
  position: relative;
  padding: 8.125rem 3.125rem;
  /* 130px / 16, 50px / 16 */
  background: linear-gradient(179.98deg, #fafafa, #f0f2f9);
  z-index: 66;
  border-radius: 3.625rem;
  /* 58px / 16 */
}

.eligible-card img {
  flex-shrink: 0;
  position: relative;
  width: 8.6875rem;
  /* 139px / 16 */
  height: 5.8125rem;
  /* 93px / 16 */
  z-index: 67;
  object-fit: contain;
  margin-bottom: 0.625rem;
  /* 10px / 16 */
}

.eligible-card h3 {
  align-self: stretch;
  height: 3.375rem;
  /* 54px / 16 */
  color: #3c3c3c;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 2.25rem;
  /* 36px / 16 */
  font-weight: 600;
  line-height: 3.375rem;
  /* 54px / 16 */
  text-align: center;
  white-space: nowrap;
  z-index: 69;
  margin: 0;
  margin-top: 0.625rem;
  /* 10px / 16 */
}

.eligible-card p {
  align-self: stretch;
  max-width: 31.75rem;
  /* 508px / 16 */
  color: #4f4f4f;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1rem;
  /* 16px / 16 */
  font-weight: 400;
  line-height: 1.5rem;
  /* 24px / 16 */
  text-align: center;
  z-index: 70;
  margin: 0;
}


/* ============================== */
/* Opportunity CTA Section        */
/* ============================== */
section.homepage-cta {
  position: relative;
  margin-top: 4.5rem;
  /* 72px / 16 */
  height: 21.875rem;
  /* 350px / 16 */
  padding: 6.625rem 0;
  /* 106px / 16 */
  border-radius: 3.5625rem;
  /* 57px / 16 */
  background: linear-gradient(93deg, rgba(62, 118, 174, 0.81) -8.01%, rgba(26, 49, 72, 0.81) 168.96%);
  box-shadow: 0px -0.5625rem 0.85rem 0px rgba(255, 255, 255, 0.25) inset;
  /* -9px / 16, 13.6px / 16 */
  backdrop-filter: blur(1.996875rem);
  /* 31.95px / 16 */
  opacity: 0.81;
}

section.homepage-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.75rem;
  /* 44px / 16 */
  max-width: 80.625rem;
  /* 1290px / 16 */
}

.cta-content {
  position: relative;
  z-index: 82;
  flex-basis: 60%;
}

.cta-content h2 {
  color: #ffffff;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 3.125rem;
  /* 50px / 16 */
  font-weight: 600;
  line-height: 4.6875rem;
  /* 75px / 16 */
  text-align: left;
  white-space: nowrap;
  z-index: 83;
  margin: 0 0 0.625rem 0;
  /* 10px / 16 */
}

.cta-content p {
  color: #ffffff;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 1.375rem;
  /* 22px / 16 */
  font-weight: 400;
  line-height: 2.0625rem;
  /* 33px / 16 */
  text-align: left;
  white-space: nowrap;
  z-index: 84;
  margin: 0 0 2.75rem 0;
  /* 44px / 16 */
}


.cta-image {
  position: absolute;
  bottom: 0;
  right: 10%;
}

.cta-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================== */
/* Universities Section           */
/* ============================== */
section.homepage-universities {
  padding-top: 4.5rem;
  /* 72px / 16 */
  padding-bottom: 4.375rem;
  /* 70px / 16 */
  position: relative;
  z-index: 89;
}

section.homepage-universities .container {
  text-align: center;
  width: 100%;
  max-width: 91.375rem;
  /* 1462px / 16 */
  z-index: 90;
  margin-bottom: 4.4375rem;
  /* 71px / 16 */
}

.section-title {
  color: #3c3c3c;
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  z-index: 91;
}
.scholarship-row::before {
  content: '';
  width: 100%;
  background-color: #F8F8F8;
  position: absolute;
  height: 450px;
  z-index: -1;
  transform: translateY(20%);
}

.scholarship-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    justify-content: center;
}
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9375rem;
  /* 15px / 16 */
  position: relative;
  z-index: 93;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  position: relative;
  padding: 3.1875rem 3.6875rem;
  /* 51px / 16, 59px / 16 */
  background: #f8f8f8;
  z-index: 94;
  border-radius: 1.25rem;
  /* 20px / 16 */
}

.logo-item img {
  flex-shrink: 0;
  position: relative;
  max-width: 6.875rem;
  /* 110px / 16 */
  max-height: 6.875rem;
  /* 110px / 16 */
  z-index: 95;
  object-fit: contain;
}




.custom-header {
  padding: 0.9375rem 2.5rem;
  backdrop-filter: blur(50px);
  background-color: #ffffffe3;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  width: 100%;
  max-width: 80rem;
  /* 1280px / 16 */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left .header-logo {
  height: 3.75rem;
  /* 60px / 16 */
  max-width: 100%;
  display: block;
  /* Prevents extra space below image */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  /* 20px / 16 */
}

.portal-login-btn {
  display: inline-flex;
  /* Use inline-flex for alignment */
  align-items: center;
  background-color: #f1f1f1;
  padding: 0.625rem 1rem;
  /* 10px / 16, 16px / 16 */
  border-radius: 0.875rem;
  /* 14px / 16 */
  font-size: 0.9375rem;
  /* 15px / 16 */
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  /* Prevent button text wrapping */
}

.portal-login-btn i {
  margin-right: 0.5rem;
  /* 8px / 16 */
  font-size: 1.1em;
  /* Size icon relative to button text */
}

.portal-login-btn:hover {
  background-color: #e1e1e1;
}

.user-icon img {
  height: 2.5rem;
  /* 40px / 16 */
  width: 2.5rem;
  /* 40px / 16 */
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* Prevents extra space below image */
}

/* ================= Footer Styles ================= */

.footer-outer-container {
  background-color: #6B7A90;
  background-image: url(/wp-content/themes/generatepress-child/assets/images/footer-bg-pattern.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 0 0;
  color: #ffffff;
  border-radius: 15px;
  margin-top: 120px;
}

footer.site-footer {
  padding: 20px;
  position: relative; /* Context for absolute elements if needed */

}

.footer-container {
  max-width: 1200px; /* Or your site's standard width */
  margin: 0 auto;
  padding: 0 25px; /* Side padding */
  z-index: 1; /* Ensure content is above background */
}

/* Top Section Layout */
.footer-top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Footer Left Column */
.footer-left {
  width: 40%;
  padding-right: 20px;
  font-weight: 300;
}

.footer-logo {
  max-width: 200px; /* Adjust as needed */
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0; /* Slightly lighter than pure white */
}

.footer-desc {
  font-size: 1.0rem;
  line-height: 1.6;
  color: #ffffff;
}

.footer-desc a:hover {
  text-decoration: underline;
}

/* Footer Right Column (Portal Box) */
.footer-portal-box {
  min-width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  left: 0px;
  border-radius: 10px;
  backdrop-filter: blur(30px);
}
.footer-portal-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-portal-nav a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}


.footer-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  padding-top: 20px;
  gap: 20px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  gap: 5px;
  color: #e0e0e0;
}
span.link-icon svg {
  width: 20px;
}
span.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact p i {
  margin-right: 12px;
  font-size: 1.1em;
  color: #ffffff;
  width: 20px; /* Ensure consistent icon spacing */
  text-align: center;
}
.footer-contact p a {
  color: #e0e0e0;
  text-decoration: none;
  word-break: break-all;
}
.footer-contact p a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === Updated University Section Styles === */
.footer-universities {
  margin-top: 40px;
  padding-top: 30px;
}

.footer-universities h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-divider {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
}

/* === New Logo Scroller Styles === */

/* Wrapper for the scroll area - handles overflow and fades */
.footer-universities-scroll-wrapper {
  overflow: hidden; /* Crucial: Hides the logos outside the viewport */
  position: relative; /* Needed for absolute positioning of fades */
  width: 100%; /* Take full width of its container */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); /* Safari/Chrome fade mask */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); /* Standard fade mask */
}

/* Container holding BOTH sets of logos - this element moves */
.university-logos-scroll-container {
  display: flex;
  flex-wrap: nowrap; /* Ensure logos stay in one line */
  width: max-content; /* Container width adjusts to content */
  /* Animation settings */
  animation: scrollLogos 45s linear infinite; /* Adjust 45s for speed */
}

/* Pause animation on hover for usability */
.footer-universities-scroll-wrapper:hover .university-logos-scroll-container {
  animation-play-state: paused;
}

/* Individual logo item styles */
.logo-item {
  flex-shrink: 0; /* Prevent logos from shrinking */
  width: 95px;    /* Slightly larger to account for spacing needs */
  height: 95px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 15px; /* Add horizontal space BETWEEN logos */
  box-sizing: border-box;
}

.logo-item img, .logo-item .placeholder-logo {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
}

/* Placeholder styles (keep or update as needed) */
.placeholder-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.placeholder-logo-1,
.placeholder-logo-2,
.placeholder-logo-4,
.placeholder-logo-5 {
  background: conic-gradient(red 50%, white 50%);
}
.placeholder-logo-3 {
  background: linear-gradient(to top, #ffcc33, #ff6600);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Keyframes for the scrolling animation */
@keyframes scrollLogos {
  0% {
      transform: translateX(0%);
  }
  100% {
      /* Move left by exactly the width of ONE set of logos */
      transform: translateX(-50%);
  }
}

/* Add specific responsive adjustments if needed for the scroller */
@media (max-width: 768px) {
  .logo-item {
      width: 80px;
      height: 80px;
      margin: 0 10px;
  }
  /* Adjust animation speed if it feels too fast on mobile */
  .university-logos-scroll-container {
       /* animation-duration: 60s; */ /* Example: Slower on mobile */
  }
   .footer-universities-scroll-wrapper {
       /* Adjust fade mask percentages if needed */
      -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
      mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  }
}
.footer-portal-nav a:hover::before {
  content: '🡢 ';
}
.footer-portal-nav a:hover {
  color: #DDB57E;
  transform: translateX(5px);
}
/* Copyright Section */
.footer-copyright {
  text-align: start;
  margin-top: 10px;
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 0.9rem;
  color: #ffffff;
}

/* ================= Responsive Adjustments ================= */

@media (max-width: 991px) {
  .footer-left {
      padding-right: 0; /* Remove extra padding */
  }
  .footer-right.footer-portal-box {
      flex-basis: 280px; /* Slightly smaller box */
  }
}


@media (max-width: 768px) {
  .site-footer {
      padding-top: 40px;
      padding-bottom: 20px;
      border-radius: 10px 10px 0 0; /* Slightly smaller radius */
  }

  .footer-top-section {
      flex-direction: column; /* Stack columns */
      gap: 30px;
      margin-bottom: 40px;
  }

  .footer-left,
  .footer-right.footer-portal-box {
      flex-basis: auto; /* Allow full width */
      width: 100%; /* Ensure they take full width */
      max-width: 500px; /* Optional: prevent excessive width */
      margin-left: auto; /* Center if max-width is used */
      margin-right: auto; /* Center if max-width is used */
  }

   .footer-universities {
      padding-top: 25px;
   }

  .footer-copyright {
      margin-top: 40px;
      padding-top: 15px;
  }
}

/* ============================== */
/* Popup Modal Styles             */
/* ============================== */
    /* Quick Apply Modal - Modern Redesign */
.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.popup-modal[style*="display: block"] {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.popup-modal[style*="display: block"] .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #303038;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #909090;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f7f7f7;
  color: #505050;
}

.modal-body {
  padding: 24px 28px 28px;
}

/* Form styling */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #404040;
  margin-bottom: 6px;
}

.required {
  color: #e55555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #303030;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%23606060' d='M1 1L7 7L13 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #90b4e0;
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.1);
}

input::placeholder {
  color: #b0b0b0;
}

.error-message {
  margin-top: 5px;
  font-size: 12px;
  color: #e74c3c;
}

.loading-indicator {
  margin-left: 8px;
  color: #808080;
}

.program-reference {
  margin-left: 10px;
  font-size: 12px;
  font-weight: normal;
  color: #707070;
}

.program-reference a {
  color: #5085cc;
  text-decoration: none;
  transition: color 0.2s;
}

.program-reference a:hover {
  color: #3060a0;
  text-decoration: underline;
}

.program-note {
  color: #707070;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.program-note a {
  color: #5085cc;
  text-decoration: none;
  transition: color 0.2s;
}

.program-note a:hover {
  color: #3060a0;
  text-decoration: underline;
}

/* Test details section */
.test-details-section {
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 10px;
  background-color: #f8f9fb;
  border: 1px solid #e8edf5;
}

.test-details-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #404050;
  margin-top: 0;
  margin-bottom: 12px;
}

#qa_test_info p {
  margin: 5px 0;
  font-size: 14px;
  color: #505060;
}

#qa_test_price_discounted {
  color: #2e8540;
  font-weight: 600;
}

#qa_test_price_full {
  color: #909090;
}

/* Form feedback */
.form-feedback {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 8px;
  font-size: 14px;
}

.form-feedback.success {
  background-color: #e7f5ec;
  color: #2e8540;
  border-left: 4px solid #2e8540;
}

.form-feedback.error {
  background-color: #fde8e8;
  color: #e53e3e;
  border-left: 4px solid #e53e3e;
}

/* Form actions */
.form-actions {
  margin-top: 28px;
  text-align: center;
}

.btn-proceed-payment {
  display: inline-block;
  background-color: #4a7dbd;
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(74, 125, 189, 0.2);
}

.btn-proceed-payment:hover {
  background-color: #3b6eae;
  box-shadow: 0 4px 12px rgba(74, 125, 189, 0.3);
  transform: translateY(-1px);
}

.btn-proceed-payment:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(74, 125, 189, 0.2);
}

.btn-proceed-payment:disabled {
  background-color: #b5c4d6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
.modal-content {
        max-width: 100%;
        margin: 0 0;
        border-radius: 12px;
    }
.header-container {
    gap: 10px;

}
  
  .modal-header {
    padding: 16px 20px 14px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 18px 20px 22px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    height: 42px;
    font-size: 14px;
  }
  
  .form-field {
    margin-bottom: 16px;
  }
  
  .test-details-section {
    padding: 14px;
  }
  
  .btn-proceed-payment {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Animation for form validation feedback */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-error {
  border-color: #e74c3c !important;
  animation: shake 0.5s ease-in-out;
}

/* Transition for elements appearing/disappearing */
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}