/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B5DD3;
    --secondary-color: #9B8FE5;
    --accent-color: #FFB84D;
    --accent-hover: #FFA633;
    --dark-bg: #1F1A38;
    --light-bg: #FAF9FE;
    --light-purple: #F0EDFF;
    --text-dark: #2D2A3D;
    --text-light: #6B6B7B;
    --border-color: #E8E4F8;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(107,93,211,0.08);
    --shadow: 0 4px 12px rgba(107,93,211,0.12);
    --shadow-hover: 0 12px 28px rgba(107,93,211,0.2);
    --shadow-lg: 0 20px 40px rgba(107,93,211,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #6B5DD3 0%, #9B8FE5 100%);
    --gradient-dark: linear-gradient(135deg, #1F1A38 0%, #3A2F5A 100%);
    --gradient-light: linear-gradient(180deg, rgba(240,237,255,0) 0%, rgba(240,237,255,1) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
}

.site-header.scrolled {
    padding: 0;
    box-shadow: var(--shadow);
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
}

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

.logo-link:hover .logo-icon {
    animation: moonBounce 0.6s ease;
}

@keyframes moonBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(107,93,211,0.2));
}

.main-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    background: var(--light-purple);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    width: 70%;
}

.header-search {
    width: 300px;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107,93,211,0.1);
    background: var(--white);
}

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

.search-button {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-button:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow);
}

.search-button span {
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--light-bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.breadcrumbs-list a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateX(2px);
}

.breadcrumbs-list .separator {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.5;
}

