@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* === VARIABLES === */
/* Variables Styles */
/* CSS Variables and Fonts */
:root {
    --primary-color: #6A2C3C;
    --accent-color: #C0945E;
    --background-color: #e8e8d8;
    --text-color: #333333;
    --secondary-text-color: #555555;
    /* Back-compat alias for older styles */
    --text-secondary: var(--secondary-text-color);
    --light-text-color: #FFFFFF;
    --card-background: #fdfdfd;
    --card-bg-color: var(--card-background);
    --border-color: #dcdcdc;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    /* RGB color values for transparency effects */
    --accent-color-rgb: 192, 148, 94;
}

/* === RESET === */
/* Reset Styles */
/* Modern CSS Reset (Andy Bell) */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Additional Modern CSS Improvements */

/* Improve focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Improve button and interactive element styles */
button, [role="button"] {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Better list styling */
ul, ol {
  padding-left: 0;
}

/* Improve form element accessibility */
input, textarea, select {
  border: 1px solid var(--secondary-text-color);
  border-radius: 4px;
  padding: 0.5rem;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 44, 60, 0.2);
}

/* Better table styling */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Improve media queries for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* === LAYOUT === */
/* Layout Styles */
/* Layout and Structure Components */

.page-wrapper {
    background-color: var(--background-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Offset for fixed header height (approx 92px incl padding) */
    padding-top: 100px;
    box-sizing: border-box;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding-top: 40px;
    padding-bottom: 40px;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Reusable card style for content sections */
.content-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Ensure default text color for paragraphs inside cards */
.content-card p,
.latest-section p {
    color: var(--text-color);
}

.summary-item {
    margin-bottom: 2rem;
}

.summary-item.content-card {
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-color);
    color: var(--light-text-color);
}

/* === HEADER === */
/* Header Styles */
/* Header and Navigation Styles */

.main-header {
    /* Made header always visible while scrolling */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200; /* slightly above previous to ensure layering over content */
    width: 100%;
    background-color: rgba(248, 248, 248, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #EAEAEA;
    padding: 1rem 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.header-left-cluster {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-identifier {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-link {
    display: block;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-left: 0.5rem; /* Move photo slightly to the right */
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.profile-link:hover .header-profile-photo {
    border-color: var(--accent-color);
}

.logo-link {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.header-info .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.logo-link:hover .logo {
    color: var(--accent-color);
}

.header-info .tagline {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

/* Navigasi desktop disembunyikan dan diganti hamburger */
.main-nav {
    display: none;
}

/* Header Search Styles */
.header-right-cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-toggle-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.search-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.search-input-container {
    position: absolute;
    top: 50%;
    right: 54px; /* Position next to the toggle button */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-card);
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
}

.search-input-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.search-input-container input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
}

.search-input-container input::placeholder {
    color: var(--text-secondary);
}

.search-submit-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.search-submit-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Mobile adjustments moved to components/_mobile.css */

/* Dark mode adjustments */
.dark-mode .search-toggle-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.dark-mode .search-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.dark-mode .search-input-container {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* === SIDEBAR === */
/* Sidebar Styles */
/* Sidebar and Popup Styles */

/* Tombol Hamburger (selalu terlihat di kiri header) */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger-btn span {
    width: 24px; height: 3px; background: var(--text-color); border-radius: 5px;
}

/* Tombol Info di Kanan Bawah */
.info-trigger-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.info-trigger-button svg {
    stroke: var(--light-text-color);
}

/* Panel Sidebar Kiri (Menu Hamburger) */

/* Kontainer Utama Sidebar */
.main-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: var(--card-background);
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease,
                visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* Header di dalam Sidebar (untuk Tombol Tutup) */
.sidebar-header {
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

/* Scrollable Content Container */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Main Menu di Atas Sidebar */
.main-menu {
    /* Added top margin to create space above the Main Menu block */
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(192, 148, 94, 0.15);
}

.main-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(192, 148, 94, 0.2);
    transition: all 0.2s ease;
}

.main-menu-link:hover {
    background-color: #f1e9ec;
    border-color: rgba(192, 148, 94, 0.4);
    color: var(--primary-color);
}

.main-menu-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: none;
}

/* Navigasi di dalam Sidebar */
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a { display: block; padding: 1rem 1.5rem; text-decoration: none; color: var(--text-color); font-weight: 600; border-radius: 8px; transition: all 0.2s ease; }
.sidebar-nav a:hover { background-color: #f1e9ec; color: var(--primary-color); }

/* Portfolio Dropdown dalam Sidebar */
.portfolio-section {
    position: relative;
}

.portfolio-label {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.portfolio-label:hover {
    background-color: #f1e9ec;
    color: var(--primary-color);
}

.portfolio-label::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.portfolio-section.active .portfolio-label::after {
    transform: translateY(-50%) rotate(180deg);
}

.portfolio-submenu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0,0,0,0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

.portfolio-section.active .portfolio-submenu {
    max-height: 300px;
    padding: 0.5rem 0;
}

.portfolio-submenu li {
    margin: 0;
}

.portfolio-submenu a {
    padding: 0.8rem 3rem;
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0;
}

.portfolio-submenu a:hover {
    background-color: rgba(106, 44, 60, 0.1);
    color: var(--primary-color);
}

/* Documentation Dropdown dalam Sidebar */
.documentation-section {
    position: relative;
}

.documentation-label {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.documentation-label:hover {
    background-color: #f1e9ec;
    color: var(--primary-color);
}

.documentation-label::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.documentation-section.active .documentation-label::after {
    transform: translateY(-50%) rotate(180deg);
}

.documentation-submenu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0,0,0,0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}

.documentation-section.active .documentation-submenu {
    max-height: 300px;
    padding: 0.5rem 0;
}

.documentation-submenu li {
    margin: 0;
}

.documentation-submenu a {
    padding: 0.8rem 3rem;
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0;
}

.documentation-submenu a:hover {
    background-color: rgba(106, 44, 60, 0.1);
    color: var(--primary-color);
}

/* Tombol Aksi CTA di dalam Sidebar */
.sidebar-cta { 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    margin: 1.5rem 0; 
    padding: 1.5rem 0; 
    text-align: center; 
}
.cta-button-sidebar { background-color: var(--primary-color); color: var(--light-text-color); text-decoration: none; padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; }

/* Preferences Section in Sidebar */
.sidebar-options { 
    padding: 1.5rem 0; 
    font-size: 0.9rem; 
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: auto;
}

.sidebar-options h3 { 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
}

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

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    font-size: 0.85rem;
}

.option-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--secondary-text-color);
}

.toggle-switch {
    display: flex;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.toggle-option {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    transition: all 0.2s ease;
    text-align: center;
}

.toggle-option.active {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-option:hover:not(.active) {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-color);
}

/* Social Media Icons in Sidebar */
.sidebar-socials { 
    padding: 1.5rem 0; 
    text-align: center; 
}
.sidebar-socials a { 
    margin: 0 0.5rem; 
    text-decoration: none; 
    color: var(--secondary-text-color); 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.sidebar-socials a:hover {
    color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: translateY(-2px);
}
.sidebar-socials svg {
    width: 20px;
    height: 20px;
}

/* Panel Popup Kanan (Info Kontak) */

/* Kontainer Utama Popup */
.floating-info-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    /* Raised above header (header z-index: 1200) */
    z-index: 1300;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease,
                visibility 0.4s ease;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

/* Tombol Tutup 'X' di dalam Popup */
.popup-close-button {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 30px; /* ~70% of 42px */
    height: 30px; /* ~70% of 42px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-background, var(--background-color));
    border: 2px solid var(--primary-color); /* more visible border */
    color: var(--text-color);
    font-size: 1.25rem; /* scale glyph down proportionally */
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.popup-close-button:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 14px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}
.popup-close-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.popup-close-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Wrapper Konten di dalam Popup */
.popup-inner-wrapper {
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    padding-left: 30px;
    background-color: var(--background-color);
    position: relative; 
    overflow-y: auto;
    z-index: 1;
}

/* Ilusi Sidebar Marun di dalam Popup */
.popup-inner-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
}

/* Judul di dalam Popup */
.popup-inner-wrapper h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
    padding-left: 80px;
}

/* Daftar Kontak di dalam Popup */
.contact-list { display: flex; flex-direction: column; gap: 2.5rem; padding-left: 80px; }

/* Setiap Item Kontak */
.contact-item { display: flex; align-items: center; gap: 1.5rem; }

/* Lingkaran Ikon */
.contact-icon-wrapper { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255, 255, 255, 0.2); position: absolute; left: 14px; }
.contact-icon-wrapper svg { stroke: var(--light-text-color); }

/* Detail Teks (Label & Value) */
.contact-details { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.contact-label { font-size: 0.8rem; font-weight: 600; color: var(--secondary-text-color); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { font-size: 1rem; font-weight: 500; color: var(--text-color); word-break: break-all; }
.contact-value[href] { text-decoration: none; color: var(--primary-color); }
.contact-value[href]:hover { text-decoration: underline; }

/* === CARDS === */
/* Cards Styles */
/* Card Components */

.card {
    background-color: var(--card-background);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card p.date {
    color: #2C121A;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 1rem;
}

.card ul {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 1rem;
    margin-top: 1rem;
}

.card ul li {
    margin-bottom: 0.5rem;
}

/* === BUTTONS === */
/* Buttons Styles */
/* Button Components */

.cta-button-sidebar { 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
    text-decoration: none; 
    padding: 0.8rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 600; 
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* CTA Full-Width Section */
.cta-full-width {
    background-color: var(--primary-color);
    padding: 5rem 0;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.cta-box h2 {
    color: var(--light-text-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem auto 2.5rem auto;
    font-size: 1.1rem;
}

/* Mobile button rules moved to components/_mobile.css */

/* === TIMELINE === */
/* Timeline Styles */
/* Timeline Component Styles */

#timeline-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline-description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#timeline-content {
    margin: 4rem auto;
    padding: 2rem 1rem;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    min-height: 200px;
}

/* Timeline vertical line - changed approach */
.timeline::before {
    display: none;
}

/* Individual line segments between timeline items */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 80px;
    width: 3px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 60px;
    display: flex;
    justify-content: center;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--background-color);
    box-shadow: var(--shadow);
}

.timeline-icon.education {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.timeline-icon.work {
    background: linear-gradient(135deg, var(--primary-color), #8b3a4f);
    color: white;
}

.timeline-icon.volunteer {
    background: linear-gradient(135deg, var(--accent-color), #d4a574);
    color: white;
}

.timeline-icon.academic {
    background: linear-gradient(135deg, #6b4e7d, #9b59b6);
    color: white;
}

.timeline-content {
    flex: 1;
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin: 0 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(192, 148, 94, 0.1);
    position: relative;
    z-index: 2;
}

/* Timeline content arrows */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--card-background);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--card-background);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.5;
}

.achievement-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: rgba(192, 148, 94, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(192, 148, 94, 0.3);
}

.tag.education {
    background: rgba(74, 144, 226, 0.1);
    color: #357abd;
    border-color: rgba(74, 144, 226, 0.3);
}

.tag.work {
    background: rgba(106, 44, 60, 0.1);
    color: var(--primary-color);
    border-color: rgba(106, 44, 60, 0.3);
}

.tag.volunteer {
    background: rgba(192, 148, 94, 0.1);
    color: var(--accent-color);
    border-color: rgba(192, 148, 94, 0.3);
}

#timeline-summary {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(192, 148, 94, 0.2);
}

.summary-card h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.insight-item {
    text-align: center;
    padding: 1.5rem;
}

.insight-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.insight-item p {
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* === PAGES === */
/* Pages Styles */
/* =============================================
   PAGE-SPECIFIC & SECTION STYLES (Readable Format)
   Order mirrors primary navigation & homepage flow:
   1. Homepage Hero / Intro
   2. Homepage Layout & Shared Cards
   3. Homepage Summary Section
   4. Homepage Education & Experience Sections
   5. Homepage Latest / Project / Facts / Skills Sections
   6. About Page
   7. Timeline Page
   8. Documentation Page
   9. Shared Homepage About Headings
   10. Global Overrides
   ============================================= */

/* ============ 1. HOMEPAGE: HERO / INTRO ============ */
#intro {
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
#intro h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}
#intro .intro-text {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(192, 148, 94, 0.1), rgba(106, 44, 60, 0.1));
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ 2. HOMEPAGE: LAYOUT & SHARED CARDS ============ */
#main-content {
  margin: 3rem auto;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.section-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.section-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-card p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============ 3. HOMEPAGE: SUMMARY SECTION ============ */
.summary-section {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.2);
  border-left: 4px solid var(--accent-color);
}
.summary-section h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1rem;
}
.summary-item {
  margin-bottom: 2rem;
}
.summary-item:last-child {
  margin-bottom: 0;
}
.summary-section h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  position: relative;
}
.summary-section h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}
.summary-section h5 {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}

/* ============ 4. HOMEPAGE: EDUCATION & EXPERIENCE ============ */
.education-section,
.experience-section {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.2);
}
.education-section .education-item,
.experience-section .experience-item {
  border-bottom: 1px solid rgba(192, 148, 94, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.education-section .education-item:last-child,
.experience-section .experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.education-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(192, 148, 94, 0.2);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}
.education-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.education-item h4 {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.experience-item h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.experience-period {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.summary-section .institution,
.summary-section .date,
.education-item .institution,
.education-item .date {
  font-size: 0.9rem !important; /* 90% of previous 1rem */
  color: var(--secondary-text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.education-item .institution {
  margin-bottom: 0.2rem;
}
.achievements {
  list-style: none;
  padding: 0;
  margin: 0;
}
.achievements li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-color);
  line-height: 1.4;
}
.achievements li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -0.2rem;  /* adjust vertical alignment */
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}
.achievement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.achievement-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.achievement-tag:hover {
  transform: scale(1.05);
}

/* ============ 5. HOMEPAGE: LATEST / PROJECTS / FACTS / SKILLS ============ */
.latest-section {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s, border-color 0.3s;
}
.latest-section h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}
.latest-item {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0;
  margin: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border-bottom: 1px solid rgba(192, 148, 94, 0.1);
}
.latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.latest-item h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-color);
}
.latest-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  line-height: 1.5;
}
.project-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(192, 148, 94, 0.1);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}
.project-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.project-item h4 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.project-item p {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  line-height: 1.5;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.fact-item {
  background: rgba(192, 148, 94, 0.1);
  color: var(--primary-color);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(192, 148, 94, 0.2);
}
#main-content .quick-facts li {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(192, 148, 94, 0.1);
  font-size: 0.9rem;
  line-height: 1.4;
}
#main-content .quick-facts li:last-child {
  border-bottom: none;
}
#skills {
  margin: 3rem 0;
  text-align: center;
  padding: 0;
}
#skills h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  padding: 0 2rem;
}
.skills-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  padding: 1.5rem 2rem;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-height: 120px;
  justify-content: center;
}
.skills-grid::-webkit-scrollbar {
  height: 6px;
}
.skills-grid::-webkit-scrollbar-track {
  background: rgba(192, 148, 94, 0.1);
  border-radius: 3px;
}
.skills-grid::-webkit-scrollbar-thumb {
  background: rgba(192, 148, 94, 0.3);
  border-radius: 3px;
}
.skills-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 148, 94, 0.5);
}

