/*-----------------------------------*\
  #CSS VARIABLES - DESIGN SYSTEM
\*-----------------------------------*/

:root {
  /* Primary Colors */
  --primary-500: #4E56C0;      /* Main brand color - Indigo Blue */
  --primary-600: #3d45a8;       /* Darker shade for hover states */
  --primary-400: #6B73D9;      /* Lighter shade for backgrounds */
  --primary-300: #8A94E8;      /* Even lighter for subtle accents */
  
  /* Secondary Colors */
  --secondary-500: #9B5DE0;     /* Purple - Secondary brand color */
  --secondary-600: #7B47B8;     /* Darker purple */
  --secondary-400: #B57DF0;     /* Lighter purple */
  --secondary-300: #D78FEE;     /* Light purple accent */
  
  /* Accent Colors */
  --accent-500: #FDCFFA;       /* Pink accent */
  --accent-400: #FEE5FC;       /* Light pink for backgrounds */
  
  /* Neutral Colors */
  --neutral-900: #111111;      /* Dark backgrounds */
  --neutral-800: #181818;     /* Header/Footer */
  --neutral-700: #374151;     /* Primary text */
  --neutral-600: #6b7280;     /* Secondary text */
  --neutral-500: #9ca3af;     /* Tertiary text */
  --neutral-100: #f8f9fa;     /* Light backgrounds */
  --neutral-50: #ffffff;      /* White */
  
  /* Semantic Colors */
  --success: #10b981;          /* Success messages */
  --error: #ef4444;            /* Error states */
  --warning: #f59e0b;         /* Warning states */
  --info: #4E56C0;            /* Info messages */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4E56C0, #9B5DE0);
  --gradient-extended: linear-gradient(135deg, #4E56C0, #9B5DE0, #D78FEE);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.08));
  --gradient-dark: linear-gradient(135deg, #181818, #111);
  --gradient-hr: linear-gradient(to right, #4E56C0, #9B5DE0, #D78FEE, #FDCFFA);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, rgba(253, 207, 250, 0.03) 100%);
  background-attachment: fixed;
  font-size: 1.6rem;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}


hr.gradient {
  border: 0; 
  height: 4px; 
  background: var(--gradient-hr); 
  position:sticky;
  top: 88px;
  left: 0;
  width: 100%;
  z-index: 10;
}

/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0 auto 1.25rem;
  max-width: 700px;
}

.hero-description .brand-name {
  color: var(--primary-500);
  font-weight: 700;
}

.hero-description .free-badge {
  color: var(--primary-500);
  font-weight: 700;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 17px;
  color: var(--neutral-600);
  font-weight: 500;
}

.hero-feature-icon {
  flex-shrink: 0;
}

.hero-feature-icon.icon-instant {
  color: #F59E0B; /* Amber/Orange for energy */
}

.hero-feature-icon.icon-styles {
  color: #9B5DE0; /* Purple to match brand */
}

.hero-feature-icon.icon-copy {
  color: #10B981; /* Green for success/action */
}

/* Desktop - Ensure title stays on one line */
@media (min-width: 769px) {
  .hero-title {
    white-space: nowrap;
    font-size: clamp(2.25rem, 3.5vw, 2.75rem);
  }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem 1rem;
    margin: 1.5rem auto;
  }

  .hero-title {
    margin-bottom: 0.75rem;
    white-space: normal;
    font-size: calc(clamp(2rem, 4vw, 2.75rem) + 1.5px);
  }

  .hero-description {
    margin-bottom: 1rem;
  }

  .hero-features {
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.25rem 0.75rem;
    margin: 1rem auto;
  }

  .hero-title {
    white-space: normal;
    font-size: calc(clamp(2rem, 4vw, 2.75rem) + 1.5px);
  }
}

/* Font Generator Styles */

.font-generator-wrapper * {
  box-sizing: border-box;
  max-width: 100%;
}

.font-generator-wrapper img,
.font-generator-wrapper svg {
  max-width: 100%;
  height: auto;
}

.font-generator-wrapper .container {
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.font-generator-wrapper input,
.font-generator-wrapper textarea,
.font-generator-wrapper button {
  font-family: inherit;
}

/* Font Generator Wrapper */
.font-generator-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 1rem 1rem;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Category Navigation Section */
.font-category-nav-wrapper {
  width: 100%;
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 10;
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease-out;
  transition: margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust category nav when input is fixed */
.font-gen-input-wrapper.sticky-fixed ~ .font-category-nav-wrapper {
  margin-top: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.font-category-nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.font-nav-controls {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.font-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.font-search-input {
  width: 100%;
  padding: 16px 48px 16px 44px;
  font-size: 15px;
  font-weight: 400;
  color: #111827;
  background: #fafafa;
  border: 1.5px solid #9ca3af;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  min-height: 56px;
  position: relative;
}

.font-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.font-search-input:hover {
  border-color: #9ca3af;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.font-search-input:focus {
  outline: none;
  border-color: #4E56C0;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(78, 86, 192, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.font-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  width: 18px;
  height: 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.font-search-wrapper:focus-within .font-search-icon {
  color: #4e56c0;
}

.font-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  z-index: 10;
}

.font-search-clear:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
}

.font-search-clear:active {
  transform: translateY(-50%) scale(0.95);
}

.font-category-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
  display: block;
  position: relative;
  padding-bottom: 0;
}

.font-category-dropdown {
  width: 100%;
  max-width: 500px;
  padding: 16px 48px 16px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  background: #fafafa;
  border: 1.5px solid #9ca3af;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
  min-height: 56px;
}

.font-category-dropdown:hover {
  border-color: #9ca3af;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.font-category-dropdown:focus {
  outline: none;
  border-color: #4E56C0;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(78, 86, 192, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.font-category-dropdown option {
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  background: #ffffff;
  color: #4b5563;
}

.font-style-hidden {
  display: none !important;
}

.font-category-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .font-nav-controls {
    max-width: 600px;
  }
  
  .font-search-wrapper {
    max-width: 600px;
  }
  
  .font-category-dropdown {
    max-width: 600px;
  }
}

@media (min-width: 768px) {
  .font-category-nav-container {
    padding: 20px 24px 28px;
    gap: 24px;
  }
  
  .font-nav-controls {
    max-width: 700px;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
  }
  
  .font-search-wrapper {
    max-width: none;
    flex: 1.2;
  }
  
  .font-category-nav-title {
    font-size: 13px;
    padding-bottom: 0;
  }
  
  .font-category-dropdown {
    max-width: none;
    padding: 18px 52px 18px 20px;
    font-size: 16px;
    padding-right: 52px;
    min-height: 60px;
    flex: 1;
  }
  
  .font-category-dropdown option {
    font-size: 16px;
    padding: 12px;
  }
  
  .font-search-input {
    padding: 18px 52px 18px 48px;
    font-size: 16px;
    min-height: 60px;
  }
  
  .font-search-icon {
    left: 20px;
    width: 18px;
    height: 18px;
  }
  
  .font-search-clear {
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .font-category-nav-container {
    padding: 24px 24px 32px;
  }
  
  .font-nav-controls {
    max-width: 800px;
    gap: 20px;
  }
}

/* Recently Used Fonts Section */
.recently-used-wrapper {
  width: 100%;
  margin: 0 0 2rem 0;
  padding: 0 1rem;
  animation: fadeInUp 0.5s ease-out;
}

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

.recently-used-container {
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.1));
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(78, 86, 192, 0.1), 0 2px 8px rgba(155, 93, 224, 0.08);
  border: 2px solid rgba(78, 86, 192, 0.1);
  position: relative;
  overflow: hidden;
}

.recently-used-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(78, 86, 192, 0.3), rgba(155, 93, 224, 0.3), rgba(78, 86, 192, 0.3));
}

