/*
Theme Name: IngteresThings V2
Theme URI: https://example.com/ingteresthings
Author: IngteresThings
Author URI: https://example.com
Description: A custom, lightweight WordPress theme designed for cycling enthusiasts and tech reviews. Features an "Active" vs "Deep" aesthetic (#0f172a / #0ea5e9). Optimized for Core Web Vitals and Thai localization.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ingteresthings
Tags: blog, portfolio, one-column, two-columns, right-sidebar, custom-colors
*/

/* 
--------------------------------------------------------------
CSS Variables (Custom Properties) - The Foundation
--------------------------------------------------------------
*/
:root {
    /* Brand Colors */
    --color-navy-deep: #0f172a;
    /* Text, Headings, Footer */
    --color-navy-light: #1e293b;
    /* Dark Mode BG, Cards */
    --color-cyan-electric: #0ea5e9;
    /* Buttons, Links, Accents */
    --color-cyan-hover: #0284c7;
    /* Hover states */
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    /* Light BG */
    --color-slate-200: #e2e8f0;
    /* Borders */
    --color-text-main: #334155;
    /* Body Text */
    --color-text-light: #64748b;
    /* Meta text */

    /* Typography */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Sarabun', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --gap-xl: 4rem;
}

/* Base Reset & Typography */
body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-slate-50);
    line-height: 1.8;
    /* Increased for Thai character legibility */
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy-deep);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--gap-md);
    letter-spacing: 0.01em;
    /* Subtle breathing room for Kanit */
}

a {
    color: var(--color-cyan-electric);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

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

/* 
--------------------------------------------------------------
Components
--------------------------------------------------------------
*/
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-cyan-electric);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-small:hover {
    color: var(--color-white);
}

/* 
   Search Form (Always Visible) 
*/
.site-search {
    display: block;
}

/* 
   Search Form (Pill Design) 
*/
.site-search .search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.site-search .search-field {
    padding: 0.6rem 1.25rem 0.6rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 12px center;
    color: var(--color-white);
    font-size: 0.85rem;
    width: 160px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.site-search .search-field:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-cyan-electric);
    outline: none;
    width: 220px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.site-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.site-search .search-submit {
    display: none;
    /* Hide default submit button, rely on enter key or standard WP behavior */
}

@media (max-width: 768px) {
    .site-search .search-field {
        width: 100%;
    }

    .site-search .search-field:focus {
        width: 100%;
    }
}

/* Header Tweaks */
.site-header {
    background-color: var(--color-navy-deep);
    color: var(--color-white);
    padding: 1rem 0;
}

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

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

.site-logo,
.custom-logo {
    max-height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.site-title a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-slate-200);
}

.main-navigation a:hover {
    color: var(--color-cyan-electric);
}

/* Mobile Menu Logic */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 991px) {
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.25rem;
        gap: 1.25rem;
    }

    .site-branding {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .main-navigation {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
    }

    .main-navigation ul {
        display: flex;
        flex-wrap: wrap;
        /* Wrap links so all are seen at once */
        justify-content: center;
        gap: 0.75rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-navigation li {
        white-space: normal;
        /* Allow some wrapping if needed but gap/center usually handles it */
    }

    .main-navigation a {
        display: inline-block;
        font-size: 0.85rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        padding: 0.4rem 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        color: var(--color-slate-200);
        transition: 0.3s all ease;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        color: var(--color-cyan-electric);
        background: rgba(0, 255, 255, 0.1);
        border-color: rgba(0, 255, 255, 0.3);
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        /* Center the search form container */
        margin: 0;
    }

    .site-search {
        width: 100%;
        max-width: 450px;
        /* Expansive but centered */
    }

    .site-search .search-form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .site-search .search-field {
        width: 100% !important;
        margin: 0 auto;
        text-align: left;
        /* Keep text alignment left inside pill */
    }
}


/* Legacy mobile menu styles removed - replaced with direct navigation list */

/* Breadcrumbs Modernized */
.breadcrumb-wrapper {
    background: var(--color-navy-deep);
    padding: 0.75rem 0;
    margin-top: -1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.breadcrumbs a:hover {
    color: var(--color-cyan-electric);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: var(--color-white);
    font-weight: 600;
}

/* 
--------------------------------------------------------------
Front Page Styles
--------------------------------------------------------------
*/

/* Hero Section */
.hero-section {
    background-color: var(--color-navy-deep);
    color: var(--color-white);
    padding: 4rem 0 6rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-slate-200);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Featured Post Grid */
.section-featured {
    padding: 4rem 0;
}



.section-block {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-slate-200);
    padding-bottom: 0.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
    font-size: 1.75rem;
}

.view-all-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns for desktop */
    gap: 1.5rem;
}