/* ============ 6. ABOUT PAGE ============ */
#about-intro {
  margin-top: 2rem;
  margin-bottom: 3rem;
}
#about-intro h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
}
.intro-text {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(192, 148, 94, 0.1), rgba(106, 44, 60, 0.1));
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
}
.about-text h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}
#main-content .about-text h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}
#main-content .about-text h3:first-of-type {
  margin-top: 1rem;
}
.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.expertise-list li {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent-color);
}
.expertise-list strong {
  color: var(--primary-color);
}
.about-sidebar {
  position: sticky;
  top: 2rem;
}
.quick-facts,
.contact-cta {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.2);
}
.quick-facts h4,
.contact-cta h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.quick-facts ul {
  list-style: none;
  padding: 0;
}
.quick-facts li {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(192, 148, 94, 0.1);
  font-size: 0.95rem;
}
.quick-facts li:last-child {
  border-bottom: none;
}
.contact-cta p {
  margin-bottom: 1rem;
  color: var(--secondary-text-color);
  font-size: 0.95rem;
}
.contact-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.9rem;
  text-decoration: none;
}
#about-values {
  margin-top: 4rem;
  margin-bottom: 3rem;
}
#about-values h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2.2rem;
  font-weight: 700;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-item {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(192, 148, 94, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}
.value-item p {
  color: var(--secondary-text-color);
  line-height: 1.6;
}

/* ============ 7. TIMELINE PAGE ============ */
#timeline-intro {
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
#timeline-intro h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}
.timeline-description {
  font-size: 1.1rem;
  color: var(--secondary-text-color);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
#timeline-content {
  margin: 4rem auto;
  padding: 2rem 1rem;
  overflow: hidden;
}
#timeline-summary {
  margin-top: 4rem;
  margin-bottom: 3rem;
}
.summary-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.2);
}
.summary-card h3 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.insight-item {
  text-align: center;
  padding: 1.5rem;
}
.insight-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.insight-item p {
  color: var(--secondary-text-color);
  line-height: 1.6;
}