.recently-used-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.recently-used-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4e56c0, #9b5de0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.recently-used-icon {
  width: 28px;
  height: 28px;
  color: #4e56c0;
  flex-shrink: 0;
}

.clear-recent-btn {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(78, 86, 192, 0.2);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.clear-recent-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
  transform: translateY(-1px);
}

.recently-used-fonts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.recently-used-font-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 207, 250, 0.15));
  border: 2px solid rgba(78, 86, 192, 0.15);
  border-radius: 0.875rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.recently-used-font-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.recently-used-font-item:hover::before {
  left: 100%;
}

.recently-used-font-item:hover {
  border-color: rgba(78, 86, 192, 0.35);
  box-shadow: 0 6px 16px rgba(78, 86, 192, 0.15);
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(253, 207, 250, 0.2));
}

.recently-used-font-item:active {
  transform: translateY(-1px);
}

.recently-used-font-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.recently-used-font-preview {
  font-size: 1.625rem;
  font-weight: 500;
  color: #374151;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.recently-used-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
  font-size: 1.125rem;
}

.recently-used-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

@media (min-width: 640px) {
  .recently-used-container {
    padding: 2.5rem 2rem;
  }
  
  .recently-used-fonts-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }
  
  .recently-used-font-item {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .recently-used-wrapper {
    padding: 0 2rem;
  }
  
  .recently-used-container {
    padding: 3rem 2.5rem;
  }
  
  .recently-used-title {
    font-size: 1.75rem;
  }
  
  .recently-used-icon {
    width: 32px;
    height: 32px;
  }
  
  .recently-used-fonts-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .recently-used-font-item {
    padding: 1.75rem;
  }
  
  .recently-used-font-name {
    font-size: 1.1875rem;
  }
  
  .recently-used-font-preview {
    font-size: 1.875rem;
  }
  
  .clear-recent-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .recently-used-fonts-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  
  .recently-used-font-name {
    font-size: 1.25rem;
  }
  
  .recently-used-font-preview {
    font-size: 2rem;
  }
  
  .clear-recent-btn {
    padding: 1.125rem 2.25rem;
    font-size: 1.1875rem;
  }
}

