/* ============================================
   İlkokul Notları - Ana Stil Dosyası v2
   Modern, renkli, canlı tasarım
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@500;600;700;800&display=swap');

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6584;
    --accent-yellow: #FFD93D;
    --accent-green: #6BCB77;
    --accent-blue: #4D96FF;
    --accent-orange: #FF8C32;
    --accent-purple: #A66CFF;
    --accent-pink: #FF6B9D;
    --accent-teal: #00C9A7;
    --bg-light: #F8F9FF;
    --bg-cream: #FFF9F0;
    --text-dark: #2D3436;
    --text-medium: #636E72;
    --text-light: #B2BEC3;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-body: 'Nunito', sans-serif;
    --font-title: 'Baloo 2', cursive;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== FLOATING LETTERS BACKGROUND ===== */
.floating-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.floating-char {
    position: absolute;
    font-family: var(--font-title);
    font-weight: 900;
    opacity: 0.08;
    animation: floatChar linear infinite;
    text-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Left side chars */
.floating-char.side-left {
    left: 0;
    animation-name: floatSide;
    opacity: 0.12;
}

/* Right side chars */
.floating-char.side-right {
    right: 0;
    animation-name: floatSide;
    opacity: 0.12;
}

/* Floating up from bottom */
@keyframes floatChar {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    8% { opacity: 0.12; }
    50% { opacity: 0.18; }
    92% { opacity: 0.12; }
    100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

/* Side floating - gentle sway */
@keyframes floatSide {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-30px) rotate(-3deg) scale(1); }
    75% { transform: translateY(-15px) rotate(4deg) scale(1.05); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}


/* ===== HEADER - Fresh Clean Design ===== */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #A66CFF) 1;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00C9A7, #4D96FF);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,201,167,0.3);
    transform: rotate(-3deg);
}

.logo span { color: #00C9A7; }

/* NAV */
.nav-main {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 6px;
    margin: 0 6px;
}

.nav-main::-webkit-scrollbar { display: none; }

.nav-main a {
    color: var(--text-medium);
    padding: 6px 11px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid transparent;
}

.nav-main a:hover {
    background: #f0fdf4;
    color: #059669;
    border-color: #d1fae5;
}

.nav-main a.active {
    background: linear-gradient(135deg, #00C9A7, #059669);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(0,201,167,0.25);
}

.nav-main a i { font-size: 0.7rem; }

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 50px;
    padding: 6px 14px;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--text-dark);
    outline: none;
    font-size: 0.85rem;
    width: 130px;
    font-family: var(--font-body);
}