/* ============ 8. DOCUMENTATION PAGE ============ */
#documentation-intro {
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
#documentation-intro h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}
.documentation-description {
  font-size: 1.1rem;
  color: var(--secondary-text-color);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
#documentation-content {
  margin: 4rem auto;
}
.documentation-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
.doc-category {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.1);
}
.doc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(192, 148, 94, 0.2);
}
.doc-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.doc-icon.research { background: linear-gradient(135deg, #4a90e2, #357abd); }
.doc-icon.hr { background: linear-gradient(135deg, var(--primary-color), #8b3a4f); }
.doc-icon.technical { background: linear-gradient(135deg, var(--accent-color), #d4a574); }
.doc-icon.academic { background: linear-gradient(135deg, #6b4e7d, #9b59b6); }
.doc-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.doc-items {
  display: grid;
  gap: 1.5rem;
}
.doc-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(192, 148, 94, 0.1);
  transition: all 0.3s ease;
}
.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(192, 148, 94, 0.3);
}
.doc-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.doc-item p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#documentation-resources {
  margin: 4rem auto 3rem;
}
.resources-header {
  text-align: center;
  margin-bottom: 3rem;
}
.resources-header h3 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.resources-header p {
  color: var(--secondary-text-color);
  font-size: 1.1rem;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.resource-item {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.1);
  transition: all 0.3s ease;
}
.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(192, 148, 94, 0.3);
}
.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.resource-item h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.resource-item p {
  color: var(--secondary-text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.resource-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.resource-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}
#documentation-notes {
  margin: 4rem auto 3rem;
}
.notes-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 148, 94, 0.2);
}
.notes-card h3 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.notes-card > p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
}
.philosophy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.point {
  text-align: center;
  padding: 1.5rem;
}
.point h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.point p {
  color: var(--secondary-text-color);
  line-height: 1.6;
}

/* ============ 9. SHARED HOMEPAGE H3 (ABOUT TEXT IN CARDS) ============ */
#main-content .about-text h3:first-of-type {
  margin-top: 1rem;
}

/* ============ 10. GLOBAL OVERRIDES (layout & typography consistency) ============ */
.education-section {
  padding: 1rem !important; /* Requested reduction */
}
.experience-item {
  padding: 0 !important;
}
.about-text {
  font-size: 1rem !important;
  line-height: 1.6;
}

/* === POSTS === */
/* Posts Styles */
/* Blog Post Styles */

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.post-category {
    margin: 0;
    font-size: 1rem;
}

.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.post-tags strong {
    margin-right: 0.5rem;
}

