/*
Theme Name: Canton Coders
Theme URI: https://cantoncoders.org
Author: Canton Coders
Author URI: https://cantoncoders.org
Description: A clean, modern WordPress theme for the Canton Coders community — we're all about the individual developer, not our employers. Features a beautiful landing page with hero section, about area, upcoming events, and code of conduct. Built with the Canton Coders blue color palette.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cantoncoders
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* primary brand blue from the 2022 logo/theme */
    --cc-primary: #4b64ff;
    --cc-primary-dark: #3a50d6;
    --cc-secondary: #ffcd27;
    --cc-secondary-dark: #e6b823;

    /* Dark mode core colors */
    --cc-bg: #0b0f19; /* Deep rich navy/slate */
    --cc-surface: #161b22; /* Slightly lighter for cards/sections */
    --cc-surface-hover: #21262d;
    
    --cc-text: #f0f6fc; /* Crisp off-white for readability */
    --cc-text-light: #8b949e; /* Muted gray for secondary text */
    --cc-text-muted: #6e7681;

    --cc-border: rgba(255, 255, 255, 0.1);
    --cc-border-hover: rgba(255, 255, 255, 0.2);

    --cc-white: #ffffff;
    --cc-dark: #000000;

    --cc-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --cc-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --cc-radius: 12px;
    --cc-radius-lg: 24px;
    --cc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cc-font-heading: 'Plus Jakarta Sans', var(--cc-font-body);
    --cc-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --cc-container: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cc-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--cc-text);
    background-color: var(--cc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cc-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cc-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.cc-container {
    width: 100%;
    max-width: var(--cc-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cc-section {
    padding: 6rem 0;
}

.cc-section--dark {
    background-color: var(--cc-bg);
    color: var(--cc-text);
}

.cc-section--dark h2,
.cc-section--dark h3,
.cc-section--dark h4 {
    color: var(--cc-text);
}

.cc-section--light {
    background-color: var(--cc-surface);
}

.cc-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.cc-section__header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.cc-section__header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--cc-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.cc-section__header p {
    font-size: 1.15rem;
    color: var(--cc-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.cc-section--dark .cc-section__header p {
    color: rgba(255, 255, 255, 0.7);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--cc-font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--cc-transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.cc-btn--primary:hover {
    transform: translateY(-2px);
    color: var(--cc-white);
}

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

.cc-btn--outline:hover {
    background: rgba(75, 100, 255, 0.1);
    color: var(--cc-primary);
    border-color: var(--cc-primary);
}

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

.cc-btn--secondary:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
    transform: translateY(-2px);
    background: var(--cc-surface-hover);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.cc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--cc-transition);
    padding: 1rem 0;
}

.cc-header--scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--cc-border);
}

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

.cc-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cc-header__brand img {
    height: 40px;
    width: auto;
}

.cc-header__brand-text {
    font-family: var(--cc-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cc-white);
    letter-spacing: -0.5px;
}

.cc-header__brand-text span {
    color: var(--cc-primary);
}

/* Navigation */
.cc-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cc-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--cc-transition);
}

.cc-nav a:hover,
.cc-nav a.current-menu-item > a {
    color: var(--cc-white);
    background: rgba(255, 255, 255, 0.1);
}

.cc-nav .cc-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

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

.cc-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cc-white);
    border-radius: 2px;
    transition: all var(--cc-transition);
}

.cc-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cc-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.cc-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.cc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cc-bg);
    overflow: hidden;
}

