/* ============================================================
   Eruvaaka Foundation Awards 2022 - English Replica
   Color Palette: Green #1E8200, Yellow #f1ce4e, White #fff
   Fonts: Roboto (body), Montserrat (headings), Open Sans (nav)
   ============================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    color: #222222;
    background: #ffffff;
    line-height: 1.7;
}

::selection {
    background: #1E8200;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1E8200;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #166d00;
}

ul, ol {
    list-style: none;
}

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

/* === Top Utility Bar === */
.top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    font-size: 13px;
}

.utility-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.utility-links li {
    list-style: none;
}

.utility-links a {
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
}

.utility-links a:hover {
    color: #1E8200;
    text-decoration: none;
}

/* === Header === */
.site-header {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

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

.logo img {
    max-width: 220px;
    height: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    color: #1E8200;
}

.mobile-menu-toggle {
    display: none;
}

/* === Main Navigation === */
.main-nav {
    background: #1E8200;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

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

.nav-menu > li > a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.nav-menu > li > a .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    z-index: 1001;
    border-radius: 0 0 4px 4px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #1E8200;
    text-decoration: none;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* === Breadcrumb === */
.breadcrumb-bar {
    background: #f9f9f9;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
}

.breadcrumb a {
    color: #1E8200;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* === Content Layout (2-column) === */
.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.article-main {
    flex: 0 0 68%;
    max-width: 68%;
    min-width: 0;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* === Article Styles === */
.article-category {
    margin-bottom: 10px;
}

.category-badge {
    display: inline-block;
    background: #1E8200;
    color: #fff;
    padding: 4px 14px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
}

.category-badge:hover {
    background: #166d00;
    color: #fff;
    text-decoration: none;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 12px 0 15px;
    color: #222;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    flex-wrap: wrap;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.meta-separator {
    color: #ccc;
}

/* === Social Share Buttons === */
.social-share {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #bd081c; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-reddit { background: #ff4500; }
.share-telegram { background: #0088cc; }

/* === Featured & Inline Images === */
.featured-image,
.inline-image {
    margin: 20px 0;
}

.featured-image img,
.inline-image img {
    width: 100%;
    border-radius: 4px;
}

.featured-image figcaption,
.inline-image figcaption {
    font-size: 13px;
    color: #777;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

/* === Article Body === */
.article-body p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.8;
}

.article-body h2.awards-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1E8200;
    border-bottom: 2px solid #1E8200;
    padding-bottom: 8px;
}

.article-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #333;
}

.article-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 8px;
    color: #555;
}

.article-body ol {
    margin: 10px 0 20px 25px;
    list-style: decimal;
}

.article-body ol li {
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 15px;
}

.article-body strong {
    color: #111;
}

/* Napanta / Narendar Kunta highlight */
.napanta-detail {
    background: #f0f8e8;
    border-left: 4px solid #1E8200;
    padding: 15px 20px;
    margin: 10px 0 20px;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    border-radius: 0 4px 4px 0;
}

.napanta-detail strong {
    color: #1E8200;
}

/* === Post Navigation === */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.post-navigation a {
    font-size: 14px;
    color: #1E8200;
    font-weight: 500;
    flex: 1;
    font-family: 'Open Sans', sans-serif;
}

.post-navigation .nav-next {
    text-align: right;
}

/* === Sidebar === */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #1E8200;
    text-transform: uppercase;
    color: #222;
}

.subscription-btn {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.subscription-btn:hover {
    opacity: 0.9;
}

/* Latest News Widget */
.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-info {
    flex: 1;
}

.news-link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: block;
}

.news-link:hover {
    color: #1E8200;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
    font-family: 'Open Sans', sans-serif;
}

/* Web Stories Widget */
.stories-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stories-carousel::-webkit-scrollbar {
    height: 4px;
}

.stories-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.story-card {
    flex: 0 0 120px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.story-card img {
    width: 120px;
    height: 180px;
    object-fit: cover;
}

.story-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    padding: 30px 8px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.story-card:hover {
    text-decoration: none;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #333;
    font-size: 14px;
}

.category-list a:hover {
    color: #1E8200;
    text-decoration: none;
}

/* === Footer === */
.site-footer {
    background: #f1ce4e;
    margin-top: 40px;
}

.footer-top {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.footer-nav a:hover {
    color: #1E8200;
    text-decoration: none;
}

.footer-middle {
    padding: 20px 0;
}

.footer-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.policy-links a {
    color: #555;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
}

.policy-links a:hover {
    color: #1E8200;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #1E8200;
    text-decoration: none;
    color: #fff;
}

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

.copyright {
    font-size: 13px;
    color: #555;
}

/* === Search Overlay === */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
}

.search-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-overlay-inner {
    width: 90%;
    max-width: 600px;
    margin-top: 20vh;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.search-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

.search-close:hover {
    color: #ccc;
}

/* === Floating WhatsApp Button === */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: #fff;
}

/* === Responsive Design === */

/* Tablet */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .article-main,
    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nav-menu > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1E8200;
    }

    .nav-menu.active {
        display: flex;
    }

    .main-nav .container {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        padding: 8px 15px;
    }

    .main-nav .mobile-nav-toggle {
        color: #fff;
        font-size: 22px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-menu > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        display: none;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, 0.05);
        padding-left: 35px;
    }

    .dropdown-menu li a:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #fff;
    }

    .article-title {
        font-size: 22px;
    }

    .article-body h2.awards-heading {
        font-size: 19px;
    }

    .article-body h3 {
        font-size: 16px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-middle .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .policy-links {
        justify-content: center;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .header-inner {
        padding: 5px 0;
    }

    .logo img {
        max-width: 160px;
    }
}

/* Small Phone */
@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }

    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .container {
        padding: 0 10px;
    }

    .stories-carousel {
        gap: 8px;
    }

    .story-card {
        flex: 0 0 100px;
    }

    .story-card img {
        width: 100px;
        height: 150px;
    }
}
