/* 
   Ko-Oz Education & Migration - Main Stylesheet
   Refined Design System (Clean, Professional, Card-Based)
*/

:root {
  /* Color Palette - Updated for 'Clean & Premium' Look */
  --primary-color: #003B6F;
  /* Deep Royal Blue (Trustworthy) */
  --primary-bright: #0056b3;
  /* Brighter Blue for accents/buttons */
  --secondary-color: #E21B23;
  /* Deep Red (Contrast/Highlights - similar to reference) */
  --secondary-hover: #b0151b;

  --bg-color: #FFFFFF;
  /* Pure White mainly */
  --bg-light: #F8F9FA;
  /* Very light gray for section backgrounds */

  --text-main: #111111;
  /* Sharp Black */
  --text-medium: #444444;
  --text-light: #767676;
  /* Softer gray for generic text */
  --white: #ffffff;

  --border-color: #E5E5E5;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 100px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  /* Slightly softer */
  --radius-lg: 20px;
  /* Modern card radius */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  /* Clean Korean font */
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utilities */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: var(--spacing-xl) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-main);
  /* Shifted to dark gray/black for main headers */
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  /* Tighter heading tracking */
}

h2.section-title {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-lg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  /* More squared for professional look, or slight radius */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2.5rem;
  /* Larger touch target */
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-bright);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: white;
}

.btn-outline-dark:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eee;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  /* Softer subtext */
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  padding: 5px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  /* Fixed height for clean banner look */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 80px;
}

/* Overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Banner Card System (Replacement for simple grid services) */
/* Inspired by reference: Wide cards, solid colors or distinct sections */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 Columns by default */
  gap: var(--spacing-lg);
}

.banner-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  width: 100%;
  /* Tall prominent cards */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Text at bottom */
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  /* 이미지 어둡게 처리 */
  background-color: rgba(0, 0, 0, 0.5);
  /* 배경색을 깔아줘야 글씨가 잘 보임 */
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  z-index: 1;
}

.banner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: white;
}

.banner-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.banner-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  /* Ensure white text on cards */
}

.banner-text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.banner-link {
  display: inline-block;
  padding: 8px 0;
  font-weight: 600;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s;
}

.banner-link:hover {
  border-color: white;
}

/* Solid Color Variants for Cards if image fails or for variety */
.banner-card.bg-blue {
  background-color: var(--primary-color);
}

.banner-card.bg-red {
  background-color: var(--secondary-color);
}


/* Grid Utility Classes */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* Principles Horizontal Circle Layout */
.principles-circle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0;
  flex-wrap: wrap;
  /* Ensure stacking on smaller screens */
}

.principle-circle {
  position: relative;
  /* Changed from absolute */
  width: 280px;
  height: 280px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  transition: transform 0.3s ease;
  z-index: 1;
}

.principle-circle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.principle-circle i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.principle-circle h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

.principle-circle p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0 auto;
  max-width: 200px;
}

