* {
  
    box-sizing: border-box;
}

:root {
    --primary-blue: #002b5c;
    --primary-blue-light: #224d7e;
    --accent-gold: #d4af37;
    --accent-green: #006400;
    --light-gray: #f4f4f4;
}

body,
html {
    margin: 0;
    padding: 0;
    transition: opacity 0.25s;
    font-family: Verdana, sans-serif;
    color: #303030;
    background-color: var(--primary-blue);
    scroll-behavior: smooth;
}

body {
    
    opacity: 0;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1000;
}

nav.transparent {
    background-color: transparent;
    color: white;
}

nav.scrolled {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: auto;
    max-width: 1280px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}

.logo {
    height: 128px;
    transition: height 0.3s ease;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    transition: font-size 0.3s ease;
}

.nav-right ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-right ul li a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

.nav-right ul li a:hover {
    color: var(--accent-gold);
}

nav.scrolled .logo {
    height: 40px;
}

nav.scrolled .site-name {
    font-size: 1rem;
}

.hero {
    position: relative;
    background: url('global/img/media.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    max-width: 1600px;
    text-align: right;
    font-size: 9rem;
    font-family: 'Lato', sans-serif;
    margin-bottom: 10px;
}

@media (max-width: 1450px) {
    .hero-content h1 {
        font-size: 8rem;
    }
}

@media (max-width: 1300px) {
    .hero-content h1 {
        font-size: 7rem;
    }
}

@media (max-width: 1150px) {
    .hero-content h1 {
        font-size: 6rem;
    }
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    font-size: 1em;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;

    font-family: Verdana, sans-serif;
    border-width: 2px;
    border-style: outset;
    border-color: buttonborder;
    border-image: initial;
}
a.btn:disabled, button.btn:disabled {
   background-color: #666666;
   color: #cccccc;
   cursor: not-allowed;
   opacity: 0.8;
}

.btn.danger {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 1s;
  background-color: #c0392b;
  color: #fff;
}

.btn.danger:hover {
  background-color: #e74c3c;
  box-shadow: 0 0 16px #e74c3c;
}

.btn.primary {
    background-color: var(--accent-gold);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-blue);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn.secondary:hover {
    background-color: white;
    color: var(--primary-blue);
}

section {
    padding: 80px 40px;
    background: white;
}

.section-inner {
    max-width: 1280px;
    margin: auto;
}

.hero~section:nth-of-type(odd) {
    background: #e0e0e0;
}

section h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border-radius: 25px;
    box-shadow:rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.01) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 1px 4px, rgba(0, 0, 0, 0.01) 0px 16px 8px, rgba(0, 0, 0, 0.01) 0px 32px 16px;
}

.pillar i {
    font-size: 5em;
    margin-bottom: 25px;
}

.pillar h3 {
    color: var(--accent-green);
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat .counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 40px;
    background-color: var(--light-gray);
}

.about-image img {
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.about-text {
    max-width: 700px;
}

.about-text h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.sub-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sub-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.sub-nav a:hover {
    border-color: var(--accent-gold);
}

.message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 40px 0;
    background-color: var(--light-gray);
}

.message-person img {
    height: 256px;
    border-radius: 8px;
    object-fit: cover;

    position: relative;
    top: -32px;
    opacity: 0;
    transform: scale(0.75);
    transition: all 1s ease-out;
}

.message.visible .message-person img {
    top: 0;
    opacity: 1;
    transform: scale(1);
}

.message-text {
    max-width: 600px;
}

.message-text h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.message-text p {
    line-height: 1.6;
    font-size: 1rem;
}

.programmes-who ul {
    text-align: left;
    max-width: 386px;
    margin: auto;
}

.programmes-who ul li {
    margin: 8px 0;
}