/* Input Section */
.font-gen-input-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 11;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fixed state when scrolled */
.font-gen-input-wrapper.sticky-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  padding: 16px 24px;
  box-sizing: border-box;
}

/* Ensure proper width within container when fixed */
.font-generator-wrapper .font-gen-input-wrapper.sticky-fixed {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 767px) {
  .font-gen-input-wrapper.sticky-fixed {
    padding: 12px 16px;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* Spacer to prevent content jump when input becomes fixed */
.font-gen-input-spacer {
  display: none;
  height: 0;
  width: 100%;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.font-gen-input-wrapper.sticky-fixed ~ .font-gen-input-spacer {
  display: block;
}

.font-gen-input-wrapper:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.font-gen-input-container {
  position: relative;
}

.font-gen-input {
  width: 100%;
  max-width: 100%;
  padding: 20px 56px 20px 20px;
  font-size: 16px;
  line-height: 1.5;
  border: 1.5px solid #9ca3af;
  border-radius: 12px;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
  background-color: #fafafa;
  color: #111827;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  min-height: 56px;
}

.font-gen-input::placeholder {
  font-size: 16px;
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
}

.font-gen-input:hover {
  background-color: #ffffff;
  border-color: #9ca3af;
}

.font-gen-input:focus {
  outline: none;
  border-color: #4E56C0;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(78, 86, 192, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .font-gen-input {
    font-size: 17px;
    padding: 22px 60px 22px 24px;
    min-height: 60px;
  }
  
  .font-gen-input::placeholder {
    font-size: 17px;
  }
  
  .font-gen-clear-btn {
    right: 24px;
  }
}

.font-gen-clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure the X character is perfectly centered */
.font-gen-clear-btn {
  font-weight: 300;
  letter-spacing: 0;
}

.font-gen-clear-btn:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.04);
}

/* Categories Container */
.font-gen-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding-top: 0;
  flex: 1;
  min-height: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