.tag-link {
    background-color: #f8f9fa;
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.post-body h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body h4 {
    font-size: 1.25rem;
}

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

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

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-writing {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.2s ease;
}

.back-to-writing:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Dark mode styles */
body.dark-mode .post-title {
    color: var(--text-color-dark);
}

body.dark-mode .post-body {
    color: var(--text-color-dark);
}

body.dark-mode .post-body h2,
body.dark-mode .post-body h3,
body.dark-mode .post-body h4 {
    color: var(--text-color-dark);
}

body.dark-mode .tag-link {
    background-color: #374151;
    color: var(--text-color-dark);
    border-color: #4b5563;
}

body.dark-mode .tag-link:hover {
    background-color: var(--primary-color);
    color: white;
}

body.dark-mode .post-body blockquote {
    background-color: #374151;
    color: var(--text-color-dark);
}

/* Responsive post rules moved to components/_mobile.css */

/* === UTILITIES === */
/* Utilities Styles */
/* JavaScript Helper Classes and Utilities */

/* Mengaktifkan Sidebar Kiri */
.main-sidebar.is-open {
    left: 0;
    opacity: 1;
    visibility: visible;
}

/* Mengaktifkan Popup Kanan */
.floating-info-popup.is-visible {
    right: 0;
    opacity: 1;
    visibility: visible;
}

/* Menggeser Header ketika Sidebar terbuka */
.main-header.content-shifted {
    transform: translateX(300px);
}

/* Menggeser Konten Utama */
.page-wrapper.content-shifted {
    transform: translateX(300px);
}

/* OVERLAY/BACKDROP FOR SIDEBAR AND POPUP */

/* Backdrop overlay for better UX when sidebar/popup is open */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show backdrop when sidebar is open */
.sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Show backdrop when popup is open */
.popup-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Stagger the animations for a more polished feel */
.main-sidebar {
    transition-delay: 0.05s;
}

.main-sidebar.is-open {
    transition-delay: 0s;
}

.floating-info-popup {
    transition-delay: 0.05s;
}

.floating-info-popup.is-visible {
    transition-delay: 0s;
}

/* === DARK-MODE === */
/* Dark-mode Styles */
/* === DARK MODE IMPLEMENTATION === */

/* Dark mode CSS variable overrides */
html.dark-mode,
body.dark-mode {
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --text-color: #e8e8d8;
    --secondary-text-color: #bbbbbb;
    --light-text-color: #FFFFFF;
    --shadow: 0 4px 8px rgba(0,0,0,0.4);
    --primary-color: #C0945E;
    --accent-color: #8B6914;
    /* Ensure borders are not light in dark theme */
    --border-color: #444444;
}

/* Ensure key card containers use dark variables */
html.dark-mode .content-card,
body.dark-mode .content-card {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

html.dark-mode .latest-section,
body.dark-mode .latest-section {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

/* Header dark mode styling */
body.dark-mode .main-header {
    background-color: rgba(45, 45, 45, 0.85);
    border-bottom: 1px solid #444444;
}

body.dark-mode .hamburger-btn span {
    background: var(--text-color);
}

/* Sidebar dark mode styling */
body.dark-mode .main-sidebar {
    background: var(--card-background);
    border-right: 1px solid #444444;
}

body.dark-mode .sidebar-content::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
}

body.dark-mode .sidebar-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

body.dark-mode .sidebar-nav a:hover {
    background-color: rgba(192, 148, 94, 0.1);
    color: var(--primary-color);
}

/* Menu links dark mode styling */
body.dark-mode .main-menu-link {
    background: transparent;
    border-color: rgba(192, 148, 94, 0.3);
    color: var(--light-text-color);
}

body.dark-mode .main-menu-link:hover {
    background-color: rgba(192, 148, 94, 0.1);
    border-color: rgba(192, 148, 94, 0.5);
    color: var(--primary-color);
}

/* Portfolio menu dark mode */
body.dark-mode .portfolio-label:hover {
    background-color: rgba(192, 148, 94, 0.1);
    color: var(--primary-color);
}

body.dark-mode .portfolio-submenu {
    background-color: rgba(0,0,0,0.3);
}

body.dark-mode .portfolio-submenu a:hover {
    background-color: rgba(192, 148, 94, 0.15);
    color: var(--primary-color);
}

/* Documentation menu dark mode */
body.dark-mode .documentation-label:hover {
    background-color: rgba(192, 148, 94, 0.1);
    color: var(--primary-color);
}

body.dark-mode .documentation-submenu {
    background-color: rgba(0,0,0,0.3);
}

body.dark-mode .documentation-submenu a:hover {
    background-color: rgba(192, 148, 94, 0.15);
    color: var(--primary-color);
}

/* Popup contact dark mode */
body.dark-mode .popup-inner-wrapper {
    background-color: var(--background-color);
}

body.dark-mode .popup-inner-wrapper::before {
    background-color: var(--primary-color);
}

body.dark-mode .contact-icon-wrapper {
    background-color: rgba(192, 148, 94, 0.2);
    border: 1px solid rgba(192, 148, 94, 0.3);
}

body.dark-mode .contact-value[href] {
    color: var(--primary-color);
}

/* Sidebar options dark mode */
body.dark-mode .sidebar-options {
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .sidebar-options h3 {
    color: var(--text-color);
}

body.dark-mode .option-label {
    color: var(--secondary-text-color);
}

body.dark-mode .option-label svg {
    stroke: var(--secondary-text-color);
}

/* Toggle switch dark mode */
body.dark-mode .toggle-switch {
    background-color: rgba(255,255,255,0.05);
}

body.dark-mode .toggle-option {
    color: var(--secondary-text-color);
}

body.dark-mode .toggle-option.active {
    background-color: var(--primary-color);
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

body.dark-mode .toggle-option:hover:not(.active) {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color);
}

/* Skills and tags dark mode */
body.dark-mode .skill-tag {
    background-color: var(--card-background);
    color: var(--primary-color);
    border: 1px solid rgba(192, 148, 94, 0.3);
}

/* CTA and buttons dark mode */
body.dark-mode .cta-full-width {
    background-color: #2d2d2d;
}

body.dark-mode .cta-button {
    background-color: var(--primary-color);
    color: #1a1a1a; /* Ensure good contrast on dark */
}

/* Footer dark mode */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top: 1px solid #444444;
}

/* Dark mode scrollbar styling */
body.dark-mode .skills-grid::-webkit-scrollbar-thumb {
    background-color: #666666;
}

body.dark-mode .skills-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Focus and form elements dark mode */
body.dark-mode :focus-visible {
    outline-color: var(--primary-color);
}

body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background-color: var(--card-background);
    border-color: var(--secondary-text-color);
    color: var(--text-color);
}

body.dark-mode input:focus, 
body.dark-mode textarea:focus, 
body.dark-mode select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(192, 148, 94, 0.3);
}

/* Dark mode backdrop overlays */
body.dark-mode .sidebar-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .popup-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header shift when sidebar is open */
.main-header.content-shifted {
    transform: translateX(300px);
}

/* About page dark mode styles */
body.dark-mode .intro-text {
    background: linear-gradient(135deg, rgba(192, 148, 94, 0.15), rgba(106, 44, 60, 0.15));
    color: var(--light-text-color);
}

body.dark-mode .expertise-list li {
    background: var(--card-background);
}

body.dark-mode .quick-facts li {
    border-bottom-color: rgba(192, 148, 94, 0.2);
}

body.dark-mode .value-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* General paragraph text in dark mode */
body.dark-mode p { color: var(--text-color); }

/* Education and summary metadata in dark mode */
body.dark-mode .education-item .institution,
body.dark-mode .education-item .date,
body.dark-mode .summary-section .institution,
body.dark-mode .summary-section .date {
    color: var(--secondary-text-color);
}

/* Timeline dark mode styles */
body.dark-mode .timeline-content::before {
    border-right-color: var(--card-background);
    border-left-color: var(--card-background);
}

body.dark-mode .tag {
    background: rgba(192, 148, 94, 0.2);
}

body.dark-mode .tag.education {
    background: rgba(74, 144, 226, 0.2);
}

body.dark-mode .tag.work {
    background: rgba(106, 44, 60, 0.2);
}

body.dark-mode .tag.volunteer {
    background: rgba(192, 148, 94, 0.2);
}