/* Compact Post Card */
.post-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    /* Fill grid cell */
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
    background-color: var(--color-slate-200);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers area without distortion */
    transition: transform 0.3s ease;
}

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

.placeholder-thumb {
    width: 100%;
    height: 100%;
    background-color: var(--color-navy-light);
    opacity: 0.1;
}

.post-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.cat-label {
    background-color: var(--color-cyan-electric);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    /* Tighten up */
    font-weight: 700;
}

.post-title a {
    color: var(--color-navy-deep);
    transition: color 0.1s;
}

.post-title a:hover {
    color: var(--color-cyan-electric);
}

/* Hide excerpt in grid for compactness, or make it very small if needed. 
   User said "too long", so we focus on image + title. */
.post-excerpt {
    display: none;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Load More Button Container */
.pagination-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.btn-load-more {
    background-color: transparent;
    border: 2px solid var(--color-cyan-electric);
    color: var(--color-cyan-electric);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-load-more:hover {
    background-color: var(--color-cyan-electric);
    color: var(--color-white);
}

/* About Section */
.section-about {
    background-color: var(--color-navy-light);
    color: var(--color-white);
    padding: 6rem 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    border-radius: 50%;
    border: 4px solid var(--color-cyan-electric);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-slate-200);
    margin-bottom: 2rem;
}

.text-link {
    color: var(--color-cyan-electric);
    font-weight: 600;
    transition: all 0.2s;
}

.text-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-navy-deep);
    color: var(--color-text-light);
    padding: 5rem 0 0;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .site-title {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand .site-description {
    color: var(--color-cyan-electric);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-cyan-electric);
}

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

.footer-navigation li {
    margin-bottom: 0.75rem;
}

.footer-navigation a {
    color: var(--color-text-light);
    transition: all 0.2s;
}

.footer-navigation a:hover {
    color: var(--color-cyan-electric);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons a {
    color: var(--color-text-light);
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--color-cyan-electric);
    transform: translateY(-2px);
}

.site-footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copyright .sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.footer-legal a {
    color: #64748b;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--color-cyan-electric);
}

@media (max-width: 768px) {
    .site-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for tablet */
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        /* 1 column for mobile */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* 
--------------------------------------------------------------
Single Post & Page Styles
--------------------------------------------------------------
*/
.container-narrow {
    max-width: 800px;
    /* Optimal reading width */
}

/* Entry Header */
.post-details-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-slate-200);
}

.post-details-title {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.post-details-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.post-details-meta-cat {
    margin-bottom: 1rem;
}

/* Entry Tags */
.post-details-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-slate-200);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.post-details-tags .tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.post-details-tags a {
    display: inline-block;
    background-color: var(--color-slate-200);
    color: var(--color-text-main);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.post-details-tags a:hover {
    background-color: var(--color-cyan-electric);
    color: var(--color-white);
    text-decoration: none;
}

/* Entry Content Typography */
.post-details-content {
    font-size: 1.125rem;
    /* Larger font for reading */
    line-height: 1.8;
    margin-bottom: 4rem;
}

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

.post-details-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Comments Section */
.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-slate-200);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.comment-body {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-slate-200);
}

.author-details-name {
    font-weight: bold;
    color: var(--color-navy-deep);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

/* Comment Form */
.comment-form {
    background-color: var(--color-slate-50);
    padding: 2rem;
    border-radius: 8px;
}

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

.comment-form p {
    margin-bottom: 1rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-cyan-electric);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.comment-form .submit {
    /* Styles are handled by .btn class applied in PHP */
    cursor: pointer;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-navy-deep);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 4rem;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--color-cyan-electric);
}

.author-title {
    color: var(--color-white);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--color-slate-200);
    margin: 0 0 1rem 0;
}

.author-links a {
    color: var(--color-cyan-electric);
    font-weight: 600;
}

.author-links a:hover {
    color: var(--color-white);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    border-top: 1px solid var(--color-slate-200);
    padding-top: 2rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.related-card .post-title {
    font-size: 1.1rem;
}

.related-card .post-content {
    padding: 1rem;
}

/* 
--------------------------------------------------------------
About Page: Ultra-Premium Design System
--------------------------------------------------------------
*/

.about-page-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--color-slate-50);
}

