:root {
    --primary-color: #1a4a75;
    --secondary-color: #5cb85c;
    --accent-color: #007bff;
    --background-color: #e0f2f7;
    --footer-bg-color: #0f2e4c;
    --text-color: #333;
    --heading-color: #1a4a75;
    --card-bg-light: #F0F8FA;
    --card-bg-medium: #DDF0F5;
    --card-bg-dark: #C6E4ED;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    --font-family-base: 'Roboto', sans-serif;
    --font-family-heading: 'Montserrat', sans-serif;

    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* Layout and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    overflow: hidden; /* For potential glassmorphism elements overflow */
}

section:nth-of-type(odd) {
    background-color: #E0F2F7; /* Matches design_preferences[0] */
}

section:nth-of-type(even) {
    background-color: #F0F8FA; /* Matches design_preferences[1] */
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: #fff;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-lg);
}

.nav__item a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav__item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav__item a:hover::after,
.nav__item a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 15px rgba(92, 184, 92, 0.3);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 184, 92, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* Cards & Glassmorphism */
.card {
    background: rgba(255, 255, 255, 0.3); /* Slightly transparent white */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

.card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.card__text {
    font-size: 1rem;
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--heading-color);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(26, 74, 117, 0.2); /* Semi-transparent border based on primary */
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.7); /* Light glassmorphism input */
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    background-color: #fff; /* Less transparent on focus */
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: #e0f2f7; /* Light text for dark footer */
    padding: var(--spacing-xl) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__links {
    list-style: none;
    margin: 0 0 var(--spacing-md) 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.footer__links a {
    color: #e0f2f7;
    font-weight: 400;
    opacity: 0.8;
}

.footer__links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer__copyright {
    margin-top: var(--spacing-md);
    opacity: 0.7;
}

/* Utility classes (can be complemented by Tailwind) */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations for Alpine.js transitions */
[x-cloak] { display: none !important; }

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
    transition: all 0.4s ease-out;
}
.slide-up-enter-from, .slide-up-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .nav__list {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    section {
        padding: var(--spacing-lg) 0;
    }
    .footer__links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .btn {
        width: 100%;
        padding: var(--spacing-md);
    }
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Specific section background colors from user_specific_css_requests */
.section-bg-1 { background-color: #E0F2F7; }
.section-bg-2 { background-color: #F0F8FA; }
.section-bg-3 { background-color: #DDF0F5; }
.section-bg-4 { background-color: #C6E4ED; }
.section-bg-5 { background-color: #B0D7E0; }
.section-bg-6 { background-color: #A0C8D0; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}