/* ===================================
   NoroNest Website Styles
   Modern, Clean, Professional, Minimalist
   =================================== */

/* ===================================
   CSS Variables & Color Palette
   =================================== */

:root {
  /* Primary Colors - Customize these to match your brand */
  --primary-color: #7ea7e4;
  --primary-light: #c2d9ff;
  --secondary-color: #40514E;
  --accent-color: #c2d9ff;
  
  /* Background Colors */
  --bg-color: #f2f7ff;
  --bg-light: #ffffff;
  --bg-dark: #40514E;
  
  /* Text Colors */
  --text-color: #40514E;
  --text-light: #6B7B78;
  --text-white: #ffffff;
  
  /* Functional Colors */
  --border-color: #d0e8e5;
  --shadow-color: rgba(17, 153, 158, 0.1);
  --overlay-color: rgba(64, 81, 78, 0.7);
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 20px;
  --radius-full: 50px;
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

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

/* ===================================
   Typography
   =================================== */

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===================================
   Layout & Container
   =================================== */

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

section {
  padding: var(--section-padding);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

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

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

.btn-white {
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-color: var(--bg-light);
}

.btn-white:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--secondary-color);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-color);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
}

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.lang-btn:hover:not(.active) {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 24px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-color);
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.keyword-tag {
  background-color: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-large);
  box-shadow: 0 30px 60px var(--shadow-color);
}

.hero-floating-card {
  position: absolute;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-medium);
  box-shadow: 0 10px 40px var(--shadow-color);
  animation: float 3s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: 10%;
  left: -30px;
}

.hero-floating-card.card-2 {
  bottom: 20%;
  right: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===================================
   Section Headers
   =================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

/* ===================================
   Summary Cards Section
   =================================== */

.summary-section {
  background-color: var(--bg-light);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.summary-card {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius-large);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.summary-card .btn {
  margin-top: auto;
}

.summary-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.summary-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.summary-card-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-white);
}

.summary-card h3 {
  margin-bottom: 16px;
}

.summary-card p {
  margin-bottom: 24px;
}

/* ===================================
   Features Section
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-medium);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-color);
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--primary-color);
}

.feature-card h4 {
  margin-bottom: 12px;
}

/* ===================================
   About Section
   =================================== */

.about-section {
  background-color: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-large);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--primary-light);
  border-radius: var(--radius-large);
  z-index: -1;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: var(--bg-color);
  border-radius: var(--radius-medium);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

/* ===================================
   Team Section
   =================================== */

.team-section {
  background-color: var(--bg-color);
}

.team-category {
  margin-bottom: 60px;
}

.team-category:last-child {
  margin-bottom: 0;
}

.team-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.team-category-title h3 {
  color: var(--primary-color);
}

.team-category-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.team-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.team-card-image img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transition: var(--transition-slow);
}

.team-card:hover .team-card-image img {
  transform: scale(1.02);
}

.team-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, var(--overlay-color));
  opacity: 0;
  transition: var(--transition-normal);
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  gap: 12px;
}

.team-social a {
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.team-social a:hover {
  background-color: var(--primary-color);
}

.team-social a:hover svg {
  stroke: var(--text-white);
}

.team-social svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
}

.team-card-info {
  padding: 24px;
  text-align: center;
}

.team-card-info h4 {
  margin-bottom: 8px;
}

.team-card-info p {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.team-card-info span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===================================
   Team Member Profile Page
   =================================== */

.profile-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
}

.profile-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
}