/* Documentation dark mode styles */
body.dark-mode .doc-item {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .doc-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

body.dark-mode .tag.research {
    background: rgba(74, 144, 226, 0.2);
}

body.dark-mode .tag.hr {
    background: rgba(106, 44, 60, 0.2);
}

body.dark-mode .tag.technical {
    background: rgba(192, 148, 94, 0.2);
}

body.dark-mode .tag.academic {
    background: rgba(107, 78, 125, 0.2);
}

body.dark-mode .resource-item:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* === RESPONSIVE === */
/* Responsive Styles */
/* Consolidated mobile rules moved to components/_mobile.css */

/* === MOBILE === */
/* Mobile Styles */
/* ======================================================================
	 Mobile styles (consolidated)
	 Purpose:
		 - Single source of truth for all mobile-specific rules
		 - Consolidated from components, pages, and legacy responsive CSS
		 - Must be included LAST in the build for correct override order

	 Breakpoints:
		 - <= 768px: phones + small tablets (portrait)
		 - <= 480px: small phones
		 - <= 375px: extra-small phones
		 - orientation: landscape (<= 768px)

	 Conventions:
		 - Do not change selector order here to avoid regressions
		 - Prefer additive overrides; keep desktop styles in component files
		 - Each section is numbered and documented; use the closest matching
			 section for new rules to keep this file navigable

	 Table of Contents:
		 [1] Core viewport & global protections (<=768px)
		 [2] Header & navigation (<=768px, <=480px)
		 [3] Sidebar behavior & backdrop (<=768px, <=480px)
		 [4] About/Home structure (<=768px)
		 [5] Home section containers (<=768px, <=480px, <=375px)
		 [6] Timeline (<=768px)
		 [7] Documentation (<=768px)
		 [8] Main layout & section cards (<=768px, <=480px)
		 [9] Extra-small screens (<=375px)
		 [10] Landscape phone fixes (<=768px)
		 [11] Touch targets & polish (<=768px)
		 [12] Sidebar cards & education lists (various sizes)
		 [13] Header typography & tagline wrap
		 [14] Intro: critical overrides
		 [15] Cards: sizing tweaks
		 [16] Components: Header search, Buttons, Posts
		 [17] Pages: 404, Translating
	 ====================================================================== */

/* ========================= [1] Core viewport & global protections ========================= */

/* Mobile-first viewport and overflow prevention */
@media (max-width: 768px) {
	html {
		max-width: 100vw;
		overflow-x: hidden;
	}
    
	body {
		max-width: 100vw;
		overflow-x: hidden;
		margin: 0;
		padding: 0;
	}
    
	.page-wrapper {
		max-width: 100vw;
		overflow-x: hidden;
		margin: 0;
		/* Provide vertical offset so fixed header doesn't overlap first content */
		padding: 100px 0 0 0; /* matches desktop header offset */
		box-sizing: border-box;
	}
    
	/* Prevent any element from exceeding viewport width */
	* {
		max-width: 100vw;
		box-sizing: border-box;
	}
    
	/* Special handling for potentially problematic elements */
	img, video, iframe, object, embed {
		max-width: 100% !important;
		height: auto !important;
	}
    
	/* Ensure all text content wraps properly */
	p, h1, h2, h3, h4, h5, h6, span, div, a {
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	/* Header text scaling (70% of desktop sizes) */
	.main-header .logo {
		font-size: 1.05rem; /* 70% of 1.5rem */
	}
	.main-header .tagline {
		font-size: 0.63rem; /* 70% of 0.9rem */
	}
	/* Optional: shrink toggle/button text if any future header nav text appears */
	.main-header button, .main-header a {
		font-size: 0.7em; /* relative scaling */
	}

	/* Shrink profile photo to 80% of desktop size and ensure circular */
	.header-profile-photo {
		width: 48px; /* 80% of 60px */
		height: 48px;
		border-radius: 50%;
	}

	/* Shrink hamburger button to 50% of desktop size */
	.hamburger-btn {
		/* Horizontally enlarged (2x current width) while keeping reduced height */
		width: 24px; /* was 12px after previous shrink */
		height: 24px; /* tighter vertical space */
		gap: 6px; /* minimal spacing between bars */
		justify-content: center; /* override base space-around */
		margin-left: 1rem; /* shift button right */
	}
	.hamburger-btn span {
		width: 24px; /* match new horizontal width */
		height: 2px;
	}

	/* Tighter header padding on mobile */
	.main-header {
		padding: 0.5rem 0.5rem;
	}

	/* Hide language switcher entirely on mobile per request */
	.main-header .lang-switcher {
		display: none !important;
	}

	/* Remove spacing between elements on left header cluster for mobile */
	.header-left-cluster {
		gap: 0;
	}
}

/* ========================= [2] Header & navigation ========================= */
@media (max-width: 768px) {
	.main-menu {
		margin-bottom: 1.5rem;
		padding-bottom: 1rem;
	}
    
	.main-menu-link {
		padding: 0.8rem 1rem;
		font-size: 1rem;
		gap: 0.5rem;
	}
    
	.main-menu-link svg {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 480px) {
	.main-menu-link {
		padding: 0.7rem 0.8rem;
		font-size: 0.9rem;
	}
    
	.main-menu-link svg {
		width: 16px;
		height: 16px;
	}
}

/* ========================= [3] Sidebar behavior & backdrop ========================= */
@media (max-width: 768px) {
	/* Prevent body scroll and zoom when sidebar is open */
	body.sidebar-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
		height: 100%;
		-webkit-overflow-scrolling: touch;
		/* Prevent any scaling issues */
		transform: translateZ(0);
		-webkit-transform: translateZ(0);
	}
    
	/* Ensure main content doesn't shift on mobile */
	.main-header.content-shifted {
		transform: none;
	}
    
	/* Prevent content from shifting horizontally */
	.page-wrapper.content-shifted {
		transform: none;
	}
    
	/* Adjust sidebar for mobile */
	.main-sidebar {
		width: 85vw;
		max-width: 300px;
		box-shadow: 2px 0 10px rgba(0,0,0,0.3);
		/* Ensure hardware acceleration */
		transform: translateZ(0);
		-webkit-transform: translateZ(0);
		will-change: left, opacity;
	}
    
	/* Ensure sidebar doesn't cause horizontal overflow */
	.main-sidebar.is-open {
		left: 0;
		right: auto;
	}
    
	/* Add stronger backdrop for mobile */
	.sidebar-backdrop {
		background: rgba(0, 0, 0, 0.6) !important;
		backdrop-filter: blur(2px);
		/* Ensure backdrop covers everything */
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}

@media (max-width: 480px) {
	.main-sidebar {
		width: 90vw;
		max-width: 280px;
	}
}

/* ========================= [4] About/Home structure ========================= */
@media (max-width: 768px) {
	.about-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		display: flex;
		flex-direction: column;
	}
    
	.about-text {
		order: 1;
	}
    
	.about-sidebar {
		position: static;
		order: 2;
		display: flex;
		flex-direction: column;
		align-self: stretch;
		width: 100%;
		max-width: 100%;
		flex: 1 1 auto;
		box-sizing: border-box;
	}
    
	/* Latest Projects comes first in sidebar */
	.about-sidebar .quick-facts:first-child {
		order: 1;
	}
    
	/* Latest Writings comes second in sidebar */
	.about-sidebar .quick-facts:last-child {
		order: 2;
	}
    
	#about-intro h2,
	#main-content h2 {
		font-size: 2rem;
	}
    
	.intro-text {
		font-size: 1.1rem;
		padding: 1rem;
	}
    
	.values-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
    
	.value-item {
		padding: 1.5rem;
	}
}

/* ========================= [5] Home section containers ========================= */
@media (max-width: 768px) {
	.education-section,
	.experience-section {
		padding: 1rem;
		margin-bottom: 1rem;
	}
    
	#main-content .about-text h3 {
		font-size: 1.2rem;
		margin-top: 1.5rem;
		margin-bottom: 0.75rem;
	}
    
	#main-content .quick-facts li {
		font-size: 0.85rem;
		padding: 0.4rem 0;
		margin-bottom: 0.6rem;
	}
}

@media (max-width: 480px) {
	.education-section,
	.experience-section {
		padding: 0.75rem;
		margin-bottom: 0.75rem;
	}
    
	/* Ensure sidebar sections expand to full width on small phones */
	.about-sidebar,
	.about-sidebar .quick-facts,
	.about-sidebar .contact-cta {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
    
	#main-content .about-text h3 {
		font-size: 1rem;
		margin-top: 1rem;
		margin-bottom: 0.5rem;
	}
    
	#main-content .quick-facts li {
		font-size: 0.8rem;
		padding: 0.3rem 0;
		margin-bottom: 0.5rem;
	}
}

/* ----- [5.1] Extra small home containers (<=375px) ----- */
@media (max-width: 375px) {
	.education-section,
	.experience-section {
		padding: 0.5rem;
		margin-bottom: 0.5rem;
	}
    
	#main-content .about-text h3 {
		font-size: 0.9rem;
		margin-top: 0.75rem;
		margin-bottom: 0.375rem;
	}
    
	#main-content .quick-facts li {
		font-size: 0.75rem;
		padding: 0.25rem 0;
		margin-bottom: 0.375rem;
		line-height: 1.3;
	}
}

