/*
Theme Name: Clean Grid PRO Child - Lakamsani
Template: clean-grid-pro
Description: Child theme matching lakamsani.me landing page design
Author: Krishna Lakamsani
Version: 1.0.0
*/

/* ══════════════════════════════════════
   GLOBAL OVERRIDES
   ══════════════════════════════════════ */

html {
    font-size: 62.5%;
}

body,
body.clean-grid-animated.clean-grid-fadein {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #fafaf9 !important;
    color: #1a1a1a !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.clean-grid-site-title a,
.clean-grid-post-title,
.clean-grid-post-title a {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #1a1a1a !important;
    font-weight: 600;
}

a {
    color: #2563eb;
    transition: color 0.2s ease;
}

a:hover {
    color: #a31f34;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */

.clean-grid-header,
#clean-grid-header {
    background: #fafaf9 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: none !important;
}

.clean-grid-head-content,
#clean-grid-head-content {
    background: transparent !important;
    padding: 1.5rem 2rem !important;
}

.clean-grid-header-image {
    display: none !important;
}

.clean-grid-site-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.4rem !important;
}

.clean-grid-site-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.clean-grid-site-description {
    color: #5a5a5a !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.3rem !important;
}

/* ══════════════════════════════════════
   NAVIGATION — clean minimal bar
   ══════════════════════════════════════ */

.clean-grid-menu-container,
div.clean-grid-menu-container {
    background: #faf9f7 !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.clean-grid-menu-container-inside {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav.clean-grid-nav-primary,
#clean-grid-primary-navigation {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.clean-grid-nav-menu,
ul.clean-grid-nav-menu,
ul.menu-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    gap: 0 !important;
}

.clean-grid-nav-menu li,
.menu-primary li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-flex !important;
}

.clean-grid-nav-menu li a,
.menu-primary li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 20px 24px !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
    position: relative !important;
    display: block !important;
}

.clean-grid-nav-menu li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 18px !important;
    right: 18px !important;
    height: 2px !important;
    background: #a31f34 !important;
    transform: scaleX(0) !important;
    transition: transform 0.25s ease !important;
}

.clean-grid-nav-menu li a:hover::after,
.clean-grid-nav-menu li.current-menu-item a::after,
.clean-grid-nav-menu li.current_page_item a::after {
    transform: scaleX(1) !important;
}

.clean-grid-nav-menu li a:hover,
.menu-primary li a:hover,
.clean-grid-nav-menu li.current-menu-item a,
.clean-grid-nav-menu li.current_page_item a {
    color: #111 !important;
    background: transparent !important;
}

/* Hide social icons in nav */
.clean-grid-top-social-icons {
    display: none !important;
}

.clean-grid-social-search-icon {
    color: #5a5a5a !important;
}

/* ══════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════ */

.clean-grid-wrapper,
#clean-grid-wrapper {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    background: transparent !important;
}

.clean-grid-content-wrapper {
    background: transparent !important;
}

/* ══════════════════════════════════════
   POST CARDS (Homepage Grid)
   ══════════════════════════════════════ */

.clean-grid-posts-wrapper,
.clean-grid-posts {
    background: transparent !important;
}

.clean-grid-post-wrapper,
.clean-grid-post-box {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1.5rem !important;
}

.clean-grid-post-wrapper:hover,
.clean-grid-post-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important;
}

/* Post thumbnails */
.clean-grid-post-thumbnail img,
.clean-grid-post-thumb img {
    border-radius: 14px 14px 0 0 !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Post titles */
.clean-grid-post-title {
    font-size: 1.8rem !important;
    line-height: 1.35 !important;
    margin: 0.8rem 0 !important;
}

.clean-grid-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.clean-grid-post-title a:hover {
    color: #a31f34 !important;
}

/* Post meta */
.clean-grid-post-meta,
.clean-grid-post-date,
.clean-grid-post-author,
.clean-grid-post-categories,
.clean-grid-entry-meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
    color: #8a8a8a !important;
}

.clean-grid-entry-meta a {
    color: #5a5a5a !important;
}

/* Post content/excerpt */
.clean-grid-post-content,
.clean-grid-post-summary,
.clean-grid-entry-content {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.5rem !important;
    line-height: 1.75 !important;
    color: #5a5a5a !important;
    padding: 0 1.5rem 1.5rem !important;
}

