/* 
 * Clear Chain Desk - Main Stylesheet
 * Educational platform focused on decentralized data environments and distributed protocols
 */

/* ---------- Base Styles & Reset ---------- */
:root {
    /* Color Palette */
    --primary-color: #0074d9; /* Blue */
    --secondary-color: #20c997; /* Turquoise */
    --accent-color: #36b2d4; /* Light blue */
    --dark-color: #343a40; /* Charcoal gray */
    --light-color: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-mono: 'Fira Mono', 'Courier New', Courier, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-xxl: 3rem;    /* 48px */
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container width */
    --container-max-width: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin: 0 0 var(--spacing-md) var(--spacing-xl);
}

ul ul, ol ol {
    margin-bottom: 0;
}

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

table {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
}

th, td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    text-align: left;
}

th {
    background-color: var(--gray-100);
    font-weight: 600;
}

blockquote {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--primary-color);
    background-color: var(--gray-100);
    font-style: italic;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--gray-200);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
}

pre {
    font-family: var(--font-mono);
    background-color: var(--gray-900);
    color: var(--gray-200);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    border: none;
}

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

.primary-btn:hover {
    background-color: #005bb5;
    color: white;
}

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

.secondary-btn:hover {
    background-color: #16a57a;
    color: white;
}

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

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

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

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

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-md);
}

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

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav li {
    margin-left: var(--spacing-lg);
}

nav a {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
}

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

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ---------- Hero Section ---------- */
.hero {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-700);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------- Features Section ---------- */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

/* ---------- Timeline Section ---------- */
.timeline {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
}

.timeline h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--gray-300);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.timeline-date {
    position: absolute;
    width: 120px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: var(--spacing-xs) 0;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

/* ---------- Recent Posts Section ---------- */
.recent-posts {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.post-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.post-card {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.post-content {
    padding: var(--spacing-lg);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.post-content p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(4px);
}

.view-all {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a,
.footer-social a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-social a:hover {
    color: white;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: var(--spacing-xs);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-800);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: var(--gray-400);
}

.footer-legal a:hover {
    color: white;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gray-900);
    color: white;
    padding: var(--spacing-md);
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: var(--spacing-md);
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

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

.cookie-btn.configure {
    background-color: var(--gray-700);
    color: white;
}

.cookie-btn.reject {
    background-color: transparent;
    border: 1px solid var(--gray-500);
    color: var(--gray-300);
}

.cookie-btn.accept:hover {
    background-color: #005bb5;
}

.cookie-btn.configure:hover {
    background-color: var(--gray-600);
}

.cookie-btn.reject:hover {
    background-color: var(--gray-800);
}

.cookie-policy-link {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: underline;
}

/* ---------- Blog Page ---------- */
.page-header {
    background-color: var(--gray-100);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-header h2 {
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-600);
}

.blog-content {
    padding: var(--spacing-xl) 0;
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-group span {
    color: var(--gray-700);
}

.filter-btn {
    background-color: var(--gray-200);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

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

.filter-btn:hover:not(.active) {
    background-color: var(--gray-300);
}

.search-box {
    display: flex;
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-600);
    display: flex;
    align-items: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

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

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

.blog-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.blog-card-content p {
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    margin-top: auto;
}

.blog-card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.blog-card-link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.blog-card-link:hover::after {
    transform: translateX(4px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-xxl);
    gap: var(--spacing-sm);
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.page-number.current {
    background-color: var(--primary-color);
    color: white;
}

.page-number:hover:not(.current) {
    background-color: var(--gray-300);
}

.next-page {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: var(--gray-200);
    transition: all var(--transition-normal);
    margin-left: var(--spacing-sm);
    color: var(--gray-700);
}

.next-page svg {
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.next-page:hover {
    background-color: var(--primary-color);
    color: white;
}

.next-page:hover svg {
    transform: translateX(4px);
}

/* ---------- Newsletter Section ---------- */
.newsletter {
    background-color: var(--primary-color);
    padding: var(--spacing-xxl) 0;
    color: white;
}

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

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.newsletter-content p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
}

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

.newsletter-form .btn:hover {
    background-color: var(--gray-200);
}

/* ---------- About Page ---------- */
.about-mission {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--spacing-md);
}

.about-content p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.about-values {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
}

.about-values h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--gray-700);
}

.team-section {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.team-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

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

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.team-card p:last-of-type {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.partners-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
}

.partners-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* ---------- Contact Page ---------- */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    padding: var(--spacing-lg);
    background-color: var(--gray-100);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    color: var(--gray-700);
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
}

.contact-form-container h3 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

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

.contact-form textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.875rem;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 200px;
}

.map-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
}

.map-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin-bottom: var(--spacing-md);
}

.thank-you-message h3 {
    margin-bottom: var(--spacing-md);
}

.thank-you-message p {
    margin-bottom: var(--spacing-lg);
}

.thank-you-message .btn {
    min-width: 120px;
}

/* ---------- Blog Post ---------- */
.post-content {
    padding: var(--spacing-xl) 0;
}

.post-header {
    margin-bottom: var(--spacing-xl);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.post-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: var(--gray-800);
}

.post-reading-time {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.post-body {
    max-width: 800px;
    margin: 0 auto;
}

.post-body h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.post-body h4 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.post-body h5 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
}

.post-body p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.post-body ul, .post-body ol {
    margin-bottom: var(--spacing-md);
}

.post-body li {
    margin-bottom: var(--spacing-xs);
}

.post-footer {
    margin-top: var(--spacing-xxl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-300);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    background-color: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-normal);
}

.tag:hover {
    background-color: var(--gray-300);
}

.post-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.post-share span {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

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

.related-posts {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-100);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

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

.related-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.related-card h4 {
    padding: var(--spacing-md) var(--spacing-md) 0;
    font-size: 1.125rem;
}

.related-card .read-more {
    display: inline-block;
    margin: 0 var(--spacing-md) var(--spacing-md);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        margin-top: var(--spacing-lg);
    }

    .timeline-container::after {
        left: 40px;
    }

    .timeline-date {
        left: 40px;
        transform: none;
    }

    .timeline-item .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 1;
    }

    .about-image {
        order: 0;
        margin-bottom: var(--spacing-lg);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: var(--spacing-md);
    }

    nav ul {
        justify-content: center;
    }

    nav li {
        margin: 0 var(--spacing-sm);
    }

    .feature-cards,
    .post-cards,
    .blog-grid,
    .team-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: center;
        margin-bottom: var(--spacing-md);
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .post-footer {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .post-share {
        justify-content: center;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}
