
/* ==========================================
   TRUSTWAY EDUCATION
   UK INSPIRED PREMIUM WEBSITE THEME
========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #012169;
    --dark-navy: #001747;
    --blue: #244E9B;
    --red: #C8102E;
    --dark-red: #A50D26;
    --light-blue: #EAF0FA;
    --pale-blue: #F5F7FC;
    --white: #FFFFFF;
    --text: #17233D;
    --muted: #69758A;
    --border: #DFE5F0;

    --gradient: linear-gradient(120deg, #012169, #244E9B, #C8102E);
    --gradient-reverse: linear-gradient(120deg, #C8102E, #244E9B, #012169);

    --shadow: 0 12px 35px rgba(1, 33, 105, .09);
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    width: min(1150px, 90%);
    margin: auto;
}

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

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(15px);
    box-shadow: 0 3px 25px rgba(1, 33, 105, .07);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient) 1;
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
}

.logo small {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--red);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 25px;
    box-shadow: 0 5px 15px rgba(1, 33, 105, .2);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: color .3s ease;
}

nav a:hover {
    color: var(--red);
}

.nav-button {
    padding: 11px 23px;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(1, 33, 105, .16);
    transition: .3s;
}

.nav-button:hover {
    color: white;
    background: var(--gradient-reverse);
    transform: translateY(-3px);
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
    min-height: 690px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=2000")
        center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(1, 33, 105, .97) 0%,
        rgba(1, 33, 105, .86) 48%,
        rgba(200, 16, 46, .52) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease both;
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.hero .eyebrow {
    color: #FFCCD5;
}

.hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(43px, 6vw, 76px);
    line-height: 1.12;
    max-width: 780px;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero h1 span {
    color: #FFCCD5;
}

.hero p {
    max-width: 560px;
    color: #E8EDFA;
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .3s, background .3s, box-shadow .3s;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    background: linear-gradient(120deg, #C8102E, #E43B58);
    color: white;
    box-shadow: 0 7px 20px rgba(200, 16, 46, .28);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #A50D26, #C8102E);
    color: white;
    box-shadow: 0 10px 25px rgba(200, 16, 46, .3);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.8);
    color: white;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

.hero-note {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
    color: #E8EDFA;
    font-size: 13px;
}

.hero-note span {
    color: #FFCCD5;
    font-weight: 800;
}

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

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-heading h2,
.about-content h2,
.contact-content h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--navy);
}

.section-heading h2 span,
.about-content h2 span,
.contact-content h2 span {
    background: linear-gradient(90deg, var(--blue), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p,
.about-content p,
.contact-content p {
    color: var(--muted);
}

/* ==========================================
   DESTINATIONS
========================================== */

.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.destination-card {
    position: relative;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    color: white;
    transition: transform .4s, box-shadow .4s;
    box-shadow: var(--shadow);
}

.destination-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 40px rgba(1, 33, 105, .2);
}

.destination-card img {
    height: 100%;
    transition: transform .7s;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 10%,
        rgba(1, 15, 48, .88)
    );
}

.destination-info {
    position: absolute;
    z-index: 1;
    bottom: 25px;
    left: 22px;
    right: 22px;
}

.destination-info h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    margin-bottom: 7px;
}

.destination-info p {
    color: #E5EAF5;
    font-size: 13px;
    margin-bottom: 12px;
}

.destination-info a {
    color: #FFB8C5;
    font-weight: 700;
    font-size: 13px;
    transition: color .3s;
}

.destination-info a:hover {
    color: white;
}

/* ==========================================
   SERVICES
========================================== */

.services {
    background: linear-gradient(
        135deg,
        #EAF0FA,
        #F8F9FD,
        #FFFFFF
    );
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 32px 25px;
    background: white;
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    border-radius: 17px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--red);
    box-shadow: 0 18px 40px rgba(1, 33, 105, .12);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #EAF0FA, #FCE8ED);
    color: var(--navy);
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-weight: 800;
    margin-bottom: 22px;
    transition: .3s;
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
}

.service-card h3 {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--navy);
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

/* ==========================================
   ABOUT SECTION
========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.about-image {
    position: relative;
}

.about-image img {
    height: 480px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(1, 33, 105, .13);
}

.image-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: white;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border-left: 4px solid var(--red);
}

.image-label strong,
.image-label span {
    display: block;
}

.image-label strong {
    color: var(--navy);
}

.image-label span {
    font-size: 12px;
    color: var(--muted);
}

.about-content p {
    margin-bottom: 16px;
}

.about-content ul {
    list-style: none;
    margin: 25px 0;
}

.about-content li {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--navy);
}

.about-content li::first-letter {
    color: var(--red);
}

/* ==========================================
   CONTACT & REGISTRATION FORM
========================================== */

.contact {
    background: linear-gradient(
        135deg,
        #F5F7FC,
        #EAF0FA
    );
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-content {
    padding-top: 40px;
}

.contact-content p {
    margin-bottom: 30px;
}

.contact-feature {
    margin: 17px 0;
    font-weight: 600;
    color: var(--navy);
}

.contact-feature span {
    color: var(--red);
    margin-right: 10px;
}

.form-card {
    background: white;
    padding: 38px;
    border-radius: 20px;
    border-top: 5px solid var(--navy);
    box-shadow: 0 15px 50px rgba(1, 33, 105, .1);
}

.form-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    color: var(--navy);
}

.form-card > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #DCE3F0;
    border-radius: 9px;
    outline: none;
    background: #FAFBFE;
    color: var(--text);
    font-size: 14px;
    transition: border .3s, box-shadow .3s, background .3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 33, 105, .1);
}

.form-group textarea {
    resize: vertical;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}

.consent input {
    margin-top: 4px;
    accent-color: var(--red);
}

.submit-button {
    width: 100%;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    padding: 16px;
}

.submit-button:hover {
    background: var(--gradient-reverse);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.footer {
    background: linear-gradient(
        120deg,
        #001747,
        #012169,
        #153D83
    );
    color: white;
    padding: 55px 0 25px;
    border-top: 5px solid var(--red);
}

.footer-logo {
    color: white;
}

.footer-logo small {
    color: #FFB8C5;
}

.footer-content > p {
    margin: 20px 0 35px;
    color: #D1DAEB;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #D1DAEB;
    font-size: 13px;
}

.footer-bottom a {
    color: #FFB8C5;
    font-weight: 700;
}

.footer-bottom a:hover {
    color: white;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.hero-content {
    animation: slideUp 1s ease both;
}

.service-icon {
    animation: fadeIn .8s ease both;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #F1F3F8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--navy),
        var(--red)
    );
    border-radius: 10px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 950px) {

    nav {
        gap: 15px;
    }

    .destination-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        padding-top: 0;
    }

}

@media (max-width: 650px) {

    .nav-container {
        height: auto;
        padding: 17px 0;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    nav a {
        font-size: 12px;
    }

    .nav-button {
        padding: 8px 14px;
    }

    .hero {
        min-height: 620px;
        background-position: center;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-note {
        gap: 10px;
    }

    .section {
        padding: 70px 0;
    }

    .destination-grid,
    .service-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .destination-card {
        height: 330px;
    }

    .about-image img {
        height: 350px;
    }

    .form-card {
        padding: 24px 18px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

}

/* ==========================================
   ACCESSIBILITY
========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
