/* ============================================================
   TakPost Professional Stylesheet
   Version: 2.1
   ============================================================ */

/* --- Variable Definitions --- */
:root {
    --primary-color: #064e3b;
    --secondary-color: #10b981;
    --accent-color: #f43f5e;
    --bg-main: #f8fafc;
    --white: #ffffff;
    --text-main: #064e3b;
    --text-muted: #4b5563;
    --success: #10b981;
    --border-color: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

/* --- Global Adjustments --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
}

.logo img {
    max-height: 40px;
    border-radius: var(--radius-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #f1f5f9;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.1) 0px, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom right, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.search-box i {
    margin-left: 25px;
    color: #94a3b8;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 12px 0;
    outline: none;
}

.search-box button {
    padding: 12px 35px;
    border-radius: 100px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

/* --- Features Section --- */
.features {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-item {
    text-align: center;
}

.feature-item i {
    width: 50px;
    height: 50px;
    background: #ecfdf5;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Categories Section --- */
.categories {
    padding: 6rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.category-card:hover h3, 
.category-card:hover p, 
.category-card:hover .btn-explore {
    color: var(--white);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #ecfdf5;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.category-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-explore {
    color: var(--secondary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* --- Latest Posts --- */
.latest-posts {
    padding: 6rem 0;
    background-color: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-card-media {
    width: 220px;
    flex-shrink: 0;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-badge {
    background: #ecfdf5;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.post-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Admin UI Styles --- */
.admin-header {
    background: var(--primary-color);
    background-image: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.admin-container {
    padding-bottom: 5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.admin-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h2 i {
    color: var(--secondary-color);
}

.admin-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.admin-card .btn {
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-link {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-color) !important;
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.icon-choice {
    transition: var(--transition);
}

.icon-choice:hover {
    border-color: var(--secondary-color) !important;
    background: #eff6ff !important;
    color: var(--secondary-color);
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 78, 59, 0.05) 0px, transparent 50%);
    padding: 2rem;
}

.admin-login-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

/* --- Category Header --- */
.category-header {
    background-color: var(--primary-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.category-header-content i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.category-header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.category-header-content p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

/* --- Category Content --- */
.category-content {
    padding: 5rem 0;
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.page-card-media {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.page-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.page-card:hover .page-card-media img {
    transform: scale(1.1);
}

.page-card-body {
    padding: 2rem;
}

.page-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.page-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    width: 100%;
}

/* --- Responsive Tables --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #f1f5f9; }

/* --- Tool UI Enhancement --- */
.tool-section {
    padding: 4rem 0;
}

.tool-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.tool-form-group {
    margin-bottom: 1.5rem;
}

.tool-label {
    display: block;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tool-input, 
.tool-select, 
.tool-textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.tool-input:focus, 
.tool-select:focus, 
.tool-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.tool-btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 1rem;
    border-radius: var(--radius-md);
}

/* --- Result UI --- */
.tool-result-box {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.tool-result-title {
    font-weight: 800;
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary { 
    background: var(--gradient-primary); 
    color: white; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary { 
    background: var(--primary-color); 
    color: white; 
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}
.btn-secondary:hover { 
    background: #1e293b; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: #f8fafc;
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.1rem; }

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 5rem 0 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #94a3b8;
    font-weight: 500;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 3rem;
    width: 100%;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .features-grid { padding: 2rem; }
}

@media (max-width: 768px) {
    .header { padding: 0.75rem 0; }
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        padding: 40px 25px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        transform: translateX(100%);
        visibility: hidden;
    }
    
    .nav-menu.active { 
        transform: translateX(0);
        visibility: visible;
    }

    .menu-close-wrapper {
        display: flex !important;
    }
    
    .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link { color: rgba(255,255,255,0.8); width: 100%; padding: 1.25rem 0.5rem; }
    .nav-link:hover { color: white; background: none; }

    .hero { padding: 4rem 0 3rem; overflow: hidden; }
    .hero-content h1 { font-size: 2rem; padding: 0 10px; }
    .hero-content p { font-size: 1rem; padding: 0 15px; margin-bottom: 2.5rem; }
    
    .features { margin-top: -20px; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .home-categories .category-card { 
        aspect-ratio: 1 / 1; 
        padding: 1.5rem; 
        justify-content: center; 
        align-items: center; 
        text-align: center;
    }
    .home-categories .category-card .card-icon { margin-bottom: 1rem; width: 50px; height: 50px; font-size: 1.25rem; }
    .home-categories .category-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .home-categories .category-card p, .home-categories .category-card .btn-explore { display: none; }
    
    .posts-grid { grid-template-columns: 1fr; }
    .post-card { flex-direction: column; }
    .post-card-media { width: 100%; height: 180px; }
    
    .content-box { padding: 2rem 1.5rem; }
    .tool-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; border-radius: 20px; padding: 12px; gap: 8px; }
    .search-box i { display: none; }
    .search-box input { text-align: center; }
    .search-box button { width: 100%; padding: 12px; border-radius: 12px; }
}
