/* Base Styles */
:root {
    --primary-color: #3a5b92;
    --primary-dark: #2c4572;
    --primary-light: #5474ab;
    --secondary-color: #e84c3d;
    --secondary-dark: #c43c2f;
    --secondary-light: #f16559;
    --accent-color: #f3ce5e;
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --grey-color: #777777;
    --light-grey: #eeeeee;
    --white: #ffffff;
    --black: #000000;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --text-color: #444444;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--grey-color);
}

/* Header and Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover::after, .main-nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 80px;
    background: url('../assets/hero-background.svg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-text {
    width: 100%;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.feature {
    width: 30%;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.feature h3 {
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    text-align: center;
}

.service-icon img {
    height: 150px;
    width: auto;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.testimonial-item {
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.testimonial-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    margin-top: 20px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author span {
    color: var(--grey-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-dark);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--light-grey);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-content p {
    color: var(--grey-color);
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--grey-color);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    width: 40%;
}

.contact-form {
    width: 55%;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.required {
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    width: 30%;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    width: 65%;
    justify-content: space-between;
}

.footer-links-column {
    margin-right: 20px;
}

.footer-links-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: var(--light-grey);
    transition: var(--transition);
}

.footer-links-column ul li a:hover, .footer-links-column ul li a.active {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 500px;
    margin: 0 auto;
    display: none;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

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

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cookie-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}

.cookie-settings.hidden {
    display: none;
}

.cookie-option {
    margin-bottom: 15px;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-option label {
    font-weight: 500;
}

.cookie-option p {
    margin-top: 5px;
    margin-left: 25px;
    font-size: 0.9rem;
    color: var(--grey-color);
}

.cookie-settings-buttons {
    margin-top: 15px;
}

/* Article Page */
.article-section {
    padding-top: 120px;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--grey-color);
    font-size: 0.9rem;
}

.article-meta .date {
    margin-right: 15px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.example-box {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.example-box h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--light-grey);
}

/* Legal Pages */
.legal-section {
    padding-top: 120px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header h1 {
    margin-bottom: 10px;
}

.legal-header p {
    color: var(--grey-color);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-introduction {
    margin-bottom: 30px;
}

.legal-section-item {
    margin-bottom: 40px;
}

.legal-section-item h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.legal-section-item h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section-item ul, .legal-section-item ol {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section-item li {
    margin-bottom: 8px;
}

/* Thanks Page */
.thanks-section {
    padding: 150px 0 80px;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thanks-icon {
    margin-bottom: 20px;
}

.thanks-icon svg {
    width: 80px;
    height: 80px;
    color: var(--success-color);
}

.thanks-content h1 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.thanks-details {
    margin: 20px 0 30px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}
