@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Mono&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #cc0000;
    --red-dark: #9B0B22;
    --ink: #0F0F0F;
    --warm: #F5F0E8;
    --muted: #7A7060;
    --border: #E0D8CC;
    --accent: #E8A020;
    --white: #FFFDF9;
    --body-text: #2A2218;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--body-text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ─── WEATHER BAR ─── */
.weather-bar {
    background: var(--warm);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
}

.weather-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.weather-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.weather-temp {
    font-weight: 600;
    color: var(--ink);
}

.date-now {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
}

/* ─── NAVBAR ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    height: 100px;
    border-bottom: 3px solid var(--red-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo span {
    color: #FFD0D8;
}

.nav-links {
    display: flex;
    gap: 21px;
    list-style: none;
}

.nav-links a {
    color: #ffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 6px 14px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    width: 170px;
}

.nav-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* ─── TICKER ─── */
.ticker-bar {
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.25);
    padding: 0 16px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    animation: scroll-left 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0 36px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── BREADCRUMB ─── */
.breadcrumb-bar {
    background: var(--warm);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.breadcrumb-inner a {
    color: var(--red);
    text-decoration: none;
}

.breadcrumb-inner a:hover {
    text-decoration: underline;
}

.bc-sep {
    color: var(--border);
}

/* ─── ITHU UNGA AREA STYLES ─── */
.area-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 32px;
}

.area-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: var(--red);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.area-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(100px) translateY(100px);
    }
}

.area-header h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.area-header p {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    color: #fff;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 20px 30px 0 30px; /* added top, right, left space */
}

/* Sidebar with Ads */
.sidebar {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.ad-container {
    margin-bottom: 25px;
    text-align: center;
    transition: transform 0.3s;
}

.ad-container:hover {
    transform: scale(1.02);
}

.ad-placeholder {
    background: linear-gradient(135deg, #f6d5f7, #fbe9d7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ad-large {
    min-height: 250px;
}

/* Directory Grid (Enhanced Styling) */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.dir-item {
    background: #FFFFFF;
    border: 1px solid rgba(224, 216, 204, 0.6);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.dir-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dir-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.dir-item:hover::before {
    opacity: 1;
}

.dir-image {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm);
    border-radius: 50%;
    padding: 12px;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dir-item:hover .dir-image {
    background: #FFF0F0;
    transform: scale(1.08);
}

.dir-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.dir-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--body-text);
    transition: color 0.3s ease;
}

.dir-item:hover .dir-title {
    color: var(--red);
}

.banner-ad {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #FFEAA7, #FFAC7C);
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.area-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--red));
    padding: 10px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header h3 {
    margin: 0;
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.area-card:hover .card-image img {
    transform: scale(1.15);
}

/* Sidebar Right */
.sidebar-right {
    flex: 0 0 30%;
    min-width: 250px;
}

.main-column {
    flex: 0 0 calc(70% - 30px);
    /* Account for 30px gap */
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 20px 18px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed #e2e8f0;
}

.tag {
    background: linear-gradient(135deg, #f6f9fc, #e6f0f5);
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
}

.tag:hover {
    background: linear-gradient(135deg, var(--red));
    color: #fff;
    transform: translateY(-2px);
    border-color: transparent;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    font-family: 'DM Sans', sans-serif;
}

.widget-header {
    background: linear-gradient(to right, var(--red-dark), var(--red));
    color: white;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list-item {
    display: block;
    padding: 14px 18px;
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 28px;
}

.sidebar-list-item::before {
    content: '\f105';
    /* FontAwesome angle-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    color: var(--accent);
    transition: all 0.2s ease;
}

.sidebar-list-item:hover {
    background: #FAFAFA;
    color: var(--red);
    padding-left: 32px;
}

.sidebar-list-item:hover::before {
    left: 18px;
}

.sidebar-stories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-story {
    display: flex;
    padding: 15px;
    border-bottom: 1px dashed var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.sidebar-story:hover {
    background: #FAFAFA;
}

.sidebar-stories li:last-child .sidebar-story {
    border-bottom: none;
}

.ss-img {
    width: 60px;
    height: 60px;
    background: #EAEAEA;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Example placeholder background for story images */
.bg-placeholder {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="%23eee"/><path d="M15 45l10-10 5 5 15-15 10 10" stroke="%23ccc" stroke-width="2" fill="none"/><circle cx="20" cy="20" r="5" fill="%23ccc"/></svg>');
    background-size: cover;
    background-position: center;
}

.ss-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ss-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.sidebar-story:hover .ss-title {
    color: var(--red);
}

.ss-date {
    font-size: 0.75rem;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
}

/* Weather Widget custom style inline in HTML */


/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
    color: #cc0000;
}

/* ─── FOOTER ─── */
footer {
    background: var(--red);
    color: rgba(255, 255, 255, 0.65);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 32px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-logo span {
    color: #FFD0D8;
}

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-col h6 {
    color: white;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 32px 0;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .area-header h1 {
        font-size: 3.2em;
    }

    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        width: 100%;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── LATEST POSTS ─── */
.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.post-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.post-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 5px 15px rgba(0,0,0,0.04);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: -1;
}

.post-item:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.post-item:hover::after {
    opacity: 1;
}

.post-image {
    flex: 0 0 280px;
    max-width: 280px;
    height: 175px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
}

.post-item:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: #fff;
}

.post-meta {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.post-meta .category {
    color: var(--red);
    background: rgba(204, 0, 0, 0.08);
    padding: 3px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.post-item:hover .post-meta .category {
    background: var(--red);
    color: #fff;
}

.post-meta .sep {
    display: none;
}

.post-meta .date {
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta .date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 400;
    color: #b0b0b0;
    font-size: 0.85rem;
}

.post-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--ink);
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.post-item:hover .post-content h3 {
    color: var(--red);
}

.post-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }
    .post-image {
        flex: auto;
        width: 100%;
        height: 180px;
        max-width: 100%;
    }
    .post-content {
        padding: 20px;
    }
}