/* ========================= [6] Timeline ========================= */
@media (max-width: 768px) {
	#timeline-content {
		padding: 1rem 0.5rem;
	}
    
	.timeline {
		padding: 1rem 0;
	}
    
	.timeline::before {
		display: none; /* Disable the continuous line on mobile too */
	}
    
	/* Mobile line segments */
	.timeline-item:not(:last-child)::after {
		left: 30px; /* Align with mobile timeline icons */
		top: 80px;
		height: calc(100% + 1rem);
	}
    
	.timeline-item {
		flex-direction: row !important;
	}
    
	.timeline-item:nth-child(even) {
		flex-direction: row !important;
	}
    
	.timeline-marker {
		width: 60px;
		margin-left: 0;
	}
    
	.timeline-content {
		margin-left: 2rem;
		margin-right: 0;
	}
    
	.timeline-item:nth-child(odd) .timeline-content::before,
	.timeline-item:nth-child(even) .timeline-content::before {
		left: -15px;
		right: auto;
		border-right: 15px solid var(--card-background);
		border-left: none;
	}
    
	.timeline-content {
		padding: 1.5rem;
	}
    
	.summary-card {
		padding: 2rem;
	}
    
	.insights-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ========================= [7] Documentation ========================= */
@media (max-width: 768px) {
	.documentation-grid {
		gap: 1.5rem;
	}
    
	.doc-category {
		padding: 1.5rem;
	}
    
	.doc-header {
		flex-direction: column;
		text-align: center;
		gap: 0.8rem;
	}
    
	.resources-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
    
	.resource-item {
		padding: 1.5rem;
	}
    
	.notes-card {
		padding: 2rem;
	}
    
	.philosophy-points {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ========================= [8] Main layout & section cards ========================= */
@media (max-width: 768px) {
	/* Force strict mobile container constraints */
	.container {
		max-width: 100vw;
		width: 100%;
		padding: 1rem;
		margin: 0;
		box-sizing: border-box;
		overflow-x: hidden;
	}
    
	/* Strict mobile content grid */
	.content-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0;
	}
    
	.left-column, .right-column {
		gap: 1rem;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		margin: 0;
		padding: 0;
	}
    
	/* Mobile-first section cards */
	.section-card {
		padding: 0.8rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 0 0 1rem 0;
		word-wrap: break-word;
		overflow-wrap: break-word;
		overflow-x: hidden;
	}
    
	.section-card h3 {
		font-size: 1rem;
		margin-bottom: 0.6rem;
		word-wrap: break-word;
	}
    
	.section-card p {
		font-size: 0.85rem;
		line-height: 1.4;
		margin-bottom: 0.6rem;
		word-wrap: break-word;
	}
    
	/* Force all multi-column layouts to single column */
	.facts-grid,
	.about-content,
	.values-grid,
	.insights-grid {
		grid-template-columns: 1fr !important;
		gap: 1rem;
		width: 100%;
		max-width: 100%;
	}
    
	/* Skills grid mobile optimization */
	.skills-grid {
		grid-template-rows: auto !important;
		grid-auto-flow: row !important;
		grid-template-columns: 1fr !important;
		gap: 0.5rem;
		padding: 0.5rem;
		width: 100%;
		max-width: 100%;
	}
    
	.skill-item {
		width: 100% !important;
		max-width: 100% !important;
		text-align: center;
		box-sizing: border-box;
		padding: 0.5rem;
		margin: 0;
	}
    
	/* Mobile-first item containers */
	.education-item,
	.experience-item,
	.project-item {
		width: 100%;
		max-width: 100%;
		/* padding removed to allow global override */
		margin: 0;
		box-sizing: border-box;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
    
	.education-item h4,
	.experience-item h4,
	.project-item h4 {
		font-size: 1rem;
		margin-bottom: 0.5rem;
		word-wrap: break-word;
	}
    
	.education-item p,
	.experience-item p,
	.project-item p {
		font-size: 0.85rem;
		margin-bottom: 0.5rem;
		word-wrap: break-word;
	}
    
	/* Lists in items */
	.achievements,
	.education-item ul,
	.experience-item ul {
		padding-left: 1rem;
		margin: 0.5rem 0;
	}
    
	.achievements li,
	.education-item li,
	.experience-item li {
		font-size: 0.8rem;
		margin-bottom: 0.25rem;
		word-wrap: break-word;
	}
    
	/* Container adjustments for tablets */
	.container {
		padding: 1.5rem;
		margin: 0 auto;
		width: 100%;
		max-width: 100%;
	}
    
	/* CTA section tablet optimization */
	.cta-full-width {
		padding: 4rem 0;
	}
    
	.cta-box h2 {
		font-size: 2.4rem;
	}
    
	/* Intro text tablet adjustment */
	#intro .intro-text {
		font-size: 1.1rem;
		padding: 1.25rem;
		width: 100%;
		box-sizing: border-box;
	}
    
	/* Reduce header sizes on tablet */
	#intro h2 {
		font-size: 1.6rem !important;
	}
    
	#intro .intro-text {
		font-size: 1rem !important;
		padding: 1rem !important;
	}
    
	.quick-facts h4, .contact-cta h4 {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	/* Ultra-strict mobile container */
	.container {
		max-width: 100vw;
		width: 100vw;
		padding: 0.75rem;
		margin: 0;
		overflow-x: hidden;
	}
    
	/* Reduce section padding on mobile */
	section {
		padding: 1rem 0;
	}
    
	/* Ultra-compact content grid */
	.content-grid {
		gap: 0.75rem;
		padding: 0;
		margin: 0;
	}
    
	.left-column, .right-column {
		gap: 0.75rem;
	}
    
	/* Ultra-compact section cards */
	.section-card {
		padding: 0.75rem;
		margin: 0 0 0.75rem 0;
		border-radius: 8px;
	}
    
	.section-card h3 {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}
    
	.section-card p {
		font-size: 0.85rem;
		line-height: 1.4;
		margin-bottom: 0.5rem;
	}
    
	/* Force ultra-compact item layouts */
	.education-item,
	.experience-item,
	.project-item {
		padding: 0.5rem 0;
		border-bottom: 1px solid rgba(192, 148, 94, 0.1);
	}
    
	.education-item:last-child,
	.experience-item:last-child,
	.project-item:last-child {
		border-bottom: none;
	}
    
	.education-item h4,
	.experience-item h4,
	.project-item h4 {
		font-size: 0.9rem;
		margin-bottom: 0.25rem;
	}
    
	.education-item p,
	.experience-item p,
	.project-item p {
		font-size: 0.8rem;
		margin-bottom: 0.25rem;
	}
    
	/* Compact lists */
	.achievements,
	.education-item ul,
	.experience-item ul {
		padding-left: 0.75rem;
		margin: 0.25rem 0;
	}
    
	.achievements li,
	.education-item li,
	.experience-item li {
		font-size: 0.75rem;
		margin-bottom: 0.125rem;
	}
    
	/* Mobile intro adjustments */
	#intro {
		padding: 1rem 0;
	}
    
	#intro h2 {
		font-size: 0.9rem !important; /* Much smaller for mobile */
		margin-bottom: 0.6rem;
	}

	#intro .intro-text {
		font-size: 0.65rem !important; /* Even smaller than before */
		padding: 0.4rem !important;
		margin: 0;
		line-height: 1.2;
	}
    
	/* Smaller sidebar headers for mobile */
	.quick-facts h4, .contact-cta h4 {
		font-size: 0.9rem;
	}
    
	#main-content .about-text h3 {
		font-size: 0.95rem;
		margin-top: 1rem;
		margin-bottom: 0.5rem;
	}
    
	/* CTA section mobile optimization */
	.cta-full-width {
		padding: 2rem 0;
		margin: 1rem 0 0 0;
	}
    
	.cta-box {
		margin: 0;
		padding: 1.5rem 0.75rem;
		max-width: 100%;
	}
    
	.cta-box h2 {
		font-size: 1.6rem;
		margin-bottom: 0.75rem;
	}
    
	.cta-box p {
		font-size: 0.9rem;
		margin-bottom: 1rem;
	}
    
	.cta-button {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
	}
	section {
		padding-top: 20px;
		padding-bottom: 20px;
	}
    
	/* Main heading adjustments */
	h2 {
		font-size: 1.8rem;
		margin-bottom: 1rem;
	}
    
	/* Intro text mobile optimization */
	#intro .intro-text {
		font-size: 1rem;
		padding: 1rem;
		margin-bottom: 1.5rem;
		line-height: 1.5;
	}
    
	/* CTA section mobile fixes */
	.cta-full-width {
		padding: 3rem 0;
	}
    
	.cta-box {
		padding: 0 1rem;
	}
    
	.cta-box h2 {
		font-size: 2rem;
		margin-bottom: 1rem;
	}
    
	.cta-box p {
		font-size: 1rem;
		margin: 1rem auto 2rem auto;
	}
    
	.cta-button {
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
		gap: 0.5rem;
	}
    
	/* Section cards mobile optimization */
	.section-card {
		padding: 1rem;
		margin-bottom: 1rem;
	}
    
	.section-card h3 {
		font-size: 1.1rem;
		margin-bottom: 0.8rem;
	}
    
	.section-card p {
		font-size: 0.9rem;
		line-height: 1.4;
	}
    
	/* Education and experience items */
	.education-item, .experience-item, .project-item {
		padding: 0.8rem 0;
		border-bottom: 1px solid rgba(192, 148, 94, 0.1);
	}
    
	.education-item:last-child,
	.experience-item:last-child,
	.project-item:last-child {
		border-bottom: none;
	}
    
	/* Mobile card layouts - force single column */
	.facts-grid {
		grid-template-columns: 1fr !important;
		gap: 0.5rem;
	}
    
	.about-content {
		grid-template-columns: 1fr !important;
		gap: 1.5rem;
	}
    
	.values-grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem;
	}
    
	.insights-grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem;
	}
    
	/* Skills grid mobile optimization */
	.skills-grid {
		grid-template-rows: auto !important;
		grid-auto-flow: row !important;
		grid-template-columns: 1fr !important;
		gap: 0.8rem;
		padding: 1rem;
	}
    
	.skill-item {
		width: 100% !important;
		max-width: none !important;
		text-align: center;
	}
}