/* Background Decorations */
.about-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.blob-1 {
    top: -100px;
    right: -200px;
    background-color: rgba(14, 165, 233, 0.15);
}

.blob-2 {
    bottom: 10%;
    left: -200px;
    background-color: rgba(15, 23, 42, 0.05);
}

/* Hero Modern */
.about-hero {
    position: relative;
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, var(--color-navy-deep) 0%, #1e293b 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero-container-alt {
    position: relative;
    z-index: 2;
}

.about-hero-inner {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
        border-color: var(--color-cyan-electric);
    }
}

/* rotate animation removed as we now use pulse-ring */

.about-hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--color-navy-light);
}

.hero-floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
}

.ice-icon {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.seo-icon {
    bottom: 15%;
    left: -20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.about-badge-modern {
    display: inline-block;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-cyan-electric);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.about-title-modern {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
}

.about-title-modern span {
    font-weight: 400;
    opacity: 0.8;
    font-size: 2.5rem;
    color: var(--color-slate-200);
}

.about-subtitle-modern {
    font-size: 1.5rem;
    color: var(--color-white);
    border-left: 3px solid var(--color-cyan-electric);
    padding-left: 1.5rem;
}

/* Simple Scroll Indicator */
.scroll-simple {
    position: relative;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    color: var(--color-cyan-electric);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 1;
}

.simple-arrow {
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--color-cyan-electric);
    border-right: 2px solid var(--color-cyan-electric);
    transform: rotate(45deg);
    animation: simple_bounce 2s infinite;
}

@keyframes simple_bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(8px) rotate(45deg);
    }

    60% {
        transform: translateY(4px) rotate(45deg);
    }
}

@media (max-width: 768px) {
    .scroll-simple {
        margin-top: 4rem;
    }
}

/* Story Section */
.about-story-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: flex-start;
}

.section-tag {
    color: var(--color-cyan-electric);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.story-heading {
    font-size: 2.75rem;
    color: var(--color-navy-deep);
}

.lead-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-navy-deep);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.story-content-right p {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

/* Pillars Modern */
.about-pillars-modern {
    padding: 6rem 0;
    background: #f1f5f9;
}

.pill-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title-gradient {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--color-navy-deep), var(--color-cyan-electric));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.pillars-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.modern-card {
    position: relative;
    background: var(--color-white);
    border-radius: 32px;
    padding: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
}

.card-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 12rem;
    opacity: 0.03;
    transform: rotate(-15deg);
}

.card-icon-main {
    width: 80px;
    height: 80px;
    background: var(--color-slate-50);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.modern-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.card-tags span {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-slate-50);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--color-text-light);
}

/* Philosophy Section */
.philosophy-section {
    padding: 6rem 0;
}

.philosophy-box-modern {
    background: var(--color-navy-deep);
    border-radius: 48px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.philosophy-box-modern::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-cyan-electric);
    filter: blur(150px);
    opacity: 0.15;
    top: -100px;
    left: -100px;
}

.phi-label {
    text-transform: uppercase;
    color: var(--color-cyan-electric);
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.philosophy-content h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.philosophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.phi-circle {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-align: center;
}

.phi-circle span {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 700;
}

.phi-plus {
    font-size: 2rem;
    opacity: 0.5;
}

/* CTA Glassmorphism */
.about-cta-modern {
    padding: 6rem 0 10rem;
    position: relative;
}

.cta-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4rem;
    border-radius: 48px;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
}

