/* ========================================
   FONT FACES
   ======================================== */

@font-face {
  font-family: 'Georgia';
  src: url('../fonts/georgia.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Georgia';
  src: url('../fonts/georgiab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Georgia';
  src: url('../fonts/georgiai.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Georgia';
  src: url('../fonts/georgiaz.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

.row {
  display: flex;
}

.column {
  flex: 50%;
  padding: 10px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-size: 18px;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ========================================
   VARIABLES
   ======================================== */

:root {
  --ucc-blue: #003087;
  --ucc-gold: #c4a830;
  --ink: #1a1a1a;
  --cream: #f7f3ea;
}

/* ========================================
   GLOBAL ELEMENTS
   ======================================== */

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: 888px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background-color: #003087;
  color: white;
  border-color: #003087;
}

.btn--primary:hover {
  background-color: #c4a830;
  border-color: #c4a830;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.btn--secondary {
  background-color: #c4a830;
  color: #003087;
  border-color: #c4a830;
}

.btn--secondary:hover {
  background-color: #b39628;
  border-color: #b39628;
  transform: translateY(-2px);
}

.btn--cta {
  background-color: #c4a830;
  color: #003087;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  gap: 0.75rem;
}

.btn--cta:hover {
  background-color: #b39628;
  transform: translateY(-2px);
}

.btn--cta i {
  font-size: 1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background-color: var(--ucc-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 50px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__actions .btn {
  min-width: 150px;
  justify-content: center;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #003087;
  color: white;
  border: 2px solid #003087;
  padding: 0.75rem 1.5rem;
  font-family: 'Georgia', serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.nav__dropdown-toggle:hover {
  background-color: #c4a830;
  border-color: #c4a830;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.nav__dropdown-toggle i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.nav__dropdown.is-open .nav__dropdown-toggle i {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 2px solid var(--ucc-blue);
  border-radius: 4px;
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  z-index: 1000;
}

.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--ucc-blue);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #e5e5e5;
}

.nav__dropdown-item:last-child {
  border-bottom: none;
}

.nav__dropdown-item:hover {
  background-color: var(--cream);
  padding-left: 1.75rem;
}

@media (max-width: 768px) {
  .nav__container {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }
  
  .nav__logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .nav__logo-img {
    height: 40px;
  }
  
  .nav__actions {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }
  
  .nav__actions .btn {
    min-width: 120px;
  }
  
  .nav__dropdown-toggle {
    min-width: 120px;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .nav__dropdown-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .nav__dropdown-menu {
    min-width: 220px;
  }
  
  .nav__dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   BANNER
   ======================================== */

.banner {
  position: relative;
  background: var(--ucc-blue);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  min-height: 60vh;
}

.banner__header {
  background: var(--ucc-blue);
  padding: 6rem 0 5% 20%;
  text-align: left;
  grid-column: 1;
  grid-row: 1;
}

.banner__logo-wrapper {
  max-width: 100%;
}

.banner__logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
}

.banner__media {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.banner__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.banner__footer {
  background: var(--ucc-blue);
  padding: 2% 0 10% 25%;
  text-align: center;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: top;
}

.banner__text-content {
  max-width: 100%;
}

.banner__tagline {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #ffffff;
}

.banner__dates {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ucc-gold);
  margin-bottom: 1.5rem;
}

.banner__text-content .btn--cta {
  margin-bottom: 1.5rem;
}

.banner__application {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .banner {
    display: block;
    min-height: auto;
  }
  
  .banner__header {
    padding: 1.5rem 0 1rem;
    text-align: center;
  }
  
  .banner__logo-wrapper {
    padding: 0 1rem;
  }
  
  .banner__logo {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .banner__media {
    height: auto;
  }
  
  .banner__img {
    height: auto;
    object-fit: contain;
  }
  
  .banner__footer {
    padding: 2rem 1rem 2.5rem;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  
  .banner__tagline {
    font-size: 1.75rem;
  }
  
  .banner__dates {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .banner__text-content .btn--cta {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    margin-bottom: 1rem;
  }
  
  .banner__application {
    font-size: 1rem;
  }
}

/* ========================================
   SECTIONS
   ======================================== */

.section { 
  padding: 4rem 0;
  scroll-margin-top: 90px;
}
.section--light { background: #ffffff; }
.section--cream { background: var(--cream); }
.section--brand { background: var(--ucc-blue); color: #ffffff; }
.section--image { padding: 0; }

.section__title {
  font-family: 'Georgia', serif;
  font-size: 3rem;
  line-height: 3.25rem;
  color: var(--ucc-blue);
  margin-bottom: 3rem;
  text-align: center;
}
.section__title--invert { color: #ffffff; }
.section__lead { color: #000000; margin-bottom: 1rem; text-align: center; }

.text--invert { color: rgba(255,255,255,.9); }

/* ========================================
   HERO CAROUSEL
   ======================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
}

.hero-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide.is-active {
  opacity: 1;
}

.hero-carousel__slide .banner__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 2;
}

.hero-carousel__prev,
.hero-carousel__next {
  display: none;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.hero-carousel__dot.is-active {
  background: #fff;
  opacity: 1;
}

.hero-carousel__dot:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-carousel__dots {
    bottom: 0.5rem;
  }
  
  .hero-carousel__dot {
    width: 10px;
    height: 10px;
  }
}

/* ========================================
   CAMPUS CAROUSEL
   ======================================== */

.campus-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.campus-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.campus-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.campus-carousel__dot.is-active {
  background: #fff;
  opacity: 1;
}

.campus-carousel__dot:hover {
  opacity: 0.9;
}

.campus-carousel__slides {
  position: relative;
  width: 100%;
  display: grid;
}

.campus-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.campus-carousel__slide.is-active {
  opacity: 1;
}

.campus-carousel__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.campus-carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.campus-carousel__prev,
.campus-carousel__next {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.campus-carousel__prev:hover,
.campus-carousel__next:hover {
  background: rgba(0, 0, 0, 0.5);
}

.campus-carousel__caption {
  position: absolute;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  background: rgba(0, 48, 135, 0.85);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .campus-carousel__controls {
    padding: 0 0.5rem;
  }
  .campus-carousel__prev,
  .campus-carousel__next {
    width: 36px;
    height: 36px;
  }
  .campus-carousel__caption {
    width: calc(100% - 2rem);
    bottom: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .campus-carousel__caption {
  bottom: 2rem;
}
}

/* ========================================
   LISTS
   ======================================== */

.list { margin: 1rem 0; padding-left: 1.25rem; }
.list--bullets { list-style: disc; padding-left: 3rem; }
.list--bullets li { margin-bottom: .5rem;}
.list--check { list-style: none; padding-left: 3rem; }
.list--check li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.list--check li:before {
  content: "\f00c";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ucc-blue);
}

.list--steps { counter-reset: step; list-style: none; padding-left: 3rem; }
.list--steps li { counter-increment: step; margin-bottom: .75rem; padding-left: 2rem; position: relative; }
.list--steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--ucc-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
}

@media (max-width: 768px) {
  .list--steps { 
    padding-left: 1rem; 
  }
  .list--check { 
    padding-left: 1rem; 
  }
  .list--bullets { 
    padding-left: 2rem; 
  }
}

/* ========================================
   ACCORDION
   ======================================== */

.accordion { border-top: none; }
.accordion__header {
  width: 100%;
  font-family: 'Georgia';
  text-align: left;
  background: transparent;
  color: #c4a830;
  border: none;
  padding: .875rem 0;
  border-bottom: 1px solid currentColor;
  opacity: .9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.25rem;
}
.accordion__header:after { content: "\f107"; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.accordion__header[aria-expanded="true"]:after { content: "\f106"; }
.accordion__panel { display: none; padding: .5rem 0 1rem 2rem; color: inherit; opacity: .9; }
.accordion__panel.is-open { display: block; }

/* ========================================
   PROGRAM GRID
   ======================================== */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 0;
  text-align: left;
}
.program-grid__col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  text-decoration: underline;
  color: #c4a830;
}

.program-grid__col p {
  margin-bottom: .5rem;
  font-size: .9rem;
  line-height: 1.5;
}

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

/* ========================================
   ABOUT STU
   ======================================== */

.about-stu { 
  display: block;
  text-align: left;
}

.about-stu p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stu__media {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 300px;
}

.about-stu__img { 
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-stu__media {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 180px;
  }
}

/* ========================================
   FAQ
   ======================================== */

.faq__contact { 
  margin-top: 2rem;
  text-align: center;
}

.contact__email {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.contact__email:hover {
  opacity: 0.8;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  position: relative;
  overflow: hidden;
  background-color: var(--ucc-blue);
  color: white;
  padding: 5rem 0;
}

.footer__polygon {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transform-origin: center;
  opacity: 1;
}

.footer__polygon--left {
  bottom: -40px;
  left: -60px;
  transform: scale(1.3);
}

.footer__polygon--right {
  top: -40px;
  right: -60px;
  transform: scale(1.3);
}

.footer__polygon-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  transition: transform 0.3s ease;
}

.footer__container--3col {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer__col--left {
  justify-self: start;
  text-align: left;
}

.footer__col--center {
  justify-self: center;
  text-align: center;
}

.footer__col--right {
  justify-self: end;
  text-align: right;
}

.footer__logo--lang {
  max-width: 200px;
  height: auto;
  position: relative;
  z-index: 3;
}

.footer__logo--ucc {
  max-width: 160px;
  height: auto;
  position: relative;
  z-index: 3;
}

.footer__col--center .btn--cta {
  margin-bottom: 1rem;
}

.footer__deadline {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  color: white;
  position: relative;
  z-index: 3;
}

.footer__links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__links a:hover {
  opacity: 0.8;
}

.footer__divider {
  color: var(--ucc-gold);
}

@media (max-width: 1024px) {
  .footer__polygon--left {
    bottom: -30px;
    left: -40px;
    transform: scale(1.1);
  }

  .footer__polygon--right {
    top: -30px;
    right: -40px;
    transform: scale(1.1);
  }

  .footer__polygon-img {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0;
  }

  .footer__container--3col {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__col--left,
  .footer__col--center,
  .footer__col--right {
    justify-self: center;
    text-align: center;
  }

  .footer__col--center .btn--cta {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
  }

  .footer__polygon--left {
    bottom: 0%;
    left: -20%;
    transform: scale(0.27);
  }

  .footer__polygon--right {
    top: 0%;
    right: -16%;
    transform: scale(0.27);
  }

  .footer__polygon-img {
    max-width: 54px;
  }

  .footer__logo--lang,
  .footer__logo--ucc {
    max-width: 150px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.section .container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section .container.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FOCUS STATES
   ======================================== */

.btn:focus,
a:focus {
  outline: 2px solid #0072ce;
  outline-offset: 2px;
}
