/* Apna Digital Bharat: layout and components */

.adb-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.adb-main {
    min-height: 60vh;
}

.adb-section {
    padding-block: 64px;
}

.adb-content-width {
    max-width: 850px;
}

.adb-page-banner {
    padding-block: 64px;
    background: #f3f7fb;
}

.adb-page-banner h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
}

.adb-eyebrow {
    margin-bottom: 12px;
    color: #1769aa;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.adb-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e5eaf0;
}

.adb-header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.adb-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adb-brand .custom-logo {
    width: auto;
    max-height: 58px;
}

.adb-site-name,
.adb-footer-title {
    color: #15243a;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

.adb-site-description {
    color: #64748b;
    font-size: 0.8rem;
}

.adb-navigation ul,
.adb-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adb-navigation a,
.adb-footer a {
    text-decoration: none;
}

.adb-navigation a {
    color: #25344a;
    font-weight: 600;
}

.adb-navigation a:hover,
.adb-navigation a:focus-visible {
    color: #1769aa;
}

.adb-header-cta,
.adb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #1769aa;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.adb-header-cta:hover,
.adb-button:hover {
    background: #105386;
    color: #fff;
}

.adb-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.adb-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #15243a;
}

.adb-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.adb-post-card {
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #fff;
}

.adb-post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #edf2f7;
}

.adb-post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.adb-post-thumbnail:hover img {
    transform: scale(1.04);
}

.adb-post-card-body {
    padding: 24px;
}

.adb-post-date {
    color: #64748b;
    font-size: 0.85rem;
}

.adb-post-card-title {
    font-size: 1.3rem;
    line-height: 1.4;
}

.adb-post-card-title a {
    color: #15243a;
    text-decoration: none;
}

.adb-post-excerpt {
    color: #526174;
    line-height: 1.75;
}

.adb-read-more {
    color: #1769aa;
    font-weight: 700;
    text-decoration: none;
}

.adb-featured-image {
    margin-bottom: 32px;
}

.adb-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.adb-page-content,
.adb-single-content {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.adb-page-content img,
.adb-single-content img {
    max-width: 100%;
    height: auto;
}

.adb-page-links,
.adb-pagination,
.adb-post-navigation {
    margin-top: 36px;
}

.adb-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.adb-pagination a,
.adb-pagination .current {
    padding: 8px 12px;
    border: 1px solid #dce4ed;
    border-radius: 6px;
    text-decoration: none;
}

.adb-pagination .current {
    background: #1769aa;
    color: #fff;
}

.adb-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.adb-post-navigation a {
    color: #1769aa;
    text-decoration: none;
}

.adb-post-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
}

.adb-comments {
    margin-top: 48px;
}

.adb-comment-list {
    padding-left: 24px;
}

.adb-comment-list .comment {
    margin-bottom: 24px;
}

.adb-comments textarea,
.adb-comments input:not([type="submit"]),
.adb-error-search input[type="search"],
.adb-page-banner input[type="search"] {
    max-width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

.adb-comments textarea {
    width: 100%;
}

.adb-no-content,
.adb-error-page {
    text-align: center;
}

.adb-no-content {
    padding: 40px 0;
}

.adb-error-search {
    margin-top: 28px;
}

.adb-footer {
    padding-top: 56px;
    background: #142238;
    color: #e8eef6;
}

.adb-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.adb-footer h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.1rem;
}

.adb-footer-title {
    color: #fff;
}

.adb-footer p {
    line-height: 1.7;
    color: #c3cedc;
}

.adb-footer a {
    color: #e8eef6;
}

.adb-footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.adb-footer-bottom {
    padding-block: 18px;
    border-top: 1px solid #34445a;
}

.adb-footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.adb-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 1000;
    padding: 12px;
    background: #fff;
    color: #142238;
}

.adb-skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 3px solid #e6a23c;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .adb-menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .adb-header-cta {
        display: none;
    }

    .adb-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 20px;
        border-bottom: 1px solid #e5eaf0;
        background: #fff;
    }

    .adb-navigation.is-open {
        display: block;
    }

    .adb-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .adb-navigation li a {
        display: block;
        padding: 12px 8px;
    }

    .adb-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .adb-container {
        width: min(100% - 28px, 1180px);
    }

    .adb-section {
        padding-block: 40px;
    }

    .adb-page-banner {
        padding-block: 42px;
    }

    .adb-post-grid,
    .adb-footer-grid {
        grid-template-columns: 1fr;
    }

    .adb-footer-grid {
        gap: 28px;
    }

    .adb-header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .adb-post-card-body {
        padding: 18px;
    }

    .adb-post-navigation {
        flex-direction: column;
    }
}