/*
Theme Name: HinduDevGyan Magazine Premium
Theme URI: https://hindudevgyan.in
Author: Antigravity Agent
Description: Magazine Style theme perfectly integrating WordPress Native Widgets, Custom Logo, and Menus. Replaces Elementor seamlessly.
Version: 4.0
*/

/* CSS Variables - Matching exactly with original logo */
:root {
    --primary-color: #f78d1e; /* Original Logo Orange */
    --secondary-color: #0b3d6e; /* Original Logo Dark Blue */
    --text-dark: #1A1A1A; 
    --text-gray: #555555;
    --bg-body: #F9FAFB; 
    --bg-surface: #FFFFFF;
    --border-light: #E5E7EB;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-body); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

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

/* Top Bar */
.top-bar { background-color: var(--secondary-color); color: white; padding: 6px 0; font-size: 13px; font-weight: 500; }
.top-bar .social-icons a { margin-left: 15px; color: white; opacity: 0.9; }
.top-bar .social-icons a:hover { opacity: 1; }

/* Header & Menus */
.site-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; }
.logo span { color: var(--primary-color); }
.custom-logo { max-height: 60px; width: auto; object-fit: contain; }

.nav-links li { position: relative; }
.nav-links li a { font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); padding: 5px 0; }
.nav-links li a:hover { color: var(--primary-color); }
.nav-links .current-menu-item > a { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

/* WP Dropdown Menu Fix (Jainism, Sikhism, etc.) */
.nav-links ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    flex-direction: column;
    gap: 0;
}
.nav-links li:hover > .sub-menu { display: flex; }
.nav-links .sub-menu li { display: block; width: 100%; }
.nav-links .sub-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    display: block;
    text-transform: none;
    font-weight: 500;
}
.nav-links .sub-menu a:hover { background: #f9f9f9; padding-left: 25px; }

/* Slider CSS */
.slider-container { display:flex; width: 100%; height: 450px; position:relative; }
.slide { width: 100%; height: 100%; position: absolute; top:0; left:0; opacity:0; transition: opacity 0.8s ease; background-size: cover; background-position: center; z-index:1; }
.slide.active { opacity: 1; z-index: 2; }
.slide-overlay { position:absolute; bottom:0; left:0; right:0; padding:60px 40px 40px; background:linear-gradient(transparent, rgba(0,0,0,0.8)); color:white; }
.slide-overlay h2 { font-family: var(--font-heading); font-size:36px; margin-bottom:20px; text-shadow:2px 2px 4px rgba(0,0,0,0.5); }
.slide-overlay h2 a { color:white; }
.slide-overlay h2 a:hover { color:var(--primary-color); }
.slide-btn { background:var(--primary-color); padding:12px 30px; color:white; border-radius:4px; font-weight:700; text-transform:uppercase; font-size:13px; display:inline-block; }
.slide-btn:hover { background: #d97510; color:white; }
.slider-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:white; border:none; padding:15px; cursor:pointer; font-size:24px; z-index:10; }
.slider-btn:hover { background:var(--primary-color); }
.prev-btn { left:0; }
.next-btn { right:0; }

/* Footer Link Adjustments */
.footer-nav-list { list-style:none; padding:0; margin:0; }
.footer-nav-list li { margin-bottom:12px; }
.footer-nav-list a { color: #9CA3AF; transition: color 0.2s; }
.footer-nav-list a:hover { color: var(--primary-color); }

/* Make sure footer overrides are removed since we wrote them inline or above */

/* --- HERO BENTO GRID (Prototype Perfect) --- */
.hero { padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; height: 500px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #e5e5e5; box-shadow: var(--shadow-md); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 40px; color: white; }
.category-tag-prototype { background: var(--primary-color); color: white; display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.category-tag-prototype.dark-tag { background: var(--text-dark); }
.hero-overlay h2 { font-family: var(--font-heading); font-size: 34px; line-height: 1.2; margin-bottom: 10px; }
.hero-overlay h2 a { color: white; transition: color 0.2s; }
.hero-overlay h2 a:hover { color: var(--primary-color); }
.hero-side { display: flex; flex-direction: column; gap: 24px; }
.hero-sub { position: relative; border-radius: var(--radius); overflow: hidden; height: calc(50% - 12px); background: #d5d5d5; box-shadow: var(--shadow-sm); }
.hero-sub .hero-overlay { padding: 20px; }
.hero-sub .hero-overlay h2 { font-size: 20px; }

/* --- MAIN LAYOUT & ARTICLES (Prototype Perfect) --- */
.main-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 0 0 80px; align-items: start; }
.section-title { font-family: var(--font-heading); font-size: 24px; color: var(--text-dark); margin-bottom: 30px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--primary-color); }

.article-card-prototype { display: flex; gap: 24px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-light); transition: transform 0.2s; background: transparent; }
.article-card-prototype:hover { transform: translateX(5px); }
.article-img-prototype { width: 250px; height: 160px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.article-img-prototype img { width: 100%; height: 100%; object-fit: cover; }
.article-content-prototype { display: flex; flex-direction: column; justify-content: center; }
.article-title-prototype { font-family: var(--font-heading); font-size: 22px; margin: 10px 0; line-height: 1.3; font-weight: 700; color: var(--text-dark); }
.article-title-prototype a { color: var(--text-dark); }
.article-excerpt-prototype { color: var(--text-gray); font-size: 15px; margin-bottom: 15px; }
.article-meta-prototype { font-size: 13px; color: #888; font-weight: 500; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-main { height: 400px; }
    .hero-side { flex-direction: row; height: 250px; }
    .hero-sub { width: 50%; height: 100%; }
    .main-layout { grid-template-columns: 1fr; }
    .article-card-prototype { flex-direction: column; }
    .article-img-prototype { width: 100%; height: 200px; }
    .sidebar { position: relative; top: 0; margin-top: 40px; }
}

/* Entry Content (Posts) */
.entry-content { font-family: var(--font-body); font-size: 18px; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 20px; }
.entry-content h2, .entry-content h3 { font-family: var(--font-heading); margin: 30px 0 15px; color: var(--text-dark); }
.entry-content ul, .entry-content ol { margin-left: 20px; margin-bottom: 20px; }

/* Footer */
footer { background: #111827; color: #9CA3AF; padding: 60px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-family: var(--font-heading); color: white; margin-bottom: 20px; }
.footer-menu-list { list-style: none; display:flex; flex-direction:column; gap:10px; }
.footer-menu-list a { color: #9CA3AF; }
.footer-menu-list a:hover { color: white; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; font-size: 14px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-main { height: 400px; }
    .hero-side { flex-direction: row; height: 250px; }
    .hero-sub { width: 50%; height: 100%; }
    .main-layout { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-img { width: 100%; height: 200px; }
    .sidebar { position: relative; top: 0; }
}