.programmes-who {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.programmes,
.who {
    margin: auto;
    flex: 1;
    max-width: 500px;
}

.admissions {
    position: relative;
    padding: 80px 40px;
    text-align: center;
}

.admissions-img {
    position: absolute;
    top: -64px;
    transform: translateX(-64px);
    width: 128px;
}

.timeline-process {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.timeline-text {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.timeline-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-line {
    flex: 1;
    height: 4px;
    background: var(--accent-gold);
    align-self: center;
    margin-top: 65px;
}

.faq-section {
    margin: auto;
    max-width: 512px;
}

.faq {
    max-width: 800px;
    margin: 60px auto;
}

.faq-item {
    padding: 10px;
    background-color: var(--light-gray);
    border-bottom: 1px solid #ddd;
    border-radius: 25px;
    margin-bottom: 25px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
}

.faq-answer {
    display: none;
    padding: 0 15px 15px;
    line-height: 1.6;
}

footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    margin: 5px 0;
}

.footer-brand .tagline {
    font-style: italic;
    color: var(--accent-gold);
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}

.footer-contact a {
    color: white !important;
}

.footer-contact p,
.footer-social a {
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 150px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu ul {
    list-style: none;
    padding: 25px;
}

.mobile-menu ul li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: var(--primary-blue-light);
}

.mobile-menu ul li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.mobile-menu ul li:hover {
    background-color: var(--light-gray);
}

.mobile-menu.active {
    right: 0;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
    background-color: #fff;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success {
    border-color: #28a745;
    color: #155724;
    background-color: #d4edda;
}

.toast-success i {
    color: #28a745;
}

.toast-danger {
    border-color: #dc3545;
    color: #721c24;
    background-color: #f8d7da;
}

.toast-danger i {
    color: #dc3545;
}

.toast-general {
    border-color: #17a2b8;
    color: #0c5460;
    background-color: #d1ecf1;
}

.toast-general i {
    color: #17a2b8;
}

.hero-login {
    display: flex;
    height: 100vh;
    background: #f5f5f5;
    padding: 0;
    background: var(--primary-blue);
}

.hero-left {
    position: relative;
    flex: 1;
    background: url('global/img/media.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-left .logo,
.hero-left .site-name {
    position: relative;
    z-index: 2;
}

.hero-left .logo {
    width: 120px;
    margin-bottom: 20px;
}

.hero-left .site-name {
    font-size: 2rem;
    font-weight: bold;
}

.hero-right {
    flex: 1;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.btn.google {
    background: #db4437;
    color: white;
    width: 100%;
    text-align: center;
}

.btn.full {
    width: 100%;
}

.btn.register {
    display: block;
    background: #db4437;
    color: white;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    outline: none;
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230056B3' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.form-group input[type="radio"] {
    display: none;
}

.form-group input[type="radio"]+label {
    padding-left: 28px;
    position: relative;
    cursor: pointer;
}

.form-group input[type="checkbox"]+label {
    padding-left: 28px;
    position: relative;
    cursor: pointer;
}

.form-group input[type="radio"]+label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
}

.form-group input[type="radio"]:checked+label::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.form-group input[type="radio"]+label:hover::before {
    border-color: var(--primary-blue);
}

/* n.b.: from https://loading.io */
@keyframes ldio-yzaezf3dcmj {
    0% {
        background: #224d7e
    }

    12.5% {
        background: #224d7e
    }

    12.625% {
        background: #002b5c
    }

    100% {
        background: #002b5c
    }
}

.ldio-yzaezf3dcmj div {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #002b5c;
    animation: ldio-yzaezf3dcmj 1s linear infinite;
}

.loadingio-spinner-blocks-2by998twmg8 {
    width: 64px;
    height: 64px;
    display: block;
    margin: auto;
    overflow: hidden;
    background: #ffffff;
}

.ldio-yzaezf3dcmj {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.64);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

.ldio-yzaezf3dcmj div {
    box-sizing: content-box;
}

@media (max-width: 980px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .nav-right {
        display: none;
    }

    .programmes-who {
        flex-direction: column;
        text-align: center;
    }

    .programmes,
    .who {
        max-width: 100%;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .timeline-process {
        flex-direction: column;
        align-items: center;
    }

    .timeline-line {
        width: 4px;
        height: 40px;
        margin: 0px 0;
        flex:none;
    }

    .message {
        flex-direction: column;
        text-align: center;
    }

    .message-person img {
        margin-bottom: 20px;
    }


    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social a {
        margin: 0 8px;
    }

    #navbar:has(+ .mobile-menu.active) .logo {
        height: 128px;
    }

    #navbar:has(+ .mobile-menu.active) .site-name {
        font-size: 1.2rem;
    }


    .hero-login {
        height: 100%;
        flex-direction: column;
    }

    .hero-left,
    .hero-right {
        flex: none;
        width: 100%;
        height: auto;
    }

    .hero-left {
        padding: 40px 20px;
    }

    .sidebar {
        display: none;
    }
}