.search-box input::placeholder { color: var(--text-light); }
.search-box button {
    border: none; background: none; color: #00C9A7;
    cursor: pointer; padding: 4px; font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none; border: none; color: var(--text-dark);
    font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* Header wave - zigzag top, no wave needed for white header */
.header-wave { display: none; }

/* ===== SECTION TITLE WIDGETS - Colorful Ribbon Style ===== */
.cloud-wrap {
    position: relative;
    margin-bottom: 40px;
}

.cloud-title-bar {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    border-radius: 60px;
    z-index: 2;
}

/* Renk teması - her widget farklı */
.cloud-title-bar.theme-teal {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    box-shadow: 0 8px 30px rgba(13,148,136,0.25);
}

.cloud-title-bar.theme-orange {
    background: linear-gradient(135deg, #EA580C, #F97316);
    box-shadow: 0 8px 30px rgba(234,88,12,0.25);
}

.cloud-title-bar.theme-blue {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    box-shadow: 0 8px 30px rgba(37,99,235,0.25);
}

.cloud-title-bar.theme-pink {
    background: linear-gradient(135deg, #DB2777, #EC4899);
    box-shadow: 0 8px 30px rgba(219,39,119,0.25);
}

.cloud-title-bar.theme-purple {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    box-shadow: 0 8px 30px rgba(124,58,237,0.25);
}

/* Dekoratif yıldızlar/noktalar */
.cloud-title-bar::before {
    content: '✦';
    position: absolute;
    left: -20px; top: -10px;
    font-size: 1.5rem;
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
}

.cloud-title-bar::after {
    content: '✦';
    position: absolute;
    right: -16px; bottom: -8px;
    font-size: 1.2rem;
    opacity: 0.4;
    animation: twinkle 3s ease-in-out infinite 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.2) rotate(15deg); }
}

.cloud-bump-1,
.cloud-bump-2,
.cloud-bump-3 {
    display: none;
}

.cloud-title-bar .emoji { font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.cloud-title-bar .cloud-text { position: relative; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* Dalga çizgisi altında */
.cloud-title-bar + .cloud-underwave {
    display: block;
    width: 200px;
    height: 12px;
    margin: -4px auto 0;
    position: relative;
    z-index: 1;
}

.cloud-subtitle {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-top: 18px;
    text-align: center;
}

.section-center {
    text-align: center;
    margin-bottom: 10px;
}

.underline {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, #0D9488, #14B8A6);
    border-radius: 10px;
    margin: 0 auto 12px;
}

/* ===== HERO - Fresh Teal Design with Cloud Bottom ===== */
.hero-section {
    background: linear-gradient(160deg, #0D9488 0%, #14B8A6 30%, #2DD4BF 60%, #5EEAD4 100%);
    padding: 55px 0 100px;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* Alt bulut şekilleri - CSS ile */
.hero-clouds {
    position: absolute;
    bottom: -60px;
    left: -5%;
    width: 110%;
    height: 120px;
    z-index: 3;
    pointer-events: none;
}

.hero-cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

/* Büyük bulut grubu - sol */
.hero-cloud.c1 { width: 300px; height: 80px; bottom: 20px; left: 2%; }
.hero-cloud.c1::before { content:''; position:absolute; width:120px; height:120px; background:#fff; border-radius:50%; top:-60px; left:40px; }
.hero-cloud.c1::after { content:''; position:absolute; width:160px; height:100px; background:#fff; border-radius:50%; top:-40px; left:100px; }

/* Büyük bulut grubu - orta */
.hero-cloud.c2 { width: 400px; height: 90px; bottom: 15px; left: 25%; }
.hero-cloud.c2::before { content:''; position:absolute; width:150px; height:130px; background:#fff; border-radius:50%; top:-65px; left:60px; }
.hero-cloud.c2::after { content:''; position:absolute; width:180px; height:110px; background:#fff; border-radius:50%; top:-50px; left:170px; }

/* Büyük bulut grubu - sağ */
.hero-cloud.c3 { width: 350px; height: 85px; bottom: 18px; right: 5%; }
.hero-cloud.c3::before { content:''; position:absolute; width:140px; height:120px; background:#fff; border-radius:50%; top:-55px; left:50px; }
.hero-cloud.c3::after { content:''; position:absolute; width:170px; height:100px; background:#fff; border-radius:50%; top:-45px; left:140px; }

/* Dolgu çizgisi */
.hero-cloud-fill {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 40px;
    background: #fff;
    z-index: 4;
}

/* Dekoratif blob şekiller */
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px; right: -100px;
    animation: blobFloat 12s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,210,63,0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px; left: -80px;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Üst tırtıklı kenar */
.hero-zigzag-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    background: 
        linear-gradient(135deg, var(--white) 33.33%, transparent 33.33%) 0 0,
        linear-gradient(225deg, var(--white) 33.33%, transparent 33.33%) 0 0;
    background-size: 30px 20px;
    background-repeat: repeat-x;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem; color: var(--white);
    margin-bottom: 14px; 
    text-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    line-height: 1.2;
}

.hero-title .highlight {
    color: #FCD34D;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 6px;
    background: rgba(252,211,77,0.3);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.92);
    max-width: 600px; margin: 0 auto 25px; font-weight: 500;
}

.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 25px; }

.hero-stat {
    text-align: center; color: var(--white);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-number { font-family: var(--font-title); font-size: 1.8rem; font-weight: 800; display: block; color: #FCD34D; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.9; }

.floating-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.floating-shape { position: absolute; opacity: 0.2; animation: float 6s ease-in-out infinite; }
.floating-shape:nth-child(1) { top: 15%; left: 5%; font-size: 2.5rem; }
.floating-shape:nth-child(2) { top: 25%; right: 8%; animation-delay: 1s; font-size: 2rem; }
.floating-shape:nth-child(3) { bottom: 25%; left: 12%; animation-delay: 2s; font-size: 1.8rem; }
.floating-shape:nth-child(4) { bottom: 15%; right: 12%; animation-delay: 3s; font-size: 2.2rem; }
.floating-shape:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; font-size: 2rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== WAVE / CLOUD SEPARATORS ===== */
.wave-separator { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.wave-separator svg { display: block; width: 100%; height: auto; }
.wave-separator.wave-bottom { margin-bottom: -2px; }

/* ===== CATEGORIES ===== */
.categories-section { padding: 50px 0 60px; background: var(--white); position: relative; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); cursor: pointer; aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    text-align: center; box-shadow: var(--shadow-md);
    min-height: 200px;
}

.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
    z-index: 1; transition: var(--transition);
}

.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.category-card:hover::before { background: linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,0.2)); }

.category-card-bg { 
    position: absolute; 
    top: -5%;
    left: -5%;
    width: 110%; 
    height: 110%; 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
    transition: var(--transition); 
    z-index: 0; 
}
.category-card:hover .category-card-bg { transform: scale(1.08); }

.category-card-color { position: absolute; inset: 0; transition: var(--transition); z-index: 0; }

/* Görsel varsa gradient neredeyse yok */
.category-card.has-image .category-card-color { opacity: 0.10; }
.category-card.has-image:hover .category-card-color { opacity: 0.05; }
.category-card.has-image::before { background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.08) 40%, transparent 100%); }

.category-card-content { 
    position: relative; 
    z-index: 2; 
    color: var(--white); 
    padding: 14px 16px; 
    margin-top: auto; 
    width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.category-card-icon { display: none; }
.category-card-title { font-family: var(--font-title); font-size: 1.15rem; font-weight: 800; text-shadow: 2px 2px 6px rgba(0,0,0,0.5); line-height: 1.2; }
.category-card-count { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 20px; display: inline-block; }

/* ===== NEWS SECTION ===== */
.news-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF0F5 100%);
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.news-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.06);
}

.news-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 14px;
    background: var(--accent-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-family: var(--font-title);
    font-weight: 700; font-size: 1.05rem;
    color: var(--text-dark); line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 14px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.news-card-date {
    font-size: 0.75rem; color: var(--text-light);
    display: flex; align-items: center; gap: 4px;
}

.news-card-link {
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== CONTENT CARDS (Grid) ===== */
.recent-section { padding: 60px 0; background: var(--bg-light); position: relative; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background: var(--white); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column;
}

.content-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.content-card-header { padding: 20px 20px 12px; display: flex; align-items: flex-start; gap: 14px; }

.content-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--white); flex-shrink: 0; box-shadow: var(--shadow-sm);
}

.content-card-info { flex: 1; min-width: 0; }

.content-card-category {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; color: var(--white); margin-bottom: 4px;
}

.content-card-title {
    font-family: var(--font-title); font-size: 0.95rem; font-weight: 700;
    color: var(--text-dark); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.content-card-body { padding: 0 20px; flex: 1; }
.content-card-desc { font-size: 0.85rem; color: var(--text-medium); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.content-card-footer {
    padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.04); margin-top: auto;
}

.content-card-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-light); }
.content-card-meta span { display: flex; align-items: center; gap: 3px; }
.content-card-meta i { font-size: 0.7rem; }

.content-card-btn {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); transition: var(--transition); font-size: 0.8rem;
}

.content-card-btn:hover { transform: scale(1.15); }

/* ===== LIST VIEW (Category pages) ===== */
.content-list { display: flex; flex-direction: column; gap: 12px; }

.content-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.content-list-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-green);
}

