/* Base Styles & Variables */
:root {
    --primary-color: #2962ff;
    --primary-dark: #0039cb;
    --primary-light: #768fff;
    --secondary-color: #455a64;
    --secondary-dark: #1c313a;
    --secondary-light: #718792;
    --text-dark: #263238;
    --text-light: #607d8b;
    --text-lighter: #b0bec5;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --gray-bg: #eceff1;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

strong {
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

.btn-tertiary:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-dark);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

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

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

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

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

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

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

/* Banner Section */
.banner {
    padding: 120px 0 80px;
    background-color: var(--light-bg);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.banner-text {
    flex: 1;
}

.banner-text h1 {
    margin-bottom: 20px;
    color: var(--secondary-dark);
}

.banner-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 500px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

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

.service-card h3 {
    text-align: center;
    margin-bottom: 15px;
}

.service-card p {
    text-align: center;
    color: var(--text-light);
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--white);
}

.team-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.team-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.team-image img {
    max-width: 500px;
    border-radius: var(--border-radius);
}

.team-text {
    flex: 1;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

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

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    text-align: right;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-position {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

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

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    margin-bottom: 20px;
}

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

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

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

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

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p,
.contact-item address {
    color: var(--text-light);
    font-style: normal;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Blog Preview Section */
.blog-preview-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

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

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

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

.blog-post h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
}

.blog-post p {
    padding: 0 20px;
    color: var(--text-light);
}

.blog-post .btn {
    margin: 0 20px 20px;
}

.blog-button {
    text-align: center;
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

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

.footer-logo p {
    color: var(--text-lighter);
    font-weight: 500;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.1rem;
}

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

.footer-column ul li a {
    color: var(--text-lighter);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 15px 0;
    z-index: 9999;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    max-width: 600px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    max-width: 600px;
    margin: 50px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-header h3 {
    margin-bottom: 0;
    color: var(--white);
}

.close-button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

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

.cookie-option label {
    font-weight: 600;
    margin-left: 10px;
}

.cookie-option p {
    margin-left: 30px;
    margin-bottom: 0;
    color: var(--text-light);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-bg);
    text-align: right;
}

/* Thanks Section */
.thanks-section {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.thanks-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.thanks-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

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

.thanks-content h1 {
    margin-bottom: 20px;
}

.thanks-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Policy Section */
.policy-section {
    padding: 120px 0 80px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-date {
    margin-bottom: 30px;
    color: var(--text-light);
}

.policy-section h2 {
    margin-top: 40px;
}

.policy-section ul,
.policy-section ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.policy-section ul li,
.policy-section ol li {
    margin-bottom: 10px;
}

/* Blog Page */
.blog-banner {
    padding: 120px 0 60px;
    background-color: var(--light-bg);
    text-align: center;
}

.blog-banner h1 {
    margin-bottom: 20px;
}

.blog-banner p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.blog-articles {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

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

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

.article-image {
    height: 200px;
    overflow: hidden;
}

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

.article-meta {
    display: flex;
    gap: 15px;
    padding: 15px 20px 0;
}

.article-date,
.article-category {
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-article h2 {
    padding: 10px 20px;
    font-size: 1.3rem;
}

.blog-article h2:after {
    display: none;
}

.blog-article p {
    padding: 0 20px;
    color: var(--text-light);
}

.blog-article .btn {
    margin: 10px 20px 20px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    margin-bottom: 15px;
}

.newsletter-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--text-lighter);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Article Page */
.article-page {
    padding: 120px 0 60px;
}

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

.article-header .article-meta {
    padding: 0;
    margin-bottom: 15px;
}

.article-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info p {
    margin-bottom: 0;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

.article-content li {
    margin-bottom: 10px;
}

.article-img-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.article-icon {
    color: var(--primary-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.tag {
    background-color: var(--light-bg);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-share {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-share p {
    margin-bottom: 0;
    font-weight: 500;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.related-articles {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 15px;
    font-size: 1rem;
    margin-bottom: 0;
}
