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

:root {
    --primary-color: #F97316;
    --text-color: #000000;
    --text-secondary: #666666;
    --background-color: #f7faf8;
    --surface-color: #f1f6f3;
    --border-color: #e2e8f0;
    --border-radius: 0px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
    
    /* Muted color theme for homepage */
    --muted-primary: #F97316;
    --muted-text: #000000;
    --muted-secondary: #666666;
    --muted-background: #f7faf8;
    --muted-surface: #f1f6f3;
    --muted-border: #e5e5e5;
    --muted-accent: #F97316;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

/* Dynamic Typography for Homepage */
.homepage {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--muted-background);
    color: var(--muted-text);
}

.homepage .masthead {
    background: var(--muted-background);
    padding: 64px 0;
}

.masthead-container {
    width: 80vw;
    margin: 0 auto;
    max-width: 1200px;
}

.masthead-content {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    aspect-ratio: 2 / 0.85;
    /* min-height: 500px; */
    display: flex;
    align-items: flex-end;
    padding: 16px 48px 48px 48px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
    transition: background-size 0.3s ease;
}

.masthead-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform 0.3s ease;
    background-size: cover;
    background-repeat: no-repeat;
}

.masthead-link:hover .masthead-image {
    transform: scale(1.09);
}

.masthead-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.masthead-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: left;
}

.masthead-label {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 2px;
    transform: skew(-15deg);
    position: relative;
}

.masthead-title {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.masthead-link {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.masthead-title {
    color: #ffffff;
    transition: var(--transition);
}

.masthead-link:hover .masthead-title {
    color: var(--primary-color);
}

.masthead-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #4a5d5a;
    line-height: 1.4;
    margin-bottom: 32px;
    max-width: 100%;
}

.masthead-meta {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.masthead-category {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 2px;
    transform: skew(-15deg);
    display: inline-block;
    position: relative;
}

.masthead-read-more {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.masthead-read-more:hover {
    background: var(--muted-text);
    transform: translateY(-2px);
}

.masthead-author,
.masthead-date {
    font-weight: 400;
}

.homepage .featured-posts {
    padding: 64px 0;
    background: var(--background-color);
}

.featured-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.featured-post {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 48px;
}

.featured-post:not(:last-of-type) {
    border-bottom: 1px solid var(--muted-border);
}

.post-text {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.post-image {
    flex: 1;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.post-image img,
.placeholder-image {
    display: block;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0px;
    transition: var(--transition);
    transform: scale(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

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

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.1) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: var(--transition);
    pointer-events: none;
}

.post-image:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.2) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.placeholder-image {
    background: var(--muted-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-secondary);
    font-size: 0.875rem;
    position: relative;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 50%, transparent 100%);
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
    pointer-events: none;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--muted-secondary);
}

.post-category {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 2px 10px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: skew(-15deg);
    display: inline-block;
    position: relative;
}

.post-title {
    font-family: 'Titillium Web', Georgia, serif;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
}

.post-title a {
    color: var(--muted-text);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--muted-accent);
}

.post-author {
    font-size: 0.875rem;
    color: #4a5d5a;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5d5a;
    margin: 0;
}

.featured-actions {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 48px;
}

.view-all-posts {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 0px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-posts:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 0 16px;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(247, 250, 248, 0.8);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    width: 100%;
    max-width: none;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: hue-rotate(-90deg) saturate(1.4) brightness(1.1);
}

.logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.25rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 4px 0;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--primary-color);
}

.search-container {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--background-color);
    padding: 16px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-container.active {
    display: block;
}

#search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    font-size: 1rem;
}

#search-results {
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Hero Section */
.hero {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 0px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: var(--background-color);
    color: var(--text-color);
}

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

.btn-primary:hover {
    background: #ea580c;
    border-color: #ea580c;
}

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

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

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

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

/* Sections */
.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

.featured-content,
.latest-posts,
.racing-series {
    padding: 5rem 0;
}

.featured-content {
    background: var(--surface-color);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-article {
    transition: var(--transition);
}

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

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.category {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0px;
    font-weight: 500;
    font-size: 0.8rem;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--background-color);
    border-radius: 0px;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--primary-color);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.post-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

/* Racing Series */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.series-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 0px;
    text-align: center;
    transition: var(--transition);
}

.series-card:hover {
    border-color: var(--primary-color);
}

.series-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Single Post */
.single-post {
    padding: 2rem 0;
}

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

.post-header h1 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.post-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.post-featured-image {
    width: 100%;
    aspect-ratio: 2/1;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);

}

.post-featured-image img {
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
    transform: scale(1);
}

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

.post-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.1) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 3%, 100% 100%, 3% 100%, 0 95%);
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.post-featured-image:hover::before {
    display: none;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.2) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 3%, 100% 100%, 3% 100%, 0 95%);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.post-content h3 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    margin-bottom: 3rem;
}

.post-tags h4 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.post-tag {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: skew(-15deg);
    display: inline-block;
    position: relative;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.post-share h4 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0px;
    transition: var(--transition);
    background: transparent;
    border: 2px solid;
}

.share-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.linkedin {
    border-color: #0077b5;
    color: #0077b5;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0 8rem 0;
    background: var(--surface-color);
}

.related-posts h2 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

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

.related-post {
    background: var(--background-color);
    border-radius: 0px;
    overflow: hidden;
    transition: var(--transition);
}

.related-post:hover {
    border-color: var(--primary-color);
}

.related-image {
    position: relative;
    overflow: hidden;
    
}

