﻿/* ==============================================
   RESET & BASE STYLES
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

/* ==============================================
   LAYOUT & CONTAINERS
   ============================================== */
.container {
    max-width: 865px;
    margin: 0 auto;
    padding: 0 1rem; /* Default padding for all screens */
}

/* ==============================================
   RESPONSIVE SIDE MARGINS
   ============================================== */

/* Tablet and desktop (min-width: 768px) */
@media (min-width: 865px) {
    .container {
        padding: 0 3rem; /* 3rem side margins for tablet and desktop */
    }
}

/* Large desktop (min-width: 1200px) */
@media (min-width: 865px) {
    .container {
        padding: 0; /* Remove side padding for very large screens */
        margin: 0 auto; /* Center with max-width only */
    }
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 500px) {
    .container {
        padding: 0 1.5rem; /* Smaller side margins for mobile */
    }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem; /* Even smaller margins for very small screens */
    }
}

:root {
    /* Color Variables - Light Theme */
    --light-bg: #ffffff;
    --light-text: #1a1a1a;
    --light-secondary: #666666;
    --light-muted: #8c8c8c;
    --light-border: #e0e0e0;
    --light-card: #f8f9fa;
    --light-primary: #2563eb;
    --light-accent: #059669;
    
    /* Color Variables - Dark Theme */
    --dark-bg: #0f172a;
    --dark-text: #f1f5f9;
    --dark-secondary: #94a3b8;
    --dark-muted: #64748b;
    --dark-border: #334155;
    --dark-card: #1e293b;
    --dark-primary: #3b82f6;
    --dark-accent: #10b981;
    
    /* Common Variables */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    transition: var(--transition-slow);
}

/* Icon weight tweak (about 20% lighter) */
i[class^="fa"], i[class*=" fa-"] {
    font-weight: 400;
    font-variation-settings: "wght" 350;
}

/* ==============================================
   THEME SYSTEM
   ============================================== */
body.light-theme {
    background-color: var(--light-bg);
    color: var(--light-text);
}

body.light-theme {
    --bg-color: var(--light-bg);
    --text-color: var(--light-text);
    --secondary-color: var(--light-secondary);
    --muted-color: var(--light-muted);
    --border-color: var(--light-border);
    --card-bg: var(--light-card);
    --primary-color: var(--light-primary);
    --accent-color: var(--light-accent);
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
    --secondary-color: var(--dark-secondary);
    --muted-color: var(--dark-muted);
    --border-color: var(--dark-border);
    --card-bg: var(--dark-card);
    --primary-color: var(--dark-primary);
    --accent-color: var(--dark-accent);
}
/* ==============================================
   HEADER & PROFILE
   ============================================== */
.header {
    padding: 2rem 0;
}

.header-container {
    display: flex;
    align-items: flex-start;
}

.profile-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
    width: 100%;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-theme-row {
    display: flex;
    justify-content: space-between;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 5px;
}

.twitter-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* ==============================================
   THEME SWITCH STYLES
   ============================================== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.theme-switch input {
    display: none;
}


.switch-slider {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 30px;
    background: #d1d5db;
    border-radius: 999px;
    padding: 3px;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}


.switch-slider .knob {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 260ms cubic-bezier(.22,.9,.33,1), box-shadow 200ms ease;
}

/* Move knob when checked */
.theme-switch input:checked + .switch-slider .knob {
    transform: translateX(25px);
}

/* Icons inside the knob - centered */
.knob .knob-icon {
    display: block;
    font-size: 12px; /* reduced ~30% from 12px */
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    color: rgba(0, 0, 0, 0.656) !important; /* fixed 70% black regardless of theme */
    transform-origin: center center;
}

/* Show sun when unchecked, show moon when checked */
.theme-switch input:not(:checked) + .switch-slider .knob .sun-icon { opacity: 1; transform: scale(1); }
.theme-switch input:not(:checked) + .switch-slider .knob .moon-icon { opacity: 0; transform: scale(.8); }
.theme-switch input:checked + .switch-slider .knob .sun-icon { opacity: 0; transform: scale(.8); }
.theme-switch input:checked + .switch-slider .knob .moon-icon { opacity: 1; transform: scale(1); }