.cc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.cc-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.cc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(75, 100, 255, 0.1);
    border: 1px solid rgba(75, 100, 255, 0.25);
    border-radius: 50px;
    color: var(--cc-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cc-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cc-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cc-hero__title {
    color: var(--cc-white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.cc-hero__title span {
    color: var(--cc-white);
    font-weight: bold;
}

.cc-hero__subtitle {
    font-size: 1.2rem;
    color: var(--cc-text-light);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
}

.cc-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cc-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.cc-hero__scroll-line {
    width: 1px;
    height: 30px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.cc-about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cc-about__content h2 {
    margin-bottom: 1.5rem;
}

.cc-about__content p {
    color: var(--cc-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.cc-about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.cc-about__stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    transition: all var(--cc-transition);
}

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

.cc-about__stat-number {
    font-family: var(--cc-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--cc-primary);
    display: block;
}

.cc-about__stat-label {
    font-size: 0.85rem;
    color: var(--cc-text-light);
    font-weight: 500;
}

/* ============================================
   FEATURES / WHAT WE DO
   ============================================ */
.cc-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cc-feature {
    padding: 2.5rem 2rem;
    background: var(--cc-surface);
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow);
    transition: all var(--cc-transition);
    border: 1px solid var(--cc-border);
}

.cc-feature:hover {
    transform: translateY(-4px);
    border-color: var(--cc-primary);
}

.cc-feature__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 100, 255, 0.1); /* using --cc-primary with opacity */
    border: 1px solid rgba(75, 100, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cc-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.cc-feature p {
    color: var(--cc-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.cc-events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.cc-event {
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    padding: 2rem;
    transition: all var(--cc-transition);
    box-shadow: var(--cc-shadow);
}

.cc-event:hover {
    background: var(--cc-surface-hover);
    border-color: var(--cc-primary);
    transform: translateY(-4px);
}

.cc-event__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--cc-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cc-event h3 {
    color: var(--cc-white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.cc-event p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.cc-event__link {
    color: var(--cc-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--cc-transition);
}

.cc-event__link:hover {
    gap: 0.75rem;
}

/* ============================================
   CTA / JOIN SECTION
   ============================================ */
.cc-cta {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
}

.cc-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cc-cta h2 {
    color: var(--cc-white);
    margin-bottom: 1.25rem;
}

.cc-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.cc-footer {
    background: var(--cc-bg);
    border-top: 1px solid var(--cc-border);
}

.cc-footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.cc-footer__brand-text {
    font-family: var(--cc-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cc-white);
    margin-bottom: 1rem;
}

.cc-footer__brand-text span {
    color: var(--cc-primary);
}

.cc-footer__about p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cc-footer__heading {
    color: var(--cc-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.cc-footer__links li {
    margin-bottom: 0.75rem;
}

.cc-footer__links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: color var(--cc-transition);
}

.cc-footer__links a:hover {
    color: var(--cc-primary);
}

.cc-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cc-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all var(--cc-transition);
}

.cc-footer__social a:hover {
    background: var(--cc-primary);
    color: var(--cc-white);
}

.cc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cc-footer__copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.cc-footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.cc-footer__bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

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

/* ============================================
   PAGE CONTENT (inner pages)
   ============================================ */
.cc-page-header {
    background: var(--cc-bg);
    padding: 8rem 0 4rem;
    text-align: center;
}

.cc-page-header h1 {
    color: var(--cc-white);
    margin-bottom: 0.5rem;
}

.cc-page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.cc-content-area {
    padding: 4rem 0;
}

.cc-content-area .cc-container {
    max-width: 800px;
}

.cc-content-area article {
    margin-bottom: 3rem;
}

.cc-content-area article h2 a {
    color: var(--cc-text);
    transition: color var(--cc-transition);
}

.cc-content-area article h2 a:hover {
    color: var(--cc-primary);
}

.cc-content-area .entry-meta {
    font-size: 0.9rem;
    color: var(--cc-text-light);
    margin-bottom: 1rem;
}

.cc-content-area .entry-content p {
    color: var(--cc-text);
    line-height: 1.8;
}

.cc-content-area .entry-content a {
    color: var(--cc-primary);
    text-decoration: underline;
}

.cc-content-area .entry-content h2,
.cc-content-area .entry-content h3,
.cc-content-area .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cc-content-area .entry-content ul,
.cc-content-area .entry-content ol {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.cc-content-area .entry-content ol {
    list-style: decimal;
}

.cc-content-area .entry-content blockquote {
    border-left: 4px solid var(--cc-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--cc-surface);
    border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
}

.cc-content-area .entry-content pre {
    background: #0d1117; /* GitHub dark mode pre background */
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border);
    overflow-x: auto;
    font-family: var(--cc-font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.cc-content-area .entry-content code {
    font-family: var(--cc-font-mono);
    font-size: 0.9em;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.cc-content-area .entry-content pre code {
    background: none;
    padding: 0;
}

.cc-content-area .entry-content img {
    border-radius: var(--cc-radius);
    margin: 1.5rem 0;
}

/* Post navigation */
.cc-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cc-border);
}

.cc-post-navigation a {
    color: var(--cc-text);
    font-weight: 600;
    display: block;
    padding: 1rem;
    border-radius: var(--cc-radius);
    transition: background var(--cc-transition);
}

.cc-post-navigation a:hover {
    background: var(--cc-surface-hover);
}

.cc-post-navigation .nav-next {
    text-align: right;
}

/* Pagination */
.cc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.cc-pagination a,
.cc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border-radius: var(--cc-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--cc-border);
    color: var(--cc-text);
    transition: all var(--cc-transition);
}

.cc-pagination a:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
}

.cc-pagination .current {
    background: var(--cc-primary);
    color: var(--cc-white);
    border-color: transparent;
}

/* Comments */
.cc-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cc-border);
}

.cc-comments h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cc-comments .comment-list {
    list-style: none;
}

.cc-comments .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cc-border);
}

.cc-comments .comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cc-comments .comment-meta {
    font-size: 0.85rem;
    color: var(--cc-text-light);
    margin-bottom: 0.75rem;
}

.cc-comments .comment-form .form-submit .submit {
    composes: cc-btn cc-btn--primary;
    padding: 0.75rem 2rem;
    background: var(--cc-primary);
    color: var(--cc-white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--cc-transition);
}

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

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

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

/* 404 page */
.cc-404 {
    text-align: center;
    padding: 6rem 0;
}

.cc-404__code {
    font-family: var(--cc-font-mono);
    font-size: 8rem;
    font-weight: 800;
    color: var(--cc-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.cc-404 h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cc-404 p {
    color: var(--cc-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Sidebar */
.cc-sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
}

.cc-sidebar .widget h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cc-primary);
}

.cc-sidebar .widget ul {
    list-style: none;
}

.cc-sidebar .widget ul li {
    padding: 0.35rem 0;
}

.cc-sidebar .widget ul li a {
    color: var(--cc-text);
    font-size: 0.95rem;
}

.cc-sidebar .widget ul li a:hover {
    color: var(--cc-primary);
}

/* Search form */
.cc-search-form {
    display: flex;
    gap: 0.5rem;
}

.cc-search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    font-family: var(--cc-font-body);
    font-size: 1rem;
}

.cc-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--cc-primary);
}

.cc-search-form button {
    padding: 0.75rem 1.25rem;
    background: var(--cc-primary);
    color: var(--cc-white);
    border: none;
    border-radius: var(--cc-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--cc-transition);
}

.cc-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: var(--cc-shadow);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--cc-text-light);
    text-align: center;
    padding: 0.5rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--cc-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
    .cc-menu-toggle {
        display: flex;
    }

    .cc-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--cc-bg);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right var(--cc-transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .cc-nav.active {
        right: 0;
    }

    .cc-nav a {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .cc-features__grid {
        grid-template-columns: 1fr;
    }

    .cc-events__grid {
        grid-template-columns: 1fr;
    }

    .cc-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .cc-section {
        padding: 4rem 0;
    }

    .cc-hero__actions {
        flex-direction: column;
    }

    .cc-hero__actions .cc-btn {
        text-align: center;
        justify-content: center;
    }

    .cc-about__stats {
        grid-template-columns: 1fr;
    }

    .cc-footer__main {
        grid-template-columns: 1fr;
    }

    .cc-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .cc-post-navigation {
        grid-template-columns: 1fr;
    }

    .cc-404__code {
        font-size: 5rem;
    }
}

/* ============================================
   ANIMATIONS (Intersection Observer targets)
   ============================================ */
.cc-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cc-animate-delay-1 { transition-delay: 0.1s; }
.cc-animate-delay-2 { transition-delay: 0.2s; }
.cc-animate-delay-3 { transition-delay: 0.3s; }
.cc-animate-delay-4 { transition-delay: 0.4s; }