/* Category Box */
.font-gen-category {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.08));
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(78, 86, 192, 0.12), 0 2px 8px rgba(155, 93, 224, 0.1);
  padding: 2rem;
  border: 2px solid rgba(78, 86, 192, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0 0;
  scroll-margin-top: 100px;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.font-gen-category:hover {
  border-color: rgba(155, 93, 224, 0.3);
  box-shadow: 0 8px 24px rgba(78, 86, 192, 0.15), 0 4px 12px rgba(155, 93, 224, 0.12);
  transform: translateY(-2px);
}

.font-gen-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #4E56C0, #9B5DE0, #D78FEE) 1;
}

/* Styles Grid */
.font-gen-styles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .font-gen-styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Style Box */
.font-gen-style-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem;
  border: 2px solid rgba(78, 86, 192, 0.15);
  border-radius: 0.75rem;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 207, 250, 0.05));
  transition: all 0.3s ease;
  min-height: 6.5rem;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.font-gen-style-box:hover {
  border-color: #9B5DE0;
  background: linear-gradient(135deg, rgba(251, 207, 250, 0.1), rgba(215, 143, 238, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 93, 224, 0.2);
}


/* Style Content */
.font-gen-style-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.font-gen-style-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .font-gen-style-name {
    font-size: 1.375rem;
  }
}

.font-gen-style-preview {
  color: #374151;
  font-size: 1.5rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .font-gen-style-preview {
    font-size: 1.875rem;
  }
}

/* Copy Icon */
.font-gen-copy-icon {
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.font-gen-svg-icon {
  color: #4E56C0;
  transition: color 0.2s;
}

.font-gen-style-box:hover .font-gen-svg-icon {
  color: #9B5DE0;
}

/* Loading Indicator */
.font-gen-loading {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.font-gen-loading-text {
  margin-left: 0.75rem;
  color: #4E56C0;
  font-size: 1rem;
  font-weight: 500;
}

/* Mobile View - Increase Width */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  
  .font-generator-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1rem 0.75rem;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .font-gen-input-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .font-gen-input-wrapper.sticky-fixed {
    padding: 12px 16px;
  }
  
  .font-gen-input {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
  }
  
  .font-gen-categories {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .font-gen-category {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .layout_design {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .font-gen-category-title {
    font-size: 1.75rem;
  }
}

#btn-back-to-top {
  display: none;
}

/* Toast styling */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 8px 16px rgba(78, 86, 192, 0.3);
  font-weight: 500;
}

.toast.show {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4E56C0, #9B5DE0);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9B5DE0, #D78FEE);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(78, 86, 192, 0.2);
  border-radius: 50%;
  border-top-color: #4E56C0;
  border-right-color: #9B5DE0;
  animation: spin 1s ease-in-out infinite;
}

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

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 15px;
}


/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn {
  display: none;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  transition: padding 0.25s ease;
  z-index: 15;
  /* background-color: #1e1b1b; */
  background-color: #181818;
  padding-block: 15px;
  box-shadow: 0px 2px 50px hsla(223, 40%, 76%, 0.3);

}


.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.header .logo-container {
  display: flex;
  align-items: center;
  gap: 0;
}

.header .logo-container a {
  display: flex;
  align-items: center;
}

#logo-image {
  height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}


.logo {
  color: rgb(255, 255, 255);
  font-size: 3rem;
  font-weight: 700;

}


.nav-open-btn {
  /* background: linear-gradient(to bottom, #ffffff, #f2f2f2); White background for contrast */
  color: white; /* Dark text for visibility */
  font-size: 28px;
  padding: 8px;
  box-shadow: 0px -2px 12px rgba(0, 0, 0, 0.2); /* Soft black shadow */
  border-radius: 10px;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  background-color: hsl(240, 8%, 12%);
  color: #fff;
  max-width: 300px;
  width: 100%;
  height: auto;
  max-height: 100vh;
  padding: 20px 30px 30px 30px;
  z-index: 1;
  transform: translateX(100%);
  visibility: hidden;
  transition: 0.25s cubic-bezier(0.51, 0.03, 0.64, 0.28);
  overflow-y: auto;
}

