/* RESET & BASE STYLES
-------------------------------------------- */
:root {
    --primary-color: #2c4d8c;
    --primary-dark: #1a3366;
    --primary-light: #4a6eab;
    --secondary-color: #e68a00;
    --secondary-dark: #cc7a00;
    --secondary-light: #ff9e1a;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #f5f5f5;
    --gray-border: #dddddd;
    --text-color: #444444;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --font-primary: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    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, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

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

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

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

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

.section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* HEADER 
-------------------------------------------- */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--gray-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--gray-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* HERO SECTION 
-------------------------------------------- */
.hero {
    padding: 4rem 0;
    background-color: var(--gray-light);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

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

/* ABOUT SECTION 
-------------------------------------------- */
.about {
    padding: 5rem 0;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem;
    min-width: 150px;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* SERVICES SECTION 
-------------------------------------------- */
.services {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

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

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

.service-card:hover {
    transform: translateY(-5px);
}

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

.service-card p {
    margin-bottom: 0;
}

/* TESTIMONIALS SECTION 
-------------------------------------------- */
.testimonials {
    padding: 5rem 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
}

.testimonial-content:before {
    content: """;
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    line-height: 1;
}

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

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

.testimonial-author p {
    font-style: normal;
    color: var(--gray-medium);
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

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

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

/* BLOG SECTION 
-------------------------------------------- */
.blog-section {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.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);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.blog-meta .date {
    margin-right: 1rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.blog-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-footer {
    text-align: center;
    margin-top: 2rem;
}

/* CONTACT SECTION 
-------------------------------------------- */
.contact {
    padding: 5rem 0;
}

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

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.social-icons {
    display: flex;
}

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

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

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-group.inline {
    display: flex;
}

.form-group.inline input {
    flex: 1;
    margin-right: 1rem;
}

/* FOOTER 
-------------------------------------------- */
footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

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

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-column {
    margin-bottom: 2rem;
    min-width: 150px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

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

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

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

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom .btn-text {
    color: var(--gray-light);
}

.footer-bottom .btn-text:hover {
    color: var(--white);
}

/* COOKIE NOTICE 
-------------------------------------------- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-medium);
    cursor: pointer;
}

.close:hover {
    color: var(--gray-dark);
}

.cookie-options {
    margin: 2rem 0;
}

.cookie-option {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.cookie-option p {
    margin: 0.5rem 0 0 1.7rem;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* PAGE BANNER 
-------------------------------------------- */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.banner-content h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ARTICLE STYLES 
-------------------------------------------- */
.article-content {
    padding: 3rem 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-medium);
}

.article-meta .category {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.article-author {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
}

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

.article-author .author-info p:first-child {
    font-weight: 600;
}

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

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    margin-bottom: 3rem;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-body ul, 
.article-body ol {
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-cta {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
}

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

.article-cta .btn:hover {
    background-color: var(--gray-light);
}

.article-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
}

.share-buttons {
    margin-bottom: 2rem;
}

.share-buttons p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-buttons {
    display: flex;
}

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

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

.related-articles h3 {
    margin-bottom: 1.5rem;
}

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

.related-item {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.related-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.related-item h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.related-item:hover h4 {
    color: var(--white);
}

/* THANK YOU PAGE 
-------------------------------------------- */
.thank-you {
    padding: 5rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
}

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

.thank-you-content h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.thank-you-content .btn {
    margin-top: 1rem;
}

/* LEGAL PAGES 
-------------------------------------------- */
.legal-content {
    padding: 3rem 0;
}

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

.legal-body h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-body p, 
.legal-body ul,
.legal-body ol {
    margin-bottom: 1.5rem;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.legal-body th, 
.legal-body td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}

.legal-body th {
    background-color: var(--gray-light);
    font-weight: 600;
}

.cookie-management {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.cookie-management h3 {
    margin-bottom: 1rem;
}

.cookie-management p {
    margin-bottom: 1.5rem;
}

/* SUBSCRIBE SECTION 
-------------------------------------------- */
.subscribe {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.subscribe-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.subscribe-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
    margin-bottom: 2rem;
}

.subscribe-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

.subscribe-form .form-group.inline {
    margin-bottom: 1rem;
}

.subscribe-form input {
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.subscribe-form .btn {
    background-color: var(--secondary-color);
    margin-left: -5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

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

.subscribe-form .form-check label {
    color: var(--white);
}

.subscribe-form .form-check a {
    color: var(--white);
    text-decoration: underline;
}

.subscribe-form .form-check a:hover {
    color: var(--gray-light);
}

/* ANIMATIONS 
-------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