.breadcrumbs-list .current {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(107,93,211,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155,143,229,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.35rem;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-main {
    display: flex;
    gap: 10px;
}

.search-input-main {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius);
}

.search-button-main {
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Styles */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* Alphabet Grid */
.alphabet-section {
    background: white;
    padding: 70px 0;
    margin-top: 0;
    margin-bottom: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 16px;
    max-width: 950px;
    margin: 0 auto;
}

.alphabet-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    background: var(--light-purple);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.alphabet-letter span {
    position: relative;
    transition: var(--transition);
}

.alphabet-letter:hover,
.alphabet-letter.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.alphabet-letter:hover span,
.alphabet-letter.active span {
    color: white;
    transform: scale(1.1);
}

/* Dreams Grid */
.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.dream-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid transparent;
}

.dream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dream-card a {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: var(--text-dark);
}

.dream-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.dream-card:hover::before {
    opacity: 1;
}

.dream-card h2,
.dream-card h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.dream-card:hover h2,
.dream-card:hover h3 {
    color: var(--secondary-color);
}

.dream-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Top Badge */
.top-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Dream Meta */
.dream-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.views {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Page Header */
.page-header,
.page-header-section {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1,
.page-header-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p,
.page-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-text h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.article-text h3 {
    color: var(--secondary-color);
    margin: 25px 0 12px;
    font-size: 1.5rem;
}

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

.article-text ul,
.article-text ol {
    margin: 20px 0 20px 30px;
}

.article-text li {
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar,
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.widget-text {
    color: var(--text-light);
    line-height: 1.7;
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-search-input {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

.sidebar-search-button {
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.similar-dreams-list {
    list-style: none;
}

.similar-dreams-list li {
    margin-bottom: 10px;
}

.similar-dreams-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.similar-dreams-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.share-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

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

.share-facebook {
    background: #1877F2;
}

.share-x {
    background: #000000;
}

.share-reddit {
    background: #FF4500;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #25D366;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    margin: 40px auto;
}

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

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-message {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Footer Styles */
.site-footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(107,93,211,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(155,143,229,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    min-width: 250px;
}

.footer-title {
    color: var(--accent-color);
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 0;
    display: inline-block;
    position: relative;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.footer-nav a:hover::before {
    opacity: 1;
    left: 0;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-4px) scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 8px 16px rgba(255,184,77,0.3);
}

/* Footer Alphabet */
.footer-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.alphabet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.alphabet-link:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(255,184,77,0.3);
}

.alphabet-link:last-child {
    font-weight: bold;
    letter-spacing: 2px;
}

/* Footer Email */
.footer-email {
    color: rgba(255,255,255,0.8);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.info-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    font-size: 56px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(107,93,211,0.15));
    animation: floatIcon 3s ease-in-out infinite;
}

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

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.75;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.content-section {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.content-main {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.content-block p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.step-card {
    text-align: center;
    padding: 25px;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    line-height: 1.7;
}

.benefits-list li strong {
    color: var(--primary-color);
}

.dream-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dream-type-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: all 0.3s ease;
}

.dream-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.dream-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dream-type-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.info-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 10px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.stats-list li strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tip-text {
    background: var(--light-bg);
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Search Page Enhanced */
.search-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.search-icon-large {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.search-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.search-main {
    padding: 60px 0;
    background: var(--light-bg);
    min-height: 400px;
}

.search-box-wrapper {
    max-width: 800px;
    margin: -40px auto 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.search-form-enhanced {
    width: 100%;
}

.search-field-group {
    position: relative;
}

.search-label {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-input-wrapper {
    display: flex;
    gap: 0;
    position: relative;
}

.search-input-enhanced {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 3px solid var(--border-color);
    border-radius: 15px 0 0 15px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-enhanced:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 78, 140, 0.1);
}

.search-btn-enhanced {
    padding: 18px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 15px 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.search-btn-enhanced:hover {
    background: var(--secondary-color);
    transform: translateX(3px);
}

.search-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.quick-search-section {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.quick-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quick-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Search Results */
.search-results {
    margin-top: 50px;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.results-header p {
    color: var(--text-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.result-card a {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: var(--text-dark);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.result-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.result-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

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

/* No Results State */
.no-results-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.no-results-content {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-results-emoji {
    font-size: 72px;
    margin-bottom: 25px;
    animation: floatIcon 3s ease-in-out infinite;
}

.no-results-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.no-results-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.no-results-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.no-results-tips {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 35px;
    text-align: left;
}

.no-results-tips h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.no-results-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-tips li {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.no-results-tips li:last-child {
    border-bottom: none;
}

.no-results-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-results-actions .btn {
    min-width: 160px;
}

/* Popular Searches */
.popular-searches {
    margin-top: 50px;
    text-align: center;
}

.popular-searches h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.search-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.browse-section {
    max-width: 1000px;
    margin: 60px auto 0;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.browse-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.browse-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.browse-icon {
    font-size: 1.5rem;
}

.browse-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.alphabet-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.letter-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.letter-mini:hover {
    background: var(--primary-color);
    color: white;
}

.browse-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.browse-link:hover {
    color: var(--secondary-color);
}

.seo-content {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: white;
    border-radius: 15px;
}

.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.seo-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Updated Results Styles */
.results-info {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.results-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.results-count {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.results-list {
    display: grid;
    gap: 20px;
}

.result-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.result-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.result-content {
    padding: 25px;
}

.result-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.result-action {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.result-item:hover .result-action {
    gap: 10px;
}

.search-again {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Popular Section */
.popular-section {
    background: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

/* Recent Section */
.recent-section {
    background: var(--light-bg);
    padding: 60px 0;
    margin-bottom: 50px;
}

/* Info Section */
.info-section {
    background: white;
    padding: 60px 0;
}

/* Dreams Container */
.dreams-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dreams-count {
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.dreams-count p {
    margin: 0;
}

.dreams-count strong {
    color: var(--primary-color);
}

/* Letter Page Specific */
.alphabet-nav-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.alphabet-nav {
    text-align: center;
}

.alphabet-nav h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.dreams-list-section {
    padding: 0 0 60px 0;
}

.stat-text {
    text-align: left;
}

.stat-text strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.stat-text a:hover {
    color: var(--primary-color);
}

/* Error Page Styles */
.error-page {
    padding: 60px 0;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-title {
    font-size: 120px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 20px 0;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-search {
    margin: 40px 0;
}

.error-search p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.search-form-inline {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 15px auto;
}

.search-input-inline {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-button-inline {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
}

.search-button-inline:hover {
    background: var(--secondary-color);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-suggestions {
    margin-top: 60px;
}

.error-suggestions h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.suggestion-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

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

.error-alphabet {
    margin-top: 40px;
    text-align: center;
}

.error-alphabet h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Stats Box */
.stats-box {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

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

.stat-label {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Dreams List */
.dreams-list {
    display: grid;
    gap: 10px;
}

.dream-item {
    background: white;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.dream-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
}

.dream-item:hover {
    background: var(--light-bg);
}

.dream-name {
    font-weight: 500;
    color: var(--primary-color);
}

.dream-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
}

.dream-status.ready {
    background: #28a745;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.dream-status.pending {
    background: #ffc107;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.dream-views {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: var(--light-purple);
        margin: 0 -20px;
        padding: 0 20px;
        border-radius: var(--radius);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .nav-menu {
        flex-direction: column;
        padding: 16px 0;
        gap: 8px;
    }

    .nav-link {
        padding: 14px 16px;
        border-radius: var(--radius);
        background: var(--white);
        margin: 4px 0;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background: var(--light-purple);
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: var(--transition);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .dreams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dream-card {
        border-radius: var(--radius);
    }

    .dream-card a {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card {
        padding: 32px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .dream-types {
        grid-template-columns: 1fr;
    }

    .alphabet-grid {
        grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
        gap: 12px;
    }

    .alphabet-letter {
        height: 52px;
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-alphabet {
        max-width: 300px;
        margin: 10px auto 0;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form-main,
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button-main {
        width: 100%;
        justify-content: center;
    }
    
    .popular-tags {
        justify-content: flex-start;
    }
    
    .search-tag {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .error-title {
        font-size: 80px;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .content-main {
        padding: 20px;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .stats-box {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .article-content {
        padding: 20px 15px;
        margin: 0;
        border-radius: var(--radius);
    }

    .article-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-text h2 {
        font-size: 1.5rem;
        margin: 25px 0 12px;
    }

    .article-text h3 {
        font-size: 1.3rem;
        margin: 20px 0 10px;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-button {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        text-align: center;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}
/* Legal Pages Styles (Privacy & Terms) */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.legal-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.legal-update {
    font-size: 1rem;
    opacity: 0.9;
}

/* Content Layout */
.legal-content {
    padding: 60px 0;
    background: var(--light-bg);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar TOC */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.toc-widget h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

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

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.toc-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 15px;
}

.toc-list a::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-list a:hover::before {
    opacity: 1;
}

/* Main Content */
.legal-main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.legal-intro {
    padding: 25px;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.legal-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-section li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--accent-color);
}

.legal-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Box */
.contact-box {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.contact-box p {
    margin: 10px 0;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Warning Box */
.warning-box {
    background: #fff9e6;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box p {
    margin: 0;
    color: var(--text-dark);
}

.warning-box strong {
    color: #ff6b00;
}

/* Legal Footer */
.legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    margin: 10px 0;
}

.legal-footer .copyright {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 20px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Active Section Highlight */
.toc-list a.active {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .legal-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .toc-widget {
        max-width: 100%;
    }
    
    .toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .legal-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-main {
        padding: 25px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 20px;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .legal-sidebar,
    .site-header,
    .site-footer {
        display: none;
    }
    
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-main {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column !important;
        gap: 7px !important; 
    }
    
    .search-input-enhanced,
    .search-btn-enhanced {
        width: 100% !important;
        border-radius: 10px !important;
    }
    
    .search-box-wrapper {
        margin: -30px 10px 30px !important;
        padding: 25px 15px !important;
}