.content-list-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--white); flex-shrink: 0;
    background: var(--primary);
}

.content-list-info { flex: 1; min-width: 0; }

.content-list-title {
    font-weight: 700; font-size: 0.95rem; color: var(--text-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.content-list-meta {
    display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-light); margin-top: 3px;
}

.content-list-meta span { display: flex; align-items: center; gap: 4px; }

.content-list-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent-green); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0; transition: var(--transition);
}

.content-list-item:hover .content-list-btn {
    background: var(--primary);
    transform: scale(1.1);
}

/* ===== SEARCH FORM ===== */
.search-form-large {
    max-width: 600px; margin: 0 auto 30px;
    display: flex; background: var(--white); border-radius: 50px;
    box-shadow: var(--shadow-md); overflow: hidden; border: 2px solid transparent;
    transition: var(--transition);
}

.search-form-large:focus-within { border-color: var(--primary); }

.search-form-large input {
    flex: 1; border: none; padding: 14px 22px; font-size: 0.95rem;
    outline: none; font-family: var(--font-body);
}

.search-form-large button {
    padding: 14px 24px; background: var(--primary); color: var(--white);
    border: none; cursor: pointer; font-size: 1rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section { padding: 16px 0; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.04); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-medium); display: flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-light); font-size: 0.75rem; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* ===== CATEGORY HEADER ===== */
