@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+Telugu:wght@400;500;600;700&display=swap');

:root {
    /* Vibrant Aura Orange Palette */
    --primary: #FF5E3A;
    --primary-light: #FF8E75;
    --primary-dark: #E64A2E;
    --accent: #6C5CE7;
    --accent-light: #A29BFE;
    --secondary: #2D3436;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FF5E3A 0%, #FF2A65 100%);
    --grad-aura: linear-gradient(135deg, #FF5E3A 0%, #6C5CE7 100%);
    --grad-soft: linear-gradient(135deg, #FFF5F2 0%, #F5F7FF 100%);

    /* Modern UI Elements */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(255, 94, 58, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Noto Sans Telugu', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Noto Sans Telugu', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Premium Navbar --- */
nav {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after {
    width: 100%;
}

.login-btn {
    background: var(--grad-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 94, 58, 0.4);
}

/* --- Ultra Modern Hero --- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: var(--grad-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 94, 58, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* --- Dynamic Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    padding: 80px 0;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 94, 58, 0.12);
}

.post-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card:hover .post-image {
    transform: scale(1.1);
}

.post-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--secondary);
    line-height: 1.35;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 94, 58, 0.4);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 58, 0.5);
    opacity: 1;
}

/* --- Admin Visuals --- */
.admin-login-card {
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--glass-border);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    font-family: inherit;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
}

/* --- Footer Overhaul --- */
footer {
    background: #0F172A;
    color: white;
    padding: 100px 0 40px;
    margin-top: 100px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
    color: #94A3B8;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748B;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}