.profile-image-wrapper {
  position: sticky;
  top: 100px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.profile-info h1 {
  margin-bottom: 12px;
}

.profile-role {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-team {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.profile-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.profile-social {
  display: flex;
  gap: 16px;
}

.profile-social a {
  width: 50px;
  height: 50px;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

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

.profile-social a:hover svg {
  stroke: var(--text-white);
}

.profile-social svg {
  width: 24px;
  height: 24px;
  stroke: var(--secondary-color);
}

.profile-skills {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.profile-skills h3 {
  margin-bottom: 20px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background-color: var(--bg-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

/* ===================================
   Services/Products Section
   =================================== */

.services-section {
  background-color: var(--bg-light);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius-large);
  align-items: center;
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateX(10px);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.service-card:nth-child(even) {
  grid-template-columns: 2fr 1fr;
}

.service-card:nth-child(even) .service-image {
  order: 2;
}

.service-image {
  position: relative;
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.service-image img {
  width: 100%;
  border-radius: var(--radius-medium);
  transition: var(--transition-slow);
}

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

.service-content h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-content h3 svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-color);
}

.service-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.service-features span {
  background-color: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
  background-color: var(--bg-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info > p {
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-color);
}

.contact-item-text h4 {
  margin-bottom: 4px;
}

.contact-item-text p {
  font-size: 1rem;
}

.contact-item-text a {
  color: var(--primary-color);
}

.contact-item-text a:hover {
  text-decoration: underline;
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.contact-social a {
  width: 50px;
  height: 50px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

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

.contact-social a:hover svg {
  stroke: var(--text-white);
}

.contact-social svg {
  width: 24px;
  height: 24px;
  stroke: var(--secondary-color);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-large);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-small);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background-color: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-light);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand .nav-logo span {
  color: var(--text-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-white);
}

.footer-links h4 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ===================================
   Scroll Reveal Animations
   =================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===================================
   Page Header (for inner pages)
   =================================== */

.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb span {
  color: var(--text-light);
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero::before {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }
  
  .hero-keywords {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 600px;
    margin: 0 auto;
    order: 1;
  }
  
  .hero-floating-card {
    display: none;
  }
  
  .summary-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .service-card,
  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .service-card:nth-child(even) .service-image {
    order: 0;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-content {
    grid-template-columns: 1fr;
  }
  
  .profile-image-wrapper {
    position: relative;
    top: 0;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-light);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(-150%);
    transition: var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .summary-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-social,
  .footer-bottom {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ===================================
   Utilities
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ===================================
   Articles Page Styles
   =================================== */

/* --- Toolbar: Search & Filter --- */
.articles-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.articles-search {
  position: relative;
  max-width: 520px;
  width: 100%;
}

.articles-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s;
}

.articles-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-color);
  outline: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(126, 167, 228, 0.08);
}

.articles-search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 24px rgba(126, 167, 228, 0.18), 0 0 0 4px rgba(126, 167, 228, 0.1);
  background: #ffffff;
}

.articles-search input:focus + svg,
.articles-search:hover svg {
  opacity: 1;
}

.articles-search input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

/* --- Filter Buttons --- */
.articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50px;
  z-index: -1;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(126, 167, 228, 0.15);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #6b9ad4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(126, 167, 228, 0.3);
  transform: translateY(-1px);
}

.filter-btn.active:hover {
  box-shadow: 0 6px 24px rgba(126, 167, 228, 0.4);
  transform: translateY(-3px);
}

/* --- Featured Article Card --- */
.articles-featured {
  margin-bottom: 48px;
}

.article-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(126, 167, 228, 0.12);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(126, 167, 228, 0.08);
}

.article-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 56px rgba(126, 167, 228, 0.2);
}

.article-featured-image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-featured-card:hover .article-featured-image img {
  transform: scale(1.06);
}

.article-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.article-featured-body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
  margin: 0;
}

.article-featured-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Badges --- */
.article-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  border-radius: 50px;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  z-index: 2;
}

/* --- Article Category Tag --- */
.article-category {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50px;
}

/* --- Meta Info (Author, Date, Read Time) --- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* --- Read More Button --- */
.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), #6b9ad4);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  width: fit-content;
  margin-top: 8px;
}

.article-read-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(126, 167, 228, 0.35);
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* --- Article Card --- */
.article-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(126, 167, 228, 0.08);
  border: 1px solid rgba(126, 167, 228, 0.06);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(126, 167, 228, 0.18);
  border-color: rgba(126, 167, 228, 0.15);
}

.article-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image img {
  transform: scale(1.08);
}

.article-card-image .article-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.7rem;
  padding: 5px 12px;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.article-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.article-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s;
  margin-top: auto;
  display: inline-block;
}

.article-card:hover .article-read-more {
  color: #5a88c4;
  transform: translateX(4px);
}

/* --- Modal --- */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.article-modal.active {
  display: flex;
}

.article-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.article-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 1100px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.article-modal-content::-webkit-scrollbar {
  width: 6px;
}

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

.article-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.article-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.article-modal-close:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: rotate(90deg);
}

.article-modal-close svg {
  color: inherit;
}

.article-modal-body {
  padding: 0 48px 48px;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Article Detail inside Modal */
.article-detail-image,
.article-detail-img {
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-top: -44px;
  height: 320px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  object-fit: cover;
  display: block;
}

.article-detail-header {
  padding-top: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 32px;
}

.article-detail-header .article-category {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-detail-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.article-detail-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #64748b;
}

.article-detail-header .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-detail-header .article-meta .article-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* ===== Article Body Typography ===== */
.article-detail-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
  font-family: 'Inter', -apple-system, sans-serif;
  word-break: break-word;
}

/* First paragraph emphasis */
.article-detail-content > p:first-child {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #1e293b;
  font-weight: 400;
}

.article-detail-content p {
  margin-bottom: 20px;
}

/* H2 headings */
.article-detail-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary-color);
  line-height: 1.3;
}

/* H3 headings - section sub-headings */
.article-detail-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--primary-light, #a8c8f0);
  line-height: 1.35;
}

