/* ============================================
   THEME CONFIGURATION - Change colors here
   ============================================ */
:root {
  --primary: #ff6b00;        /* Main brand color (Syracuse Orange) */
  --primary-dark: #cc5500;   /* Darker shade for hover states */
  --primary-light: #ff8c33;  /* Lighter shade for backgrounds */
  --primary-bg: #fff3e6;     /* Very light background with primary tint */
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-page {
  animation: slideUp 0.5s ease-out;
}

.post-page-content {
  animation: slideUp 0.5s ease-out 0.1s both;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.75rem 0;
  margin-bottom: 0;
  width: 100%;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

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

.nav-links a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Top Section - Hero + About side by side */
.top-section {
  display: flex;
  gap: 1rem;
  padding: 1rem 5%;
  margin-bottom: 1rem;
  align-items: flex-start;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  flex-shrink: 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.profile-photo {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  flex-shrink: 0;
  object-fit: cover;
}

.hero-content img {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.hero-text .tagline {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px;
  color: #fff;
  transition: all 0.2s;
}

.social-links a:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Top Cards Row - Hero and Testimonials side by side */
.top-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.hero-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.hero-card .hero {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-card .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-card .profile-photos {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.hero-card .profile-photos .profile-photo {
  width: 156px !important;
  height: 156px !important;
  max-width: 156px !important;
  max-height: 156px !important;
}

.hero-card .profile-photo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  border-width: 4px;
}

.hero-card .hero-text {
  text-align: center;
}

.hero-card .hero-text h1 {
  font-size: 1.5rem;
  color: #fff;
}

.hero-card .hero-text .tagline {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card .hero-blurb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-card .social-links a {
  width: 40px;
  height: 40px;
}

.hero-card .social-links svg {
  width: 24px;
  height: 24px;
}

.testimonials-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.testimonials-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-align: left;
}

.accordion-header:hover {
  background: #eee;
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 1rem;
  background: #fff;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-content p {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 1rem 0;
  text-align: center;
}

.btn-testimonials {
  display: inline-block;
  text-align: center;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-testimonials:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.testimonial-item {
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.testimonial-item.collapsible {
  display: none;
}

.testimonial-item.collapsible.show {
  display: block;
}

.testimonial-stars {
  color: #f1c40f;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}

.testimonial-quote {
  font-size: 0.75rem;
  color: #555;
  margin: 0 0 0.25rem 0;
  font-style: italic;
  line-height: 1.3;
}

.testimonial-author {
  font-size: 0.65rem;
  color: #888;
}

.show-more-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #555;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
}

.show-more-btn:hover {
  background: #e0e0e0;
}

.btn-testimonials {
  display: inline-block;
  text-align: center;
  padding: 0.4rem 0.8rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}

.btn-testimonials:hover {
  background: #e0e0e0;
}

/* About Section */
.about-section {
  margin-bottom: 1rem;
}

.about-section .section-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.about-section .about-text {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Journey Section */
.journey-section {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.journey-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* Generic zoomable styles for all images */
.zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.zoomed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  transform: none !important;
  z-index: 10000 !important;
  cursor: zoom-out !important;
  object-fit: contain !important;
  background: rgba(0, 0, 0, 0.9) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.journey-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Sections */
section {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 100%;
}

.section-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* About Section */
.about-text {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.about-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.about-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.about-value {
  font-weight: 600;
  color: #2c3e50;
}

/* Skills Section - Base styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  max-width: 100%;
}

/* Tablet - 3 columns */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small tablet - 2 columns */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 3 columns */
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-circle {
  position: relative;
  width: 120px;
  height: 120px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: auto;
}

.skill-circle svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.skill-circle-bg {
  fill: none;
  stroke: #ecf0f1;
  stroke-width: 8;
}

.skill-circle-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease;
}

.skill-circle-android .skill-circle-fill { stroke: #3DDC84; }
.skill-circle-kotlin .skill-circle-fill { stroke: #7F52FF; }
.skill-circle-compose .skill-circle-fill { stroke: #4285F4; }
.skill-circle-backend .skill-circle-fill { stroke: #FF6B35; }
.skill-circle-design .skill-circle-fill { stroke: #E91E63; }
.skill-circle-leadership .skill-circle-fill { stroke: #00BCD4; }

.skill-circle-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  place-content: center;
  gap: 2px;
}

.skill-icon {
  display: inline-block;
  color: inherit;
  overflow: hidden;
  width: 20px !important;
  height: 20px !important;
}

.skill-icon svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
}

.skill-icon .material-symbols-outlined {
  display: inline-block;
  font-size: 18px !important;
  width: auto !important;
  height: auto !important;
  line-height: 1;
  overflow: visible !important;
}

.skill-icon {
  display: inline-block;
  color: inherit;
  overflow: visible !important;
  width: 24px !important;
  height: 22px !important;
}

.skill-circle-android .skill-icon { color: #3DDC84; }
.skill-circle-kotlin .skill-icon { color: #7F52FF; }
.skill-circle-compose .skill-icon { color: #4285F4; }
.skill-circle-backend .skill-icon { color: #FF6B35; }
.skill-circle-design .skill-icon { color: #E91E63; }
.skill-circle-leadership .skill-icon { color: #00BCD4; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.skill-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2c3e50;
}

.skill-name {
  font-size: 0.65rem;
  color: #666;
  text-align: center;
}

/* Tablet - 3 columns */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .skill-circle { width: 90px; height: 90px; }
  .skill-circle svg { width: 90px; height: 90px; }
  .skill-icon { width: 22px !important; height: 20px !important; }
  .skill-icon svg { width: 20px !important; height: 20px !important; }
  .skill-icon .material-symbols-outlined { font-size: 16px !important; }
  .skill-percent { font-size: 0.65rem; }
  .skill-name { font-size: 0.55rem; }
}

/* Small tablet - 2 columns */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .skill-circle { width: 80px; height: 80px; }
  .skill-circle svg { width: 80px; height: 80px; }
  .skill-icon { width: 20px !important; height: 18px !important; }
  .skill-icon svg { width: 18px !important; height: 18px !important; }
  .skill-icon .material-symbols-outlined { font-size: 14px !important; }
  .skill-percent { font-size: 0.6rem; }
  .skill-name { font-size: 0.5rem; }
}

/* Mobile - 3 columns */
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .skill-circle { width: 60px; height: 60px; }
  .skill-circle svg { width: 60px; height: 60px; }
  .skill-icon { width: 18px !important; height: 16px !important; }
  .skill-icon svg { width: 16px !important; height: 16px !important; }
  .skill-icon .material-symbols-outlined { font-size: 12px !important; }
  .skill-percent { font-size: 0.55rem; }
  .skill-name { font-size: 0.45rem; }
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width 1s ease;
}

/* Timeline / Experience */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ecf0f1;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-date {
  flex-shrink: 0;
  width: 120px;
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

.timeline-content {
  flex: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.company-icon {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.timeline-header img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.timeline-content h3 {
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline-content a {
  color: var(--primary);
  text-decoration: none;
}

.timeline-content a:hover {
  text-decoration: underline;
}

.timeline-content ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
  color: #555;
}

.timeline-content li {
  margin-bottom: 0.25rem;
  color: #555;
  font-size: 0.95rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #666;
  font-size: 0.9rem;
}

.card-desc {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.testimonial-stars {
  color: #f1c40f;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  color: #555;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-date {
  color: #888;
  font-size: 0.8rem;
}

.about-text a {
  color: var(--primary);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    padding: 0.75rem 4%;
    gap: 0.75rem;
  }
  
  .hero {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .hero-text {
    min-width: auto;
  }
  
  .hero-text h1 {
    font-size: 1.25rem;
  }
  
  .hero-text .tagline {
    font-size: 0.8rem;
  }
  
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .top-cards-row {
    grid-template-columns: 1fr;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }
  
  .about-section {
    padding: 1rem;
  }

  .about-section .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .about-section .about-text {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .about-item {
    padding: 0.75rem;
  }
  
  .about-label {
    font-size: 0.75rem;
  }
  
  .about-value {
    font-size: 0.9rem;
  }
  
  section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .timeline-date {
    width: auto;
    font-size: 0.8rem;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .company-icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
  
  .timeline-header img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
  }
  
  .timeline-content p,
  .timeline-content li {
    font-size: 0.85rem;
  }
  
  .timeline-content ul {
    margin-left: 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Blog Masonry Layout */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-caricature {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-caricature img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.featured-post {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.featured-post-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.featured-post-image {
  width: 100%;
  aspect-ratio: 21/9;
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
}

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

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-post-content {
  color: #fff;
}

.featured-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.featured-post-tags .tag {
  background: rgba(255,255,255,0.9);
  color: #333;
  font-weight: 600;
}

.featured-post-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.featured-post-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
  max-width: 600px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #e0e0e0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-time-icon {
  width: 14px;
  height: 14px;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.blog-intro {
  font-size: 1.1rem;
  color: #666;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.masonry-item.hidden {
  display: none;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tag-filter-btn {
  padding: 0.4rem 0.9rem;
  background: #f8f9fa;
  color: #666;
  border: none;
  border-radius: 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-filter-btn.active {
  background: var(--primary);
  color: #fff;
}

.post-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.post-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-card-placeholder svg {
  color: rgba(255,255,255,0.7);
}

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

.post-card-content h2 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
}

.post-card-meta time {
  color: #888;
}

.post-card-meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #888;
  font-size: 0.8rem;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-link {
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tag-link:hover {
  background: var(--primary);
  color: #fff;
}

.post-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-page-tags .tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.read-more {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.post-card:hover .read-more {
  color: var(--primary-dark);
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

/* Blog responsive */
@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-card-content {
    padding: 1rem;
  }
  
  .post-card-content h2 {
    font-size: 1rem;
  }

  .featured-post-image {
    aspect-ratio: 16/10;
  }

  .featured-post-overlay {
    padding: 1.5rem;
  }

  .featured-post-content h2 {
    font-size: 1.5rem;
  }

  .featured-post-description {
    font-size: 0.95rem;
  }

  .featured-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Blog Post Page */
.post-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 5%;
}

.post-page-with-toc {
  position: relative;
}

.post-page-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.post-page-main {
  min-width: 0;
}

.post-toc-sidebar {
  position: sticky;
  top: 100px;
}

.post-toc {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-toc-title {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.post-toc-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.post-toc-list a:hover,
.post-toc-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.post-toc-list .toc-h3 {
  padding-left: 2rem;
  font-size: 0.85rem;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.related-posts-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

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

.related-post-card {
  display: block;
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.related-post-card:hover {
  background: var(--primary-bg);
  transform: translateY(-4px);
}

.related-post-card h4 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

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

.related-post-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .post-page-layout {
    grid-template-columns: 1fr;
  }

  .post-toc-sidebar {
    position: static;
    order: -1;
  }

  .post-toc {
    padding: 1rem;
  }
}

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

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-to-blog:hover {
  color: var(--primary);
}

.post-page-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.post-page-meta .separator {
  color: #ccc;
}

.post-category {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.post-page-hero {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  max-width: 100%;
}

.post-page-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.post-page-hero-placeholder {
  aspect-ratio: 2/1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  color: rgba(255,255,255,0.5);
}

.post-page-hero-caricature img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.post-page-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  line-height: 1.8;
  color: #333;
}

.post-page-content h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.post-page-content h3 {
  color: #2c3e50;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

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

.post-page-content ul,
.post-page-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

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

.post-page-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-page-content a:hover {
  border-bottom-color: var(--primary);
}

.post-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.post-page-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e74c3c;
}

.post-page-content pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-page-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #666;
  font-style: italic;
}

.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--primary);
}

.comments-title {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

#comments {
  min-height: 100px;
}

.post-page-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-label {
  color: #666;
  font-size: 0.9rem;
}

.share-links {
  display: flex;
  gap: 0.75rem;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.share-link.twitter {
  background: #1da1f2;
}

.share-link.linkedin {
  background: #0077b5;
}

.share-link.email {
  background: #666;
}

.back-to-blog-bottom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}

.back-to-blog-bottom:hover {
  gap: 0.75rem;
}

/* Post page responsive */
@media (max-width: 768px) {
  .post-page-header h1 {
    font-size: 1.75rem;
  }
  
  .post-page-content {
    padding: 1.5rem;
  }
  
  .post-page-content h2 {
    font-size: 1.25rem;
  }
  
  .share-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