.category-header { padding: 40px 0; text-align: center; }
.category-header h1 { font-family: var(--font-title); font-size: 2rem; margin-bottom: 6px; }
.category-header p { color: var(--text-medium); font-size: 0.95rem; }

/* ===== CONTENT DETAIL ===== */
.content-detail { padding: 30px 0 60px; position: relative; }

.content-detail-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.content-detail-header { padding: 30px; display: flex; align-items: center; gap: 20px; }

.download-box {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    border-radius: var(--radius-md); padding: 28px; text-align: center;
    margin-top: 24px; border: 2px dashed rgba(108, 99, 255, 0.2);
}

.download-box .file-info { display: flex; justify-content: center; gap: 24px; margin: 14px 0 18px; font-size: 0.85rem; color: var(--text-medium); flex-wrap: wrap; }

.download-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 36px; background: linear-gradient(135deg, var(--accent-green), #2ECC71);
    color: var(--white); border-radius: 50px; font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(107, 203, 119, 0.4); transition: var(--transition);
    border: none; cursor: pointer;
}

.download-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(107, 203, 119, 0.5); color: var(--white); }

.content-detail-body { padding: 0 30px 30px; line-height: 1.8; }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 30px 0 60px; }
.page-content-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); max-width: 800px; margin: 0 auto; }
.page-content-card h1 { font-family: var(--font-title); font-size: 1.8rem; margin-bottom: 20px; }
.page-content-card h2 { font-size: 1.3rem; margin: 24px 0 10px; }
.page-content-card p { margin-bottom: 12px; line-height: 1.8; color: var(--text-medium); }
.page-content-card ul { margin: 10px 0 20px 20px; }
.page-content-card ul li { margin-bottom: 6px; color: var(--text-medium); list-style: disc; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination .page-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--white); color: var(--text-medium); font-weight: 600; font-size: 0.85rem;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.pagination .page-link:hover, .pagination .page-item.active .page-link {
    background: var(--primary); color: var(--white);
}

/* ===== SEE ALL BTN ===== */
.see-all-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: var(--white); border-radius: 50px; font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3); transition: var(--transition);
}
.see-all-btn:hover { transform: translateY(-3px); color: var(--white); }

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* ===== FOOTER ===== */
.footer-wave { line-height: 0; margin-bottom: -2px; }
.footer-wave svg { display: block; width: 100%; }

.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.8); padding: 50px 0 0;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }

.footer-brand .logo { font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); }