/* Post inner padding */
.clean-grid-post-data,
.clean-grid-post-details {
    padding: 0.5rem 1.5rem 1rem !important;
}

/* ══════════════════════════════════════
   GRID POST CARDS (actual class names)
   ══════════════════════════════════════ */

.clean-grid-grid-post {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.clean-grid-grid-post:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}

.clean-grid-grid-post-thumbnail img {
    border-radius: 0 !important;
}

.clean-grid-grid-post-details {
    padding: 1rem 1.25rem !important;
}

.clean-grid-grid-post-categories a {
    background: #a31f34 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 2px 8px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
}

.clean-grid-grid-post-categories a:hover {
    background: #1a3a5c !important;
}

.clean-grid-grid-post h2,
.clean-grid-grid-post h2 a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.6rem !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
}

.clean-grid-grid-post h2 a:hover {
    color: #a31f34 !important;
}

.clean-grid-grid-post-footer,
.clean-grid-grid-post-snippet {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.25rem !important;
    color: #5a5a5a !important;
    line-height: 1.6 !important;
}

.clean-grid-grid-post-mask,
.clean-grid-grid-post-mask-inside {
    box-shadow: none !important;
}

/* Posts container */
.clean-grid-posts-container {
    gap: 1.25rem !important;
}

/* 4-col grid items */
.clean-grid-4-col {
    margin: 0 !important;
    padding: 0.5rem !important;
}

/* "Recent Posts" heading — override dark bar */
.clean-grid-posts-heading,
div.clean-grid-posts-heading,
.clean-grid-posts-wrapper .clean-grid-posts-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    color: #1a1a1a !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    text-align: center !important;
    padding: 0.5rem 0 1.5rem !important;
    text-transform: none !important;
    box-shadow: none !important;
}

/* Fix "RECENT POSTS" dark bar — it's a span with bg:#333 */
.clean-grid-posts-title,
h1.clean-grid-posts-title {
    background: transparent !important;
    border-bottom: 2px solid rgba(0,0,0,0.08) !important;
    text-align: center !important;
}

.clean-grid-posts-title span {
    background: #fafaf9 !important;
    background-color: #fafaf9 !important;
    color: #1a1a1a !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 0 1rem !important;
    position: relative !important;
    top: 2px !important;
}

/* Fix nav — both container AND the nav element itself */
.clean-grid-menu-container,
div.clean-grid-menu-container,
nav.clean-grid-nav-primary,
#clean-grid-primary-navigation {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Force rounded corners with higher specificity */
div.clean-grid-grid-post,
.clean-grid-posts-container .clean-grid-grid-post,
.clean-grid-4-col .clean-grid-grid-post {
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* Remove header grey background bar */
.clean-grid-head-content,
#clean-grid-head-content,
div.clean-grid-head-content {
    background: #fafaf9 !important;
    background-color: #fafaf9 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Sticky nav fix */
.clean-grid-fixed .clean-grid-menu-container {
    background: #ffffff !important;
}

/* ══════════════════════════════════════
   CATEGORY BADGES
   ══════════════════════════════════════ */

.clean-grid-post-categories a,
.clean-grid-cat-links a,
.cat-links a,
span.clean-grid-post-categories a,
.clean-grid-entry-meta .cat-links a {
    background: #a31f34 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 2px !important;
    transition: background 0.2s !important;
}

.clean-grid-post-categories a:hover,
.clean-grid-cat-links a:hover,
.cat-links a:hover {
    background: #1a3a5c !important;
}

/* ══════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════ */

.clean-grid-main-wrapper {
    background: transparent !important;
}

.type-post,
.type-page,
article.post,
article.page {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
}

.entry-title,
.clean-grid-entry-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
}

.entry-content,
.clean-grid-entry-content {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.6rem !important;
    line-height: 1.8 !important;
    color: #1a1a1a !important;
}

.entry-content p {
    margin-bottom: 1.5rem !important;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Playfair Display', serif !important;
    margin-top: 2rem !important;
    margin-bottom: 0.8rem !important;
}

.entry-content img {
    border-radius: 10px !important;
    max-width: 100% !important;
    height: auto !important;
}

.entry-content blockquote {
    border-left: 4px solid #a31f34 !important;
    padding: 1rem 2rem !important;
    background: #f5f3ef !important;
    border-radius: 0 10px 10px 0 !important;
    font-style: italic !important;
    color: #5a5a5a !important;
    margin: 1.5rem 0 !important;
}

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */

.clean-grid-sidebar,
#clean-grid-sidebar {
    background: transparent !important;
}