.related-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 0px;
    transition: var(--transition);
    transform: scale(1);
    margin-bottom: 8px;
    aspect-ratio: 3/2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

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

.related-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.1) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    pointer-events: none;
    z-index: 1;
}

.related-image:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.2) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.related-content {
    padding: 1.5rem;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.related-content h3 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.related-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

.related-content p {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    padding: 16px 8px;
    transition: var(--transition);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 18px;
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Social Media Brand Colors on Hover */
.social-link:hover .fa-twitter {
    color: #1DA1F2;
}

.social-link:hover .fa-instagram {
    color: #E4405F;
}

.social-link:hover .fa-youtube {
    color: #FF0000;
}

.social-link:hover .fa-linkedin {
    color: #0077B5;
}

.social-link:hover .fa-envelope {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 0 0 32px;
    position: relative;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-top: -24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.footer-logo-image {
    margin-top: -24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--background-color);
    padding: 2px;
    filter: hue-rotate(-90deg) saturate(1.4) brightness(1.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 16px;
}

.footer-logo a {
    text-decoration: none;
    color: var(--text-color);
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: var(--primary-color);
}


.footer-bottom {
    text-align: center;
    padding-top: 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
   .featured-container {
        max-width: 680px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-grid,
    .posts-grid,
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
     
    .share-buttons {
        flex-direction: column;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    /* Homepage responsive */
    .homepage .masthead {
        padding: 0 0 48px 0;
    }
    
    .masthead-container {
        width: 100%;
    }
    
    .masthead-content {
        aspect-ratio: 6 / 4;
        padding: 32px;
    }
    

    .featured-container {
        max-width: 600px;
        padding: 0 16px;
    }
    
    .featured-post {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
    
    .post-image {
        order: -1;
        min-width: auto;
    }
    
    .post-image img,
    .placeholder-image {

        aspect-ratio: 3/2;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* Hide social sidebar on mobile */
    .social-sidebar {
        display: none;
    }
}

@media (max-width: 568px) {
    .homepage .masthead {
        padding: 0 0 24px 0;
    }
    
    .masthead-content {
        aspect-ratio: 1 / 1;
        padding: 16px 24px 32px 24px;
    }
}
/* Posts List Page */
.posts-list-section {
    padding: 96px 0 32px 0;
    background: var(--background-color);
}

.posts-list-section .page-header {
    text-align: center;
    margin-bottom: 64px;
}

.posts-list-section .section-title {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.posts-list-section .page-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.posts-list-section .posts-list .featured-post:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}

.posts-list-section .no-posts {
    text-align: center;
    padding: 4rem 0;
}

.posts-list-section .no-posts p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    list-style: none;
    padding: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-secondary);
    background: var(--surface-color);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    background: var(--surface-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Responsive adjustments for posts list */
@media (max-width: 768px) {
    .posts-list-section {
        padding: 96px 0 32px 0;
    }
    
    .posts-list-section .page-header {
        margin-bottom: 48px;
    }
    
    .posts-list-section .section-title {
        font-size: 1.875rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 3rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Contact Page */
.contact-section {
    padding: 96px 0 96px 0;
    background: var(--background-color);
}

.contact-section .page-header {
    text-align: center;
    margin-bottom: 64px;
}

.contact-section .section-title {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-section .page-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-subtitle {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-form-description,
.contact-info-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Form Styles */
.contact-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 0px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    font-size: 1rem;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
}

/* Form Validation Styles */
.validation-error {
    color: #991b1b;
    font-size: 0.75rem;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.4;
}

.input-error {
    border-color: #991b1b !important;
    box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.1) !important;
}

.input-success {
    border-color: #38a169 !important;
    box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.1) !important;
}

/* Social Media Cards */
.social-media-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.social-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.social-card:hover .social-icon {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.social-content h3 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.social-content p {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.social-handle {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Brand Color Hovers */
.social-card.twitter:hover .social-icon {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.social-card.instagram:hover .social-icon {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #e6683c;
}

.social-card.youtube:hover .social-icon {
    background: #FF0000;
    border-color: #FF0000;
}

.social-card.linkedin:hover .social-icon {
    background: #0077B5;
    border-color: #0077B5;
}

/* Direct Contact Section */
.contact-direct {
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0px;
}

.contact-direct-title {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-email i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.contact-email a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-email a:hover {
    color: var(--primary-color);
}

.contact-response-time {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-section {
        padding: 96px 0 96px 0;
    }
    
    .contact-section .page-header {
        margin-bottom: 48px;
    }
    
    .contact-section .section-title {
        font-size: 1.875rem;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-subtitle {
        font-size: 1.5rem;
    }
}

/* About Page */
.about-section {
    padding: 96px 0 72px 0;
    background: var(--background-color);
}

.about-section .page-header {
    text-align: center;
    margin-bottom: 64px;
}

.about-section .section-title {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-section .page-description {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text h1 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1.5rem;
}

.about-text h2 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1.5rem;
}

.about-text h3 {
    font-family: 'Titillium Web', Georgia, 'Times New Roman', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text ul,
.about-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-text strong {
    font-weight: 600;
    color: var(--text-color);
}

.about-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-section {
        padding: 96px 0 72px 0;
    }
    
    .about-section .page-header {
        margin-bottom: 48px;
    }
    
    .about-section .section-title {
        font-size: 1.875rem;
    }
    
    .about-content-wrapper {
        max-width: 100%;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-text h1 {
        font-size: 1.75rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
}