.footer-column h4 {
    font-family: var(--font-title); font-size: 1rem; color: #fff;
    margin-bottom: 16px; padding-bottom: 8px; position: relative;
}
.footer-column h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; background: var(--primary); border-radius: 10px; }
.footer-column ul li { margin-bottom: 8px; }
.footer-column ul a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-column ul a:hover { color: var(--white); padding-left: 4px; }
.footer-column ul a i { font-size: 0.7rem; color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }

.footer-copyright-dev {
    text-align: center;
    padding: 12px 0;
    background: rgba(0,0,0,0.2);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}
.footer-copyright-dev a { color: rgba(255,255,255,0.5); font-weight: 700; }
.footer-copyright-dev a:hover { color: var(--accent-yellow); }

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); padding: 16px; box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    z-index: 9999; display: none; border-top: 3px solid var(--primary);
}
.cookie-consent.show { display: block; }
.cookie-consent-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-consent p { font-size: 0.85rem; color: var(--text-medium); flex: 1; }
.cookie-consent p a { color: var(--primary); font-weight: 600; }
.cookie-consent-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { padding: 9px 20px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; cursor: pointer; border: none; transition: var(--transition); font-family: var(--font-body); }
.cookie-btn-accept { background: var(--primary); color: var(--white); }
.cookie-btn-decline { background: transparent; color: var(--text-medium); border: 1px solid #ddd; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: var(--shadow-md);
    cursor: pointer; transition: var(--transition);
    opacity: 0; visibility: hidden; z-index: 999; border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* ===== NO CONTENT ===== */
.no-content { text-align: center; padding: 50px 20px; color: var(--text-medium); }
.no-content i { font-size: 3.5rem; color: var(--text-light); margin-bottom: 16px; display: block; }
.no-content h3 { font-family: var(--font-title); font-size: 1.3rem; margin-bottom: 8px; }

/* ===== AD CONTAINER ===== */
.ad-container { margin: 24px 0; text-align: center; min-height: 90px; }

/* ===== SEARCH SECTION ===== */
.search-section .section-title h2 { font-family: var(--font-title); font-size: 2rem; color: var(--text-dark); margin-bottom: 6px; }
.search-section .section-title p { color: var(--text-medium); font-size: 1rem; margin-bottom: 20px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .categories-grid, .subcategories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; gap: 8px; }
    .nav-main {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); flex-direction: column;
        padding: 16px; gap: 4px; box-shadow: var(--shadow-lg); overflow: visible;
        border-top: 3px solid #0D9488;
    }
    .nav-main.active { display: flex; }
    .nav-main a { padding: 10px 14px; font-size: 0.9rem; color: var(--text-dark); }
    .nav-main a:hover { background: #f0fdf4; color: #059669; }
    .mobile-menu-btn { display: block; }
    .search-box { width: 100%; order: 3; }
    .search-box input { width: 100%; }
    .hero-section { padding: 40px 0 50px; overflow: hidden; }
    .hero-clouds, .hero-cloud-fill, .hero-zigzag-top { display: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-stats { gap: 12px; }
    .hero-stat { padding: 10px 16px; }
    .categories-section { padding: 30px 0 40px; }
    .categories-grid, .subcategories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .category-card { min-height: 160px; }
    .category-card-bg { top: -8%; left: -8%; width: 116%; height: 116%; }
    .category-card-title { font-size: 0.95rem; padding: 0 8px; }
    .category-card-content { padding: 10px 12px; }
    .content-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cookie-consent-inner { flex-direction: column; text-align: center; }
    .content-detail-header { padding: 20px; flex-direction: column; }
    .content-detail-body { padding: 0 20px 20px; }
    .cloud-title { font-size: 1.2rem; padding: 12px 28px 12px 18px; }
}

@media (max-width: 480px) {
    .categories-grid, .subcategories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { min-height: 130px; }
    .category-card-bg { top: -10%; left: -10%; width: 120%; height: 120%; }
    .category-card-title { font-size: 0.85rem; line-height: 1.2; }
    .category-card-content { padding: 8px 10px; }
    .category-card-icon { font-size: 2rem; }
    .logo { font-size: 1.2rem; }
    .content-list-title { font-size: 0.85rem; }
}
