html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 200px;
}

/*
 * DreamJob.Today redesigned styles
 */

/* Colour variables for easy theming */
:root {
    --primary-color: #2c73d2;
    --secondary-color: #008080;
    --neutral-bg: #f7f9fc;
    --text-color: #2a2a2a;
    --light-color: #ffffff;
    --dark-bg: #0a2540;
}

/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--neutral-bg);
    line-height: 1.6;
}

/* Container class to constrain width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation bar */
.navbar {
    background-color: var(--primary-color);
    color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}

.navbar nav {
    display: flex;
    gap: 1.5rem;
}

.navbar .nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #dce6f6;
    }

/* Hero section */
.hero {
    position: relative;
    color: var(--light-color);
    height: 40vh;
    background-image: url('/images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #245ca5;
}

.btn-secondary:hover {
    background-color: #006666;
}

/* Generic section styling */
.section {
    padding: 4rem 0;
}

.alt-bg {
    background-color: var(--light-color);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

    .section-header h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-left: 0.5rem;
    }

.section-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Lead text style */
.lead {
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* Card grid layout */
.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--neutral-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
}

/* Features list */
.features {
    list-style: none;
    margin-top: 1rem;
}

    .features li {
        margin-bottom: 0.75rem;
        font-size: 1.125rem;
    }

        .features li i {
            margin-right: 0.5rem;
            color: var(--secondary-color);
        }

/* Contact section styles */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1 1 260px;
}

.contact-form {
    flex: 1 1 380px;
}

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .contact-form label {
        display: block;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
    }

    .contact-form textarea {
        resize: vertical;
    }

/* Footer styling */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-color);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 200px;
}

    .footer-column h4 {
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .footer-column ul {
        list-style: none;
    }

        .footer-column ul li {
            margin-bottom: 0.5rem;
        }

            .footer-column ul li a {
                color: #dce6f6;
                text-decoration: none;
                transition: color 0.2s ease;
            }

                .footer-column ul li a:hover {
                    color: var(--light-color);
                }

    .footer-column.social a {
        font-size: 1.5rem;
        margin-right: 1rem;
        color: #dce6f6;
    }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* Responsive media queries */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

.section--pad {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.bg-light {
    background: #f7f8fb;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.section__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 .25rem;
}

.section__subtitle {
    color: #5a6473;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 6px 24px rgba(20, 23, 31, 0.06);
}

.testimonial-quote {
    margin: 0 0 .75rem;
    font-size: 1rem;
    line-height: 1.55;
}

.testimonial-meta {
    font-weight: 600;
    color: #2a3342;
}

.section__cta {
    text-align: center;
    margin-top: 1rem;
}

.btn.btn-primary {
    display: inline-block;
    padding: .75rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    background: #2e5cff;
    color: #fff;
    font-weight: 600;
}

/* Carousel */
.testimonials-carousel {
    margin-top: 2rem;
    position: relative;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(90%, 520px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
}

    .carousel-track::-webkit-scrollbar {
        height: 8px;
    }

    .carousel-track::-webkit-scrollbar-thumb {
        background: #d0d6e3;
        border-radius: 8px;
    }

.testimonial-slide {
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 6px 24px rgba(20, 23, 31, 0.06);
    min-height: 140px;
}

.carousel-controls {
    position: absolute;
    inset: 0 0 auto 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    background: #ffffffcc;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    margin: .25rem;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        scroll-behavior: auto;
    }
}