.cta-emoji {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.cta-links-modern {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.cta-btn {
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-linked {
    background: #0077b5;
    color: white;
}

.btn-form {
    background: var(--color-navy-deep);
    color: white;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .about-subtitle-modern {
        border-left: 0;
        padding-left: 0;
    }

    .story-grid,
    .philosophy-box-modern {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .philosophy-visual {
        order: -1;
    }

    .about-title-modern {
        font-size: 2.25rem;
        letter-spacing: -0.02em;
    }
}

@media (max-width: 768px) {
    .pillars-modern-grid {
        grid-template-columns: 1fr;
    }

    .modern-card {
        padding: 2.5rem;
    }

    .about-hero-image img {
        width: 240px;
        height: 240px;
    }

    .cta-links-modern {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .cta-btn {
        padding: 0.85rem 1.5rem;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        font-size: 0.95rem;
    }

    .cta-card-glass {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .cta-emoji {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .about-page-wrapper section {
        padding: 4rem 0;
    }

    .philosophy-box-modern {
        padding: 3rem 2rem;
        border-radius: 24px;
        gap: 3rem;
    }

    .philosophy-content h2 {
        font-size: 2.25rem;
    }

    .philosophy-visual {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .phi-circle {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .phi-circle span {
        font-size: 0.7rem;
    }
}

/* 
--------------------------------------------------------------
Contact Page Styling
--------------------------------------------------------------
*/

.contact-page-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--color-slate-50);
    padding-bottom: 8rem;
}

.contact-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.contact-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-cyan-electric);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    letter-spacing: 0.05em;
}

.contact-title {
    font-size: 3.5rem;
    color: var(--color-navy-deep);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-form-section {
    position: relative;
    z-index: 1;
}

.container-narrow-alt {
    max-width: 900px;
}

.contact-form-glass {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-slate-200);
}

.form-instructions {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-slate-100);
    font-size: 1.15rem;
    color: var(--color-navy-deep);
    font-weight: 600;
}

.google-form-container {
    overflow: hidden;
    border-radius: 20px;
    background: #fdfdfd;
}

.google-form-container iframe {
    width: 100%;
}

.contact-alternative {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.contact-alternative a {
    color: var(--color-cyan-electric);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2.25rem;
    }

    .contact-form-glass {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .contact-hero {
        padding-top: 5rem;
    }
}

/* 404 & Search Finishers */
.error-page-wrapper {
    background: var(--color-slate-50);
    padding: 8rem 0;
}

.error-visual {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: floating 3s ease-in-out infinite;
}

.big-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-cyan-electric) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-desc {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.search-wrap-404 .search-field {
    border: 2px solid var(--color-slate-200);
    color: var(--color-navy-deep);
    padding: 1.25rem 2rem;
    border-radius: 100px;
    width: 100%;
}

.error-actions {
    margin-top: 4rem;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pagination Styling */
.pagination {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    color: var(--color-navy-deep);
    font-weight: 700;
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-cyan-electric);
    color: var(--color-white);
    border-color: var(--color-cyan-electric);
}

.pagination .next,
.pagination .prev {
    width: auto;
    padding: 0 1.5rem;
}

/* Author Archive Styles */
.author-avatar-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.author-avatar-wrapper img {
    border-radius: 50%;
    border: 4px solid var(--color-navy-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.author-avatar-wrapper img:hover {
    transform: scale(1.1) rotate(2deg);
}

.archive-description {
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--color-slate-300);
    line-height: 1.6;
}

.page-header {
    text-align: center;
    padding: 6rem 0;
    /* Deep banner padding */
    background: var(--color-navy-deep);
    color: var(--color-white);
    margin-top: -1px;
    /* Seamless from breadcrumbs */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
    /* Clear separation from content */
}

.page-title {
    font-size: 3.5rem;
    margin: 0;
    color: var(--color-white) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Table of Contents - Ultra-Contrast Redesign */
.toc-container {
    background: #0b1120;
    /* Deepest navy for highest contrast */
    border: 2px solid rgba(14, 165, 233, 0.3);
    /* Clear brand border */
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.toc-header span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cyan-electric);
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.toc-toggle {
    background: var(--color-cyan-electric);
    border: none;
    color: var(--color-navy-deep);
    padding: 8px 18px;
    border-radius: 50px;
    /* Pill style */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.toc-toggle:hover {
    transform: scale(1.05);
    background: var(--color-white);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Generous spacing */
}

.toc-list.hidden {
    display: none;
}

.toc-item {
    position: relative;
    line-height: 1.6;
}

.toc-item a {
    color: #FFFFFF !important;
    /* Force Pure White for maximum contrast */
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
    font-weight: 500;
}

.toc-item a:hover {
    color: var(--color-cyan-electric) !important;
    transform: translateX(8px);
}

/* Clear Indentation Guides */
.toc-level-1 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.toc-level-2 {
    font-weight: 600;
}

.toc-level-3,
.toc-level-4,
.toc-level-5,
.toc-level-6 {
    padding-left: 2rem;
    border-left: 2px solid rgba(14, 165, 233, 0.2);
    margin-left: 0.5rem;
}

/* Bullet markers for deep levels */
.toc-item[class*="toc-level-3"]::after {
    content: '•';
    position: absolute;
    left: 0.75rem;
    color: var(--color-cyan-electric);
    font-weight: bold;
}

@media (max-width: 768px) {
    .toc-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .toc-item a {
        font-size: 1rem;
    }
}

.recent-post-title a:hover {
    color: var(--color-cyan-electric);
}

@media (max-width: 991px) {
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}