.navbar.active {
  transform: translateX(0);
  visibility: visible;
  transition: 0.5s cubic-bezier(0.33, 0.85, 0.4, 0.96);
  
}

.navbar .wrapper {
  display: flex;
  align-items: center;
  margin-block-end: 15px;
  gap: 10px;
}

.navbar .wrapper a {
  display: flex;
  align-items: center;
}

#logo-image-mobile {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.navbar .logo {
  color: white;
}

.nav-close-btn {
  color: #fff;
  font-size: 30px;
  transition: 0.25s ease;
  margin-left: 28px;
}

.nav-close-btn:is(:hover, :focus) {
  color: hsl(0, 100%, 69%);
}

.navbar-item:not(:last-child) {
  border-block-end: 1px solid hsl(0, 0%, 21%);
}

.navbar-link {
  font-size: 13px;
  font-weight: 700;
  padding-block: 15px;
  text-transform: uppercase;
  transition: 0.25s ease;
  color: white;
  font-family: 'DM Sans', sans-serif;

}

.navbar-link:is(:hover, :focus) {
  color: hsl(47, 100%, 69%);
}





/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  color: white;
  font-size: 18px;
  padding: 16px;
  border-radius: 12px;
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(78, 86, 192, 0.3);
}

.back-top-btn:hover {
  background: linear-gradient(135deg, #9B5DE0, #D78FEE);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(155, 93, 224, 0.4);
}

.back-top-btn.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(-10px);
}

.back-top-btn::after {
  bottom: -12px;
  right: 0;
  width: 100%;
  height: 10px;
  background-image: radial-gradient(ellipse at center, hsla(0, 0%, 0%, 0.25), transparent 80%);
}


.accordion {
  position: relative;
  padding: 25px;
  background: #fff;
  padding: 15px;
  min-height: 400px;
  margin-top: 15px;
  margin-left: 3%;
  margin-right: 3%;
  border-radius: 15px;
  box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.05);
}

.accordion h2 {
  margin: 10px 2px 25px;
  font-size: 18px;
  color: #111;
}

.accordion .item {
  margin: 15px 0px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion>div:nth-child(2) {
  background: linear-gradient(135deg, rgba(78, 86, 192, 0.08), rgba(155, 93, 224, 0.05));
  border-left: 4px solid #4E56C0;
}

.accordion>div:nth-child(3) {
  background: linear-gradient(135deg, rgba(155, 93, 224, 0.08), rgba(215, 143, 238, 0.05));
  border-left: 4px solid #9B5DE0;
}

.accordion>div:nth-child(4) {
  background: linear-gradient(135deg, rgba(215, 143, 238, 0.08), rgba(253, 207, 250, 0.05));
  border-left: 4px solid #D78FEE;
}

.accordion>div:nth-child(5) {
  background: linear-gradient(135deg, rgba(253, 207, 250, 0.08), rgba(215, 143, 238, 0.05));
  border-left: 4px solid #FDCFFA;
}

.accordion>div:nth-child(6) {
  background: linear-gradient(135deg, rgba(78, 86, 192, 0.08), rgba(253, 207, 250, 0.05));
  border-left: 4px solid #9B5DE0;
}

.accordion .item .question {
  position: relative;
  padding: 15px 0px;
  padding-left: 50px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: color 0.3s ease;
}

.accordion .item .question:hover {
  color: #4E56C0;
}

.accordion .item.active .question {
  color: #4E56C0;
}

.accordion .item .question:before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
  color: #4E56C0;
  text-align: center;
  transition: all 300ms ease-in-out;
}

.accordion .item.active .question:before {
  color: #9B5DE0;
}

.accordion .item .answer {
  max-height: 0px;
  overflow: hidden;
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
  transition: max-height 300ms linear;
  text-align: justify;
}

.accordion .item .answer>* {
  margin: 5px 40px 15px;
}

.accordion .item.active .question:before {
  transform: translate(-50%, -50%) rotate(145deg);
}

.accordion .item.active .answer {
  max-height: 500px;
}