/* ========================= [9] Extra-small screens (<=375px) ========================= */
@media (max-width: 375px) {
	/* Maximum mobile constraints */
	.container {
		max-width: 100vw;
		width: 100vw;
		padding: 0.5rem;
		margin: 0;
		overflow-x: hidden;
	}
    
	/* Minimal spacing content grid */
	.content-grid {
		gap: 0.5rem;
		padding: 0;
		margin: 0;
	}
    
	.left-column, .right-column {
		gap: 0.5rem;
	}
    
	/* Minimal section cards */
	.section-card {
		padding: 0.5rem;
		margin: 0 0 0.5rem 0;
		border-radius: 6px;
	}
    
	.section-card h3 {
		font-size: 0.9rem;
		margin-bottom: 0.375rem;
	}
    
	.section-card p {
		font-size: 0.8rem;
		line-height: 1.3;
		margin-bottom: 0.375rem;
	}
    
	/* Minimal intro section */
	#intro {
		padding: 0.75rem 0;
	}
	  #intro h2 {
		font-size: 0.8rem !important; /* Even smaller for extra small screens */
		margin-bottom: 0.5rem;
	}

	#intro .intro-text {
		font-size: 0.6rem !important; /* Very compact */
		padding: 0.3rem !important;
		margin: 0;
		line-height: 1.1;
	}
    
	/* Extra small sidebar headers */
	.quick-facts h4, .contact-cta h4 {
		font-size: 0.8rem;
	}
    
	#main-content .about-text h3 {
		font-size: 0.85rem;
		margin-top: 0.75rem;
		margin-bottom: 0.375rem;
	}
    
	/* Minimal CTA section */
	.cta-full-width {
		padding: 1.5rem 0;
		margin: 0.75rem 0 0 0;
	}
    
	.cta-box {
		margin: 0;
		padding: 1rem 0.5rem;
		max-width: 100%;
	}
    
	.cta-box h2 {
		font-size: 1.4rem;
		margin-bottom: 0.5rem;
	}
    
	.cta-box p {
		font-size: 0.85rem;
		margin-bottom: 0.75rem;
	}
    
	.cta-button {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
	}
    
	/* Force all multi-column layouts to single column on very small screens */
	.facts-grid,
	.about-content,
	.values-grid,
	.insights-grid,
	.skills-grid {
		grid-template-columns: 1fr !important;
		gap: 0.5rem !important;
		padding: 0 !important;
		margin: 0 !important;
	}
    
	/* Ensure cards don't break layout on very small screens */
	.card,
	.section-card,
	.value-item,
	.insight-item,
	.fact-item {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 0 0 0.5rem 0 !important;
		padding: 0.5rem !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
		overflow-x: hidden !important;
	}
    
	/* Skills specific mobile fixes */
	.skill-item {
		font-size: 0.75rem !important;
		padding: 0.3rem 0.5rem !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		margin: 0 !important;
	}
    
	/* Minimal item spacing */
	.education-item,
	.experience-item,
	.project-item {
		padding: 0.375rem 0;
	}
    
	.education-item h4,
	.experience-item h4,
	.project-item h4 {
		font-size: 0.85rem;
		margin-bottom: 0.2rem;
	}
    
	.education-item p,
	.experience-item p,
	.project-item p {
		font-size: 0.75rem;
		margin-bottom: 0.2rem;
	}
    
	.achievements li,
	.education-item li,
	.experience-item li {
		font-size: 0.7rem;
		margin-bottom: 0.1rem;
	}
}

/* ========================= [10] Landscape phone fixes ========================= */
@media (max-width: 768px) and (orientation: landscape) {
	.cta-full-width {
		padding: 2rem 0;
	}
    
	.cta-box h2 {
		font-size: 1.8rem;
		margin-bottom: 0.5rem;
	}
    
	.cta-box p {
		margin: 0.5rem auto 1.5rem auto;
	}
}

/* ========================= [11] Touch targets & polish ========================= */
@media (max-width: 768px) {
	/* Improve touch targets */
	button, .cta-button, a {
		min-height: 44px;
		min-width: 44px;
		touch-action: manipulation;
	}
    
	/* Prevent text size adjustments on orientation change */
	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}
    
	/* Smooth scrolling for mobile */
	body {
		-webkit-overflow-scrolling: touch;
	}
    
	/* Improve tap highlights */
	a, button {
		-webkit-tap-highlight-color: rgba(192, 148, 94, 0.2);
	}
}

/* ========================= [12] Sidebar cards & education lists ========================= */
.quick-facts, .contact-cta {
	padding: 0.8rem;
	margin-bottom: 1rem;
}