.widget,
.clean-grid-side-widget {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.widget-title,
.clean-grid-widget-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.6rem !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #a31f34 !important;
    padding-bottom: 0.6rem !important;
    margin-bottom: 1rem !important;
}

/* ══════════════════════════════════════
   READ MORE BUTTON
   ══════════════════════════════════════ */

.clean-grid-post-readmore a,
.more-link,
a.clean-grid-more-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    text-decoration: none !important;
    border: 2px solid #2563eb !important;
    padding: 6px 18px !important;
    border-radius: 8px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.clean-grid-post-readmore a:hover,
.more-link:hover,
a.clean-grid-more-link:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* ══════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════ */

.clean-grid-pagination,
.nav-links {
    font-family: 'Inter', sans-serif !important;
}

.page-numbers,
.nav-links a,
.nav-links span {
    background: #ffffff !important;
    color: #5a5a5a !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

.page-numbers.current,
.nav-links span.current {
    background: #1a3a5c !important;
    color: #ffffff !important;
    border-color: #1a3a5c !important;
}

.page-numbers:hover,
.nav-links a:hover {
    background: #f5f3ef !important;
    color: #1a1a1a !important;
}

/* ══════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════ */

.comments-area {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
    padding: 2rem !important;
    margin-top: 1.5rem !important;
}

.comments-title,
#reply-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    font-family: 'Inter', sans-serif !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    background: #fafaf9 !important;
    font-size: 1.4rem !important;
    transition: border-color 0.2s !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #2563eb !important;
    outline: none !important;
}

.comment-form input[type="submit"],
.form-submit input[type="submit"] {
    font-family: 'Inter', sans-serif !important;
    background: #1a3a5c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.comment-form input[type="submit"]:hover {
    background: #a31f34 !important;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.clean-grid-social-icons,
.clean-grid-footer-blocks,
#clean-grid-footer-blocks {
    display: none !important;
}

.clean-grid-footer,
#clean-grid-footer {
    background: #f5f3ef !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding: 2rem !important;
    text-align: center !important;
}

.clean-grid-copyright {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.3rem !important;
    color: #8a8a8a !important;
}

.clean-grid-copyright a {
    color: #b8860b !important;
    text-decoration: none !important;
}

.clean-grid-credit {
    display: none !important;
}

/* ══════════════════════════════════════
   NEWS TICKER (hide)
   ══════════════════════════════════════ */

.clean-grid-news-ticker-area {
    display: none !important;
}

/* ══════════════════════════════════════
   FEATURED AREA (simplify)
   ══════════════════════════════════════ */

.clean-grid-featured-posts-area {
    background: transparent !important;
}

/* ══════════════════════════════════════
   SECTION HEADINGS (Recent Posts, etc)
   ══════════════════════════════════════ */

.clean-grid-posts-heading,
.page-title,
.archive-title,
.clean-grid-page-header-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important;
    color: #1a1a1a !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    padding: 1rem 0 2rem !important;
}

/* ══════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════ */

.clean-grid-scroll-top {
    background: #1a3a5c !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.clean-grid-scroll-top:hover {
    background: #a31f34 !important;
}

/* ══════════════════════════════════════
   SEARCH FORM
   ══════════════════════════════════════ */

.search-form input[type="search"],
.clean-grid-search-input {
    font-family: 'Inter', sans-serif !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    background: #fafaf9 !important;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
    .entry-title,
    .clean-grid-entry-title {
        font-size: 2.2rem !important;
    }

    .entry-content,
    .clean-grid-entry-content {
        font-size: 1.5rem !important;
    }

    .clean-grid-wrapper,
    #clean-grid-wrapper {
        padding: 1rem !important;
    }

    .type-post,
    .type-page,
    article.post,
    article.page {
        padding: 1.5rem !important;
    }
}