/* H4 headings */
.article-detail-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
  margin: 28px 0 10px;
}

/* Lists with custom bullets */
.article-detail-content ul {
  padding-left: 0;
  margin-bottom: 20px;
  list-style: none;
}

.article-detail-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.75;
}

.article-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.7;
}

.article-detail-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-detail-content ol li {
  margin-bottom: 12px;
  line-height: 1.75;
}

/* Bold / Strong text */
.article-detail-content strong {
  color: #1a1a2e;
  font-weight: 700;
}

/* Blockquote */
.article-detail-content blockquote {
  margin: 28px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--primary-color);
  background: rgba(126, 167, 228, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

/* Links */
.article-detail-content a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-detail-content a:hover {
  color: #5a8bd4;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid var(--border-color);
}

.article-tag {
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(126, 167, 228, 0.08);
  color: var(--primary-color);
  border-radius: 50px;
  border: 1px solid rgba(126, 167, 228, 0.2);
  transition: all 0.2s;
}

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

/* Author Box at bottom of article */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(126, 167, 228, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(126, 167, 228, 0.15);
}

.article-author-box .author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.article-author-box .author-info {
  flex: 1;
}

.article-author-box .author-info .author-name {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.95rem;
}

.article-author-box .author-info .author-role {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

/* ===== Two-Column Layout: Main + Sidebar ===== */
.article-detail-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.article-detail-main {
  flex: 1;
  min-width: 0;
}

.article-detail-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  padding-top: 8px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  border-left: none !important;
  padding-left: 0 !important;
}

.sidebar-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-article:hover {
  background: rgba(126, 167, 228, 0.04);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
}

.sidebar-article:last-child {
  border-bottom: none;
}

.sidebar-article img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-article-info {
  flex: 1;
  min-width: 0;
}

.sidebar-article-category {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-article-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-meta {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ===== Full Page Article View ===== */
.page-header-compact {
  padding: 20px 0 12px;
  min-height: auto;
}

.page-header-compact .breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-current {
  color: var(--text-color);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

.article-page-section {
  padding: 0 0 60px;
}

.article-page-section > .container {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
}

.article-page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.article-page-main {
  flex: 1;
  min-width: 0;
}

.article-page-hero {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
}

.article-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border-color);
}

.article-page-header .article-category {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-family: 'Inter', -apple-system, sans-serif;
}

.article-page-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: #64748b;
}

.article-page-header .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-page-header .article-meta .article-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Sidebar - Full Page */
.article-page-sidebar {
  width: 320px;
  flex-shrink: 0;
}

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

.sidebar-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 167, 228, 0.15);
  border-color: var(--primary-light, #a8c8f0);
}

.sidebar-card img {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-card-body {
  flex: 1;
  min-width: 0;
}

.sidebar-card-category {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-card-body h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 5px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-card-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(126, 167, 228, 0.08);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.sidebar-back-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* --- Loading & Empty States --- */
.articles-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-light);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.articles-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-light);
}

.articles-empty svg {
  opacity: 0.4;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Articles Section Background --- */
.articles-section {
  padding: 48px 0 80px;
  background: var(--bg-color);
  min-height: 60vh;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .article-featured-card {
    grid-template-columns: 1fr;
  }
  .article-featured-image {
    min-height: 240px;
  }
  .article-featured-body {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .articles-toolbar {
    gap: 16px;
    margin-bottom: 32px;
  }
  .articles-search {
    max-width: 100%;
  }
  .articles-filter {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .article-featured-body h2 {
    font-size: 1.3rem;
  }
  .article-modal-content {
    width: 96%;
    max-height: 92vh;
    border-radius: 16px;
  }
  .article-modal-body {
    padding: 0 20px 24px;
  }
  .article-detail-image,
  .article-detail-img {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 200px;
  }
  .article-detail-header h1 {
    font-size: 1.35rem;
  }
  .article-detail-content {
    font-size: 1rem;
  }
  .article-detail-content h3 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
  }
  .article-author-box {
    flex-direction: column;
    text-align: center;
  }
  .article-detail-layout {
    flex-direction: column;
  }
  .article-detail-sidebar {
    width: 100%;
    position: static;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
  }
}

@media (max-width: 1024px) {
  .article-page-layout {
    flex-direction: column;
  }
  .article-page-sidebar {
    width: 100%;
  }
  .sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sidebar-sticky .sidebar-title {
    grid-column: 1 / -1;
  }
  .sidebar-sticky .sidebar-back-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .article-page-section > .container {
    max-width: 95%;
  }
  .article-page-hero {
    height: 240px;
    border-radius: 14px;
  }
  .article-page-header h1 {
    font-size: 1.5rem;
  }
  .sidebar-sticky {
    grid-template-columns: 1fr;
  }
}