@media (max-width: 992px) {
  .principles-circle-wrapper {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .principles-circle-wrapper {
    flex-direction: column;
    margin-top: 40px;
  }

  .principle-circle {
    width: 260px;
    height: 260px;
  }
}


/* Footer Redesign */
.footer {
  background-color: #1a1a1a;
  /* Dark background */
  color: #999;
}

/* Consultation Bar at Top of Footer */
.consultation-bar {
  background-color: #000;
  padding: var(--spacing-lg) 0;
  color: white;
  text-align: center;
}

.consultation-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.consultation-text h3 {
  color: white;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.consultation-text p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* SNS Bar */
.footer-sns-bar {
  background-color: #222;
  padding: 15px 0;
  border-bottom: 1px solid #333;
  overflow: visible;
  /* Ensure tooltip is not clipped */
  position: relative;
  /* Context */
  z-index: 500;
}

.sns-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ccc;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.sns-item:hover {
  color: white;
}

.sns-icon {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* Utility Grids */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  background: white;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.footer-sns-bar {
  border-bottom: 1px solid #333;
  padding: 20px 0;
}

.sns-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ccc;
  transition: color 0.3s;
}

.sns-item:hover {
  color: white;
}

.sns-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.sns-item:hover .sns-icon {
  background: var(--primary-color);
}


.sns-label {
  font-size: 0.8rem;
}


/* About Us - Profile Section */
.profile-section {
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.profile-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.profile-content {
  text-align: left;
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.profile-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.profile-credentials {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.credential-badge {
  background: white;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential-badge i {
  color: var(--primary-color);
}

.profile-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-content {
    text-align: center;
  }

  .profile-credentials {
    justify-content: center;
  }
}


/* Main Footer Content */
.footer-main {
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-info p {
  margin-bottom: 10px;
}

.copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #555;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Sticky Kakao Button */
.sticky-kakao {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #FEE500;
  /* Kakao Yellow */
  color: #3C1E1E;
  /* Kakao Brown */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-kakao:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .consultation-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .consultation-content .btn {
    width: 100%;
  }

  .sns-list {
    gap: 20px;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
    display: block;
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Redesigned Footer SNS Styles */
.sns-item {
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.sns-item .sns-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.sns-item .sns-label small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.7;
}

/* Naver Blog - Green */
.sns-naver-blog:hover .sns-icon {
  background-color: #03cf5d;
  color: white;
}

.sns-naver-blog:hover .sns-label {
  color: #03cf5d;
}

/* Naver Cafe - Green (Same/Similar) */
.sns-naver-cafe:hover .sns-icon {
  background-color: #2DB400;
  color: white;
}

.sns-naver-cafe:hover .sns-label {
  color: #2DB400;
}

/* Instagram - Gradient */
.sns-instagram:hover .sns-icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}

.sns-instagram:hover .sns-label {
  color: #d6249f;
}

/* KakaoTalk - Yellow */
.sns-kakao:hover .sns-icon {
  background-color: #FEE500;
  color: #3C1E1E;
}

.sns-kakao:hover .sns-label {
  color: #FEE500;
}



/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 2000;
  height: 60px;
}

.sticky-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #555;
  border-right: 1px solid #f0f0f0;
}

.sticky-item:last-child {
  border-right: none;
}

.sticky-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.sticky-kakao-bar {
  background-color: #FEE500;
  color: #3C1E1E;
  font-weight: 600;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }

  /* Hide floating kakao button on mobile to avoid overlap/duplication */
  .sticky-kakao {
    display: none;
  }

  .footer {
    padding-bottom: 60px;
    /* Add padding for sticky bar */
  }
}

/* Social Media Hub Styles */
.social-hub-section {
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

.social-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  /* Stretch columns to equal height */
}

.social-col {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.social-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.social-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.more-link {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

.more-link:hover {
  color: var(--primary-color);
}

/* Blog List Styles */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-item {
  display: block;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #fafafa;
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  font-size: 0.8rem;
  color: #999;
}

.loading-spinner {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .social-hub-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Process Card Hover Effect */
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color) !important;
}

/* Success Page Redesign */

/* Section Backgrounds */
.section-reviews {
  background-color: #ffffff;
  padding: 80px 0;
}

.section-news {
  background-color: #f8f9fa;
  padding: 80px 0;
  border-top: 1px solid #e1e4e8;
}

/* Reviews Image */
.main-review-img {
  /*  max-width: 1000px; */
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto 50px auto;
  display: block;
}

/* Review Highlight Cards */
.review-highlights-grid {
  display: grid;
  /* Mobile First: 1 column */
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

/* Force 3 columns on tablet/desktop to ensure they are in one row */
@media (min-width: 768px) {
  .review-highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.review-highlight-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  /* More rounded as per modern card design */
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  /* Ensure sufficient height */
}

.review-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.review-content-top {
  margin-bottom: 20px;
}

.review-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  font-style: normal;
  /* Remove italic */
}

.review-text strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  /* Push to bottom */
  padding-top: 20px;
}

.review-user {
  display: flex;
  align-items: center;
}

.user-img-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #aaa;
  font-size: 1.2rem;
}

.user-name {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
}

.quote-icon-bottom {
  font-size: 3.5rem;
  color: #ffc107;
  /* Yellow color */
  opacity: 1;
  /* Full opacity */
  line-height: 1;
  margin-bottom: -10px;
  /* Align visually */
}

/* Hide old elements if any remain */
.quote-icon,
.review-title,
.review-author {
  display: none;
}

/* Blog Search Banner Button */
/* Blog Search Banner Button */
/* Blog Search Banner Button - New V2 */
.blog-search-banner-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00c73c;
  /* Naver Vibrant Green */
  color: white;
  padding: 15px 45px;
  border-radius: 100px;
  /* Perfect pill shape */
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 199, 60, 0.2);
  border: none;
}

.blog-search-banner-new:hover {
  background: #00b336;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 199, 60, 0.3);
}

.naver-icon-img {
  height: 1.5rem;
  /* Larger icon as seen in image */
  width: auto;
  object-fit: contain;
  margin-right: 15px;
  border-radius: 4px;
  vertical-align: middle;
}

/* No specific hover change needed for image */

/* News Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

/* --- 블로그 뉴스 이미지 리사이징 수정 (기존 스타일 유지) --- */

/* 1. 이미지를 감싸는 틀 (높이 고정) */
.news-thumb-box {
  width: 100%;
  height: 200px;
  /* 카드의 이미지 높이 고정 (원하는대로 조절 가능) */
  overflow: hidden;
  background-color: #f0f0f0;
  position: relative;
  border-bottom: 1px solid #eee;
}

/* 2. 실제 이미지 (비율 유지하며 꽉 채우기) */
.news-thumb {
  width: 100%;
  height: 100%;

  /* 핵심: 이미지가 찌그러지지 않고 박스를 가득 채움 (넘치는 부분은 잘림) */
  object-fit: cover;
  object-position: center;
  /* 이미지의 중앙을 보여줌 */

  display: block;
  transition: transform 0.5s ease;
  /* 부드러운 확대 효과 */
}

.news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Education Page Categories */
.cat-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.cat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* PR Course Cards */
.course-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.course-card-content {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}