/**
   * FOOTER
   */




   footer {
    width: 100%;
    height: 300px;
    background-color: #111;
    color: whitesmoke;
    margin-top: 20px;
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    z-index: 1;
  
  
  }
  
  
  #footer-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    margin: 20px auto 10px auto;
  }
  
  
  
  .links {
    display: flex;
    align-items: center;
    justify-content: center;
  
  }
  
  .link {
    font-size: 15px;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s linear;
  
  }
  
  .link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: white;
    transition: all 0.3s linear;
    z-index: -1;
    text-decoration: none;
  
  
  }
  
  .link:hover {
    color: black;
  
  }
  
  
  .link:hover.link::before {
    width: 100%;
  
  
  }
  
  .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .bx {
    font-size: 28px;
    margin-inline: 5px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 6px;
    transition: all 0.3s ease;
  }
  
  .bx:hover {
    transform: scale(1.1);
    border-color: #9B5DE0;
    background: linear-gradient(135deg, #4E56C0, #9B5DE0);
    color: white;
    box-shadow: 0 4px 12px rgba(78, 86, 192, 0.4);
  }
  
  .copyright {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
  }
  
  #copyright-clr {
    background: linear-gradient(135deg, #4E56C0, #9B5DE0, #D78FEE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-weight: 600;
  }
  

  #content-style {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin-bottom: 15px;
    text-align: justify;
  
  }
  
  .layout_content h6 {
    margin-top: 10px;
    border-radius: 25px;
    background: linear-gradient(135deg, #4E56C0, #9B5DE0);
    text-decoration: none;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    padding: 6px 12px;
    border: none;
    width: auto;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(78, 86, 192, 0.3);
    transition: all 0.3s ease;
  }
  
  .layout_content h6:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 86, 192, 0.4);
  }
  
  .layout_content h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #4E56C0, #9B5DE0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }
  
.layout_content .heading-black {
  background: none !important;
  color: #000;
  -webkit-text-fill-color: #000;
}

  .layout_content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #4E56C0;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }


  
  .layout_design {
    position: sticky;
    padding: 20px;
    min-height: 400px;
    margin-top: 15px;
    margin-left: 1%;
    margin-right: 1%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.08));
    box-shadow: 0 8px 24px rgba(78, 86, 192, 0.1), 0 4px 12px rgba(155, 93, 224, 0.08);
    border: 2px solid rgba(78, 86, 192, 0.1);
    width: 98%;
    max-width: 98%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .layout_content {
    position: sticky;
    padding: 20px;
    min-height: 400px;
    margin-top: 15px;
    margin-left: 3%;
    margin-right: 3%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.05));
    box-shadow: 0 6px 20px rgba(78, 86, 192, 0.08), 0 2px 8px rgba(155, 93, 224, 0.06);
    border: 1px solid rgba(78, 86, 192, 0.08);
  }
  
  
  ::selection {
    color: #fff;
    background: #4E56C0;
  }
  
  ::-moz-selection {
    color: #fff;
    background: #4E56C0;
  }
  
  .wrapper {
    max-width: 1800px;
    margin: 40px auto;
  }

  

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/




@media (max-width: 992px) {

  .back-top-btn {

    font-size: 16px;
    padding: 12px;

  }

  .logo {
    font-size: 25px;
  }

  #logo-image {
    height: 48px;
    width: auto;
    max-width: 200px;
    margin-right: 0;
  }
  
  #logo-image-mobile {
    height: 48px;
    width: auto;
    max-width: 200px;
  }
  hr.gradient {

    top: 73.75px;
   
  }
}


@media (min-width: 575px) {

  .container {
    max-width: 850px;
    width: 100%;
    margin-inline: auto;
  }

  .header .container {
    max-width: unset;
  }
}



@media (min-width: 768px) {


  .container {
    max-width: 1200px;
  }

}