.quick-facts li {
	font-size: 0.8rem;
	padding: 0.4rem 0;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

/* ----- [12.1] Education section (<=768px) ----- */
.education-section {
	padding: 1rem;
	margin-bottom: 1rem;
}

.education-item h4 {
	font-size: 0.95rem;
	margin-bottom: 0.4rem;
}

.education-item p,
.education-item .institution,
.education-item .date {
	font-size: 0.8rem;
	margin-bottom: 0.3rem;
}

/* ----- [12.2] Achievements list (<=768px) ----- */
.achievements li {
	font-size: 0.8rem;
	margin-bottom: 0.3rem;
}

/* ----- [12.3] Small mobile sidebar/content (<=480px) ----- */
.quick-facts, .contact-cta {
	padding: 0.6rem;
	margin-bottom: 0.8rem;
}

.quick-facts li {
	font-size: 0.75rem;
	padding: 0.3rem 0;
	margin-bottom: 0.4rem;
	line-height: 1.2;
}

.education-section {
	padding: 1rem;
	margin-bottom: 0.8rem;
}

.education-item h4 {
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

.education-item p,
.education-item .institution,
.education-item .date {
	font-size: 0.75rem;
	margin-bottom: 0.25rem;
}

	/* Maintain consistent achievements font-size */
	.achievements li {
	font-size: 0.8rem;
	margin-bottom: 0.2rem;
}

/* ----- [12.4] Ultra-compact cards (<=375px) ----- */
.quick-facts, .contact-cta {
	padding: 0.5rem;
	margin-bottom: 0.6rem;
}

.quick-facts li {
	font-size: 0.7rem;
	padding: 0.25rem 0;
	margin-bottom: 0.3rem;
	line-height: 1.2;
}

.education-section {
	padding: 0.5rem;
	margin-bottom: 0.6rem;
}

.education-item h4 {
	font-size: 0.85rem;
	margin-bottom: 0.25rem;
}

.education-item p,
.education-item .institution,
.education-item .date {
	font-size: 0.7rem;
	margin-bottom: 0.2rem;
}

	/* Override ultra-compact achievements font-size */
	.achievements li {
	font-size: 0.8rem;
	margin-bottom: 0.15rem;
}

/* ========================= [13] Header typography scaling ========================= */
@media (max-width: 768px) {
	.header-info .logo {
		font-size: 1.3rem; /* Keep brand prominent */
	}
    
	.header-info .tagline {
		font-size: 0.8rem;
		line-height: 1.2;
	}
}

@media (max-width: 480px) {
	/* Smaller mobile header optimization */
	.header-info .logo {
		font-size: 1.2rem; /* Maintain brand visibility */
	}
    
	.header-info .tagline {
		font-size: 0.75rem;
		line-height: 1.1;
	}
}

@media (max-width: 375px) {
	/* Extra small mobile header optimization */
	.header-info .logo {
		font-size: 1.1rem; /* Still keep brand readable */
	}
    
	.header-info .tagline {
		font-size: 0.7rem;
		line-height: 1.1;
	}
}

/* ----- [13.1] Tagline wrapping behavior (<=768px) ----- */
@media (max-width: 768px) {
	.header-info .tagline {
		white-space: normal;
		overflow: visible; 
		text-overflow: clip;
		max-width: none;
	}
}

/* ========================= [14] Intro: critical overrides ========================= */
/* These styles must take precedence over all other intro styles */

@media (max-width: 480px) {
	#intro h2 {
		font-size: 1.8rem !important;
		margin-bottom: 1rem !important;
		color: var(--primary-color) !important;
		font-weight: 700 !important;
	}

	#intro .intro-text {
		font-size: 1.1rem !important;
		padding: 1rem !important;
		margin: 0 !important;
		line-height: 1.5 !important;
		background: linear-gradient(135deg, rgba(192, 148, 94, 0.1), rgba(106, 44, 60, 0.1)) !important;
		border-radius: 12px !important;
		border-left: 4px solid var(--accent-color) !important;
	}
}

@media (max-width: 375px) {
	#intro h2 {
		font-size: 1.6rem !important;
		margin-bottom: 0.9rem !important;
	}

	#intro .intro-text {
		font-size: 1rem !important;
		padding: 0.9rem !important;
		line-height: 1.4 !important;
	}
}

/* ========================= [15] Cards: sizing tweaks ========================= */
/* Make cards horizontally smaller on mobile */

@media (max-width: 480px) {
	/* Override intro container padding to allow card sizing */
	#intro.container {
		padding: 0.75rem 0 !important;
	}
    
	/* Intro text card sizing */
	#intro .intro-text {
		margin: 0 0.75rem !important;
		max-width: calc(100vw - 1.5rem) !important;
		box-sizing: border-box !important;
	}
    
	/* Sidebar cards sizing */
	.quick-facts, .contact-cta {
		padding: 1rem 0.8rem !important;
		margin: 0 0.5rem 1rem 0.5rem !important;
		max-width: calc(100vw - 3rem) !important;
		box-sizing: border-box !important;
	}
    
	.about-sidebar {
		padding: 0 !important;
		margin: 0 !important;
	}
    
	.about-content {
		padding: 0 !important;
		margin: 0 !important;
	}
}

@media (max-width: 375px) {
	/* Override intro container padding for smaller screens */
	#intro.container {
		padding: 0.75rem 0 !important;
	}
    
	/* Intro text card sizing for smaller screens */
	#intro .intro-text {
		margin: 0 0.5rem !important;
		max-width: calc(100vw - 1rem) !important;
	}
    
	/* Sidebar cards sizing for smaller screens */
	.quick-facts, .contact-cta {
		padding: 0.8rem 0.6rem !important;
		margin: 0 0.3rem 1rem 0.3rem !important;
		max-width: calc(100vw - 2rem) !important;
	}
}

/* ========================= [16] Component: Header search ========================= */
@media (max-width: 768px) {
	.header-search {
		position: static;
	}
    
	.search-input-container {
		position: fixed;
		top: 80px;
		left: 1rem;
		right: 1rem;
		width: auto;
		transform: translateY(-10px);
	}
    
	.search-input-container.active {
		transform: translateY(0);
	}
}

/* ========================= [16] Component: Buttons ========================= */
@media (max-width: 768px) {
	.cta-button {
		padding: 0.9rem 1.8rem;
		font-size: 1rem;
		gap: 0.6rem;
	}
    
	.cta-button svg {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 480px) {
	.cta-button {
		width: 100%;
		max-width: 280px;
		justify-content: center;
		padding: 1rem 1.5rem;
		font-size: 0.95rem;
	}
    
	.cta-button svg {
		width: 16px;
		height: 16px;
	}
    
	.cta-button-sidebar {
		padding: 0.7rem 1.2rem;
		font-size: 0.9rem;
		text-align: center;
		display: block;
	}
}

/* ========================= [16] Component: Posts ========================= */
@media (max-width: 768px) {
	.post-content { padding: 1rem; }
	.post-title { font-size: 2rem; }
	.post-meta { flex-direction: column; gap: 0.75rem; }
	.post-tags { flex-direction: column; align-items: flex-start; }
	.post-body { font-size: 1rem; }
}

/* ========================= [17] Page: 404 ========================= */
@media (max-width: 768px) {
	#error-404 .error-code { font-size: 4rem; }
	#error-404 .error-text h2 { font-size: 1.5rem; }
	#error-404 .philosophical-jokes { flex-direction: column; gap: 1rem; align-items: center; }
	#error-404 .joke-card.vertical { min-width: auto; max-width: 100%; width: 100%; }
	#error-404 .error-actions { flex-direction: column; align-items: center; }
	#error-404 .error-actions .cta-button { width: 100%; max-width: 200px; }
}

/* ========================= [17] Page: Translating ========================= */
@media (max-width: 768px) {
	#translating-page .translating-text h1 { font-size: 2rem; }
	#translating-page .translating-actions { flex-direction: column; align-items: center; }
	#translating-page .translating-actions .cta-button { width: 100%; max-width: 280px; }
	#translating-page .translating-options { padding: 1.5rem; }
}