/* Slightly darker background in dark mode */
.dark-theme .switch-slider {
    background: #2b3650;
}

.dark-theme .switch-slider .knob {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(2,6,23,0.12);
}

.theme-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

/* Remove old theme button styles */
.theme-btn {
    display: none;
}


.profile-location {
    color: var(--text-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.profile-location i {
    color: var(--text-color);
    font-size: 0.8rem;
    margin-right: 0.1   rem;
}

.title-awards-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 2rem;
    border-radius: var(--border-radius-xs);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-schedule {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-schedule:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-email,
.btn-download {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-email:hover,
.btn-download:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* ==============================================
   MAIN CONTENT & CARDS
   ============================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0.5rem;
}

.col-left,
.col-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.card-header h3 {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}


.view-all {
    font-size: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

/* About Card */
.about-text {
    font-size: 0.87rem;
    color: var(--text-color);
    margin-bottom: 0.65rem;
    line-height: 1.55;
}

/* Tech Stack Card */
.tech-group {
    margin-top: 0.6rem;
}

.tech-category {
    font-size: 0.88rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    transition: var(--transition);
}

/* Tech icon inside chip */
.chip .tech-icon {
    margin-right: 0.5rem;
    font-size: 0.95rem;
    vertical-align: text-bottom;
}

/* PNG logo images for chips (use original 512px source, scale to match text) */
.chip .tech-img {
    height: 1rem; /* match chip text height exactly */
    width: auto;
    display: inline-block;
}

/* Brand colors for tech icons (approx. official colors) */
.icon-html { color: #E34F26; }
.icon-css { color: #1572B6; }
.icon-js { color: #F7DF1E; /* text appears on yellow */ }
.icon-react { color: #61DAFB; }
.icon-bootstrap { color: #7952B3; }
.icon-php { color: #777BB4; }
.icon-python { color: #3776AB; }
.icon-mysql { color: #4479A1; }
.icon-vscode { color: #007ACC; }
.icon-pycharm { color: #000000; }
.icon-github { color: #181717; }
.icon-git { color: #F05032; }
.icon-ghl { color: #FF5A5F; }
.icon-canva { color: #00C4CC; }
.icon-excel { color: #217346; }
.icon-clickup { color: #F33355; }
.icon-slack { color: #611f69; }

.chip:hover {
    background: var(--border-color);
}

/* Featured Image Card */
.featured-image-card {
    padding: 0;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Carousel: featured images */
.featured-carousel {
    position: relative;
    width: 100%;
    display: block;
}

.featured-carousel .carousel-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: opacity 0.45s ease;
    opacity: 1;
}

.featured-carousel .carousel-image.fading {
    opacity: 0;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 6;
}

.carousel-dot {
    width: 7px; /* reduced 50% */
    height: 7px; /* reduced 50% */
    background: transparent; /* outlined by default */
    border: 1px solid var(--muted-color);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.carousel-dot:hover {
    transform: scale(1.25);
    border-color: var(--primary-color);
}

.carousel-dot.active {
    background: white; /* uses theme text color (black in light theme, light in dark theme) */
    border-color: white
}

/* Experience Card */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.8rem 0;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-color);
    border: 2px solid var(--card-bg);
    flex-shrink: 0;
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.role {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.company {
    font-size: 0.75rem;
    color: var(--text-color);
}

.timeline-year {
    font-size: 0.75rem;
    color: var(--text-color);
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
    border: var(--border-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.year-badge {
    display: none;
}

/* Ad/Banner Card */
.ad-card {
    padding: 1rem;
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.ad-left strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.ad-left .ad-sub {
    font-size: 0.78rem;
    opacity: 0.95;
    margin-top: 0.15rem;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-color);
    font-size: 0.875rem;
}
.divider {
    background: var(--border-color);
}

/* ==============================================
   UTILITIES
   ============================================== */
.small {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .profile-header {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }
    .switch-slider .knob { width: 20px; height: 20px; }
    .switch-slider { width: 50px; height: 25px; }
    .card-header h3 { font-size: 1rem; }
    .about-text { font-size: 0.8rem; }

    /* Reduce header typography to align with the smaller profile picture */
    .profile-picture { width: 120px; height: 137px;border-radius: 7px;}
    .profile-name { font-size: 1.05rem; margin: 0; }
    .profile-location { font-size: 0.78rem; margin-bottom: 0rem; }
    .profile-title { font-size: 0.75rem; }
    .rec-quote { font-size: 0.75rem; }
    .twitter-verified-badge { width: 16px; height: 16px; }

    /* Two buttons on top row, one full-width button below (Download CV) */
    .action-buttons{
        gap: 0.3rem;
        flex-wrap: wrap; /* allow wrapping so download can go to next row */
        display:flex;
        align-items: center;
        justify-content: flex-start;
    }

    /* Make the first two buttons share the row, download button spans full width */
    .action-buttons .btn {
        padding: 0.28rem 0.6rem;
        font-size: 0.60rem;
        min-width: 0;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex: 1 1 48%; /* allow two buttons per row */
    }

    /* Download CV sits on its own row and fills available width */
    .action-buttons .btn-download {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.35rem;
    }
    .title-awards-row { margin-bottom: 1%; }
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: normal;
}

/* ==============================================
   SECONDARY GRID (Beyond Coding & Projects)
   ============================================== */
.secondary-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.beyond-card {
    grid-column: 1;
}

.projects-card {
    grid-column: 2;
}

/* Beyond Coding text uses the same style as about-text */
.beyond-card .about-text {
    font-size: 0.87rem;
    color: var(--text-color);
    margin-bottom: 0.65rem;
    line-height: 1.55;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.project-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-item:hover {
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
}

.project-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.project-desc {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-link {
    font-size: 0.8rem;
    color: var(--text-color);
    font-family: 'Courier New', monospace, monospace;
    opacity: 0.8;
}

/* ==============================================
   RESPONSIVE DESIGN FOR SECONDARY GRID
   ============================================== */

/* Tablet breakpoint (900px and below) */
@media (max-width: 900px) {
    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .beyond-card {
        grid-column: 1;
        grid-row: 1;
    }
    
    .projects-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .project-item {
        padding: 0.75rem;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-desc {
        font-size: 0.7rem;
    }
    
    .project-link {
        font-size: 0.7rem;
    }
}

/* Small tablet breakpoint (768px and below) */
@media (max-width: 768px) {
    .projects-grid {
        gap: 0.4rem;
    }
    
    .project-item {
        padding: 0.7rem;
    }
    
    .beyond-card .about-text {
        font-size: 0.85rem;
    }
}

/* Mobile breakpoint (600px and below) */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-desc {
        font-size: 0.8rem;
    }
    
    .project-link {
        font-size: 0.75rem;
    }
    
    .secondary-grid {
        gap: 0.5rem;
    }
}

/* Small mobile breakpoint (480px and below) */
@media (max-width: 480px) {
    .project-item {
        padding: 0.8rem;
    }
    
    .project-title {
        font-size: 0.95rem;
    }
    
    .project-desc {
        font-size: 0.75rem;
    }
    
    .beyond-card .about-text {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
}

/* Extra small mobile breakpoint (360px and below) */
@media (max-width: 360px) {
    .projects-grid {
        gap: 0.4rem;
    }
    
    .project-item {
        padding: 0.7rem;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-desc {
        font-size: 0.7rem;
    }
    
    .project-link {
        font-size: 0.7rem;
    }
}

/* ==============================================
   TERTIARY GRID (Certifications & Recommendations)
   ============================================== */
.tertiary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.certifications-card {
    grid-column: 1;
}

.recommendations-card {
    grid-column: 2;
}

/* Certifications List */
.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius-xs);
    background: var(--card-bg);
    transition: var(--transition);
    cursor: pointer;
}

.cert-item:hover {
    background: var(--border-color);
}

.cert-name {
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-color);
}

.cert-issuer {
    font-size: 0.78rem;
    color: var(--text-color);
}

/* Recommendations */
.recommendation-content {
    display: flex;
    flex-direction: column;
}

.rec-quote {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.rec-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.rec-role {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.rec-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

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

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

@media (max-width: 900px) {
    .tertiary-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-card,
    .recommendations-card {
        grid-column: auto;
    }
}
/* ==============================================
   QUATERNARY GRID (Member, Social, Speaking, CTA)
   ============================================== */
.quaternary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.member-card,
.social-card,
.speaking-card,
.cta-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.member-card .card-header,
.social-card .card-header,
.speaking-card .card-header,
.cta-card .card-header {
    margin-bottom: 0.8rem;
    padding: 0;
    border: none;
}

/* Member List */
.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: var(--border-radius-xs);
    border: 1px solid var(--border-color);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.member-item:hover {
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
}

.member-name {
    font-size: 10px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

.member-link-icon {
    font-size: 10px;
    color: var(--text-color);
    flex-shrink: 0;
}

/* Social List */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border-radius: var(--border-radius-xs);
    border: 1px solid var(--border-color);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.social-item:hover {
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1rem;
    color: var(--text-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.social-item span {
    font-size: 10px;
    color: var(--text-color);
    font-weight: 500;
}

/* Daily Bible Verse */
.verse-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xs);
    background: transparent;
    padding: 0.8rem;
    transition: var(--transition);
}

.verse-container:hover {
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
}

.verse-text {
    font-size: 10px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 0.4rem 0;
    font-style: italic;
}

.verse-reference {
    font-size: 10px;
    color: var(--text-color);
    font-weight: 400;
    text-align: right;
    font-style: italic;
}

.verse-reference.loading {
    color: var(--primary-color);
}

.verse-reference.error {
    color: var(--text-color);
}
/* CTA Card */
.cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-section {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xs);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.cta-section:hover {
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
}

.cta-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cta-icon i {
    font-size: 0.9rem;
    color: var(--text-color);
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-label {
    font-size: 10px;
    color: var(--textcolor);
    font-weight: 600;
}

.cta-value {
    font-size: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.cta-link {
    font-size: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cta-link:hover {
    gap: 0.6rem;
}

.cta-link i {
    font-size: 0.65rem;
}

/* Quaternary grid responsiveness: two columns on medium screens, single column on small screens */
@media (max-width: 1200px) {
    .quaternary-grid {
        gap: 0.8rem;
    }
}

@media (max-width: 900px) {
    .quaternary-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        /* Remove extra inner padding so edges align with other grids */
        padding: 0;
        border: none; /* keep visual alignment with other container sections */
        background: transparent;
    }

    /* Ensure child cards keep internal padding and visible borders like other sections */
    .quaternary-grid .member-card,
    .quaternary-grid .social-card,
    .quaternary-grid .speaking-card,
    .quaternary-grid .cta-card {
        border: 1px solid var(--border-color);
        padding: 0.9rem;
        border-radius: var(--border-radius);
    }

    /* Add 1rem horizontal margin for CTA card on mobile so it matches other sections' edges */
    .quaternary-grid .cta-card {
        margin: 0 1rem;
    }
    /* Also apply same horizontal margin to Member, Social and Daily Verse cards */
    .quaternary-grid .member-card,
    .quaternary-grid .social-card,
    .quaternary-grid .speaking-card {
        margin: 0 1rem;
    }
}
.divider-grid {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.fade-down {
    opacity: 0;
    transform: translateY(-25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-down.visible {
    opacity: 1;
    transform: translateY(0);
}

/* footer titles */
.footer-title {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-color);
}
/* ==============================================
   LINK STYLES - NO UNDERLINES
   ============================================== */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Remove underlines from all link types */
.view-all,
.cta-link,
.project-item,
.social-item,
.member-link-icon {
    text-decoration: none !important;
}

/* Ensure project items don't show underline on text */
.project-item:hover .project-title,
.project-item:hover .project-desc,
.project-item:hover .project-link {
    text-decoration: none;
}

/* Social links */
.social-item span {
    text-decoration: none;
}

/* Member links */
.member-link-icon {
    text-decoration: none !important;
}

/* CTA links */
.cta-link {
    text-decoration: none !important;
}

/* Button links */
.btn {
    text-decoration: none !important;
}

/* Make sure hover states don't add underlines */
a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* ==============================================
   SPECIFIC LINK STYLES
   ============================================== */
/* Project items should look clickable but not underlined */
.projects-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Social links in list */
.social-list a {
    text-decoration: none;
    color: inherit;
}

/* Member links */
.member-item a {
    text-decoration: none;
    color: inherit;
}

/* View All links */
.view-all {
    text-decoration: none !important;
}