@media (min-width: 992px) {


  .container {
    max-width: 1600px;
  }


  .header {
    padding-block-start: 15px;
  }

  .nav-open-btn,
  .overlay,
  .navbar .wrapper {
    display: none;
  }

  .navbar,
  .navbar.active {
    all: unset;
  }

  .navbar-item:not(:last-child) {
    border: none;
  }

  .navbar-list {
    display: flex;
    gap: 30px;
    margin-right: 60px;
  }

  .navbar-link {
    position: relative;
    color: hsl(0, 0%, 100%);
    ;
    text-transform: capitalize;
    font-size: unset;
    font-weight: 500;
  }

  .navbar-link:is(:hover, :focus) {
    color: hsl(240, 28%, 95%);
  
  }

  .navbar-link::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 4px;
    border-radius: 5px;
    background-color: hsl(241, 97%, 66%);
    transition: 0.25s ease;
  }

  .navbar-link:is(:hover, :focus)::before {
    width: 100%;
  }

  .header .btn {
    display: inline-flex;
  }

  .header .btn::before,
  .header .btn::after {
    background-color: hsl(240, 8%, 17%);
    ;
  }

  .header .btn:is(:hover, :focus) {
    color: white;
  }

}


@media (min-width: 1200px) {

  .container {
    max-width: 1800px;
  }

  .header .container {
    padding-inline: 30px;
  }

  .navbar-list {
    gap: 50px;
    margin-right: 60px;
  }
}




@media screen and (max-width:780px) {
  footer {
    height: 300px;
  }
  
  #footer-logo {
    height: 50px;
    max-width: 200px;
  }
}


@media screen and (max-width:420px) {
  .link {
    font-size: 15px;
    padding-inline: 14px;

  }
}


@media screen and (max-width:1000px) {
  .layout_design {
    margin-left: 0;
    margin-right: 0;
    padding: 15px;
    width: 100%;
    max-width: 100%;
  }

  .accordion {

    margin-left: 5px;
    margin-right: 5px;

  }
  .layout_content {
    margin-left: 5px;
    margin-right: 5px;
  }
}

@media screen and (max-width:390px) {

  .layout_design {
    padding: 15px 5px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .font-generator-wrapper {
    padding: 0.75rem 0.5rem;
  }
  
  .font-gen-input-wrapper {
    padding: 0.875rem;
  }
  
  .font-gen-category {
    padding: 1.25rem;
  }
  
  .layout_content {
    padding: 15px 5px;
    margin-left: 0;
    margin-right: 0;
  }

}


/* Smooth Scrolling Enhancements */
* {
  scroll-behavior: smooth;
}

/* Optimize scroll performance */
.layout_design,
.font-generator-wrapper,
.font-gen-categories,
.layout_content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Smooth scroll for anchor links */
a[href^="#"] {
  scroll-behavior: smooth;
}

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

/* Performance optimizations for smooth scrolling */
.font-gen-category,
.font-gen-style-box {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/*-----------------------------------*\
  #BLOG STYLES
\*-----------------------------------*/

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.blog-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 207, 250, 0.08));
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(78, 86, 192, 0.12), 0 2px 8px rgba(155, 93, 224, 0.1);
  border: 2px solid rgba(78, 86, 192, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(78, 86, 192, 0.2), 0 4px 12px rgba(155, 93, 224, 0.15);
  border-color: rgba(155, 93, 224, 0.3);
}

.blog-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.4;
  margin: 0;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
  }

  .blog-card-image {
    height: 280px;
  }

  .blog-title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-image {
    height: 220px;
  }
}

/* Blog Content Page Styles */
.blog-content-wrapper {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.blog-content-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(78, 86, 192, 0.1);
}

.blog-content-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-content-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4E56C0, #9B5DE0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-content-image {
  width: 100%;
  max-width: 800px;
  height: 550px;
  object-fit: cover;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(78, 86, 192, 0.15);
}

.blog-content-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-top: 2rem;
}

.blog-content-body p {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4E56C0;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .blog-content-title {
    font-size: 1.5rem;
  }

  .blog-content-image {
    height: 350px;
  }

  .blog-content-body {
    font-size: 1rem;
  }

  .blog-content-body p {
    font-size: 1.6rem;
  }
}

