/*
Theme Name: DailyDigiHelp
Theme URI: https://dailydigihelp.com
Author: DailyDigiHelp
Description: A professional, fast, and modern theme for digital information, government schemes, and telecom guides.
Version: 1.0.0
Text Domain: dailydigihelp
*/

/* === BASE STYLES === */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: #333; line-height: 1.6; background-color: #fff; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }

/* === LAYOUT CONTAINERS === */
.ddh-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ddh-section, .why-ddh, .contact-banner { padding: 80px 0; }
.ddh-section.light, .why-ddh.light { background-color: #f8fafc; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { color: #0f172a; font-weight: 700; line-height: 1.3; }
h2 { font-size: 2.2rem; margin-bottom: 15px; text-align: center; }
.section-text { text-align: center; color: #64748b; margin-bottom: 50px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* === HEADER & NAVIGATION === */
.site-header { background: #0f172a; padding: 20px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { color: #ffffff; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5px; }
.logo-text:hover { color: #e2e8f0; }
.main-navigation ul { list-style: none; display: flex; gap: 25px; margin: 0; }
.main-navigation a { color: #cbd5e1; font-weight: 500; font-size: 0.95rem; }
.main-navigation a:hover { color: #ffffff; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; }

/* === HERO SECTION === */
.ddh-hero { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); color: white; padding: 120px 0; text-align: center; }
.ddh-badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; }
.ddh-hero h1 { color: white; font-size: 3.8rem; margin-bottom: 25px; }
.ddh-subtitle { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; color: #e2e8f0; }
.ddh-description { max-width: 800px; margin: 0 auto 40px auto; color: #cbd5e1; font-size: 1.05rem; }

/* === SEARCH BARS === */
.ddh-search form { display: flex; max-width: 600px; margin: 0 auto; background: white; padding: 6px; border-radius: 50px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.ddh-search input { flex: 1; border: none; padding: 15px 25px; border-radius: 50px; outline: none; font-size: 1rem; color: #333; }
.ddh-search button { background: #2563eb; color: white; border: none; padding: 15px 35px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.ddh-search button:hover { background: #1d4ed8; }

/* === GRIDS & CLICKABLE CATEGORY CARDS === */
.ddh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.ddh-card { background: white; padding: 35px 30px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; display: flex; flex-direction: column; height: 100%; transition: all 0.3s ease; text-decoration: none; cursor: pointer; }
.ddh-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: #2563eb; }
.ddh-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: #0f172a; transition: color 0.3s; }
.ddh-card p { color: #64748b; margin-bottom: 25px; flex-grow: 1; }
.category-btn { display: block; width: 100%; background: #f1f5f9; color: #2563eb; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; }
.ddh-card:hover .category-btn { background: #2563eb; color: white; }

/* === POST CARDS (Blog Loop) === */
.post-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 20px -5px rgba(0,0,0,0.08); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-content h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.4; }
.post-content h3 a:hover { color: #2563eb; }
.post-content p { color: #64748b; margin-bottom: 20px; flex-grow: 1; font-size: 0.95rem; }
.read-more { color: #2563eb; font-weight: 600; font-size: 0.95rem; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* === WHY DDH SECTIONS === */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.why-box { text-align: center; padding: 30px 20px; background: white; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.why-box h3 { margin-bottom: 15px; color: #0f172a; font-size: 1.2rem; }
.why-box p { color: #64748b; font-size: 0.95rem; }

/* === SINGLE POST / PAGE CONTENT === */
.ddh-content-area { max-width: 850px; margin: 0 auto; background: white; padding: 50px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.entry-title { font-size: 2.5rem; margin-bottom: 15px; }
.entry-meta { color: #64748b; font-size: 0.95rem; margin-bottom: 30px; font-weight: 500; }
.post-thumbnail { margin-bottom: 40px; border-radius: 12px; overflow: hidden; }
.entry-content h2 { font-size: 1.8rem; text-align: left; margin: 40px 0 20px; }
.entry-content h3 { font-size: 1.4rem; margin: 30px 0 15px; }
.entry-content p { margin-bottom: 20px; font-size: 1.05rem; color: #334155; }
.entry-content ul, .entry-content ol { margin-bottom: 20px; padding-left: 20px; color: #334155; }
.entry-content li { margin-bottom: 10px; }

/* === CONTACT BANNER === */
.contact-banner { background: #2563eb; color: white; text-align: center; }
.contact-banner h2 { color: white; margin-bottom: 15px; }
.contact-banner p { max-width: 600px; margin: 0 auto 30px auto; color: #e2e8f0; font-size: 1.1rem; }
.contact-btn { display: inline-block; background: white; color: #2563eb; padding: 15px 35px; border-radius: 50px; font-weight: 700; transition: 0.3s ease; }
.contact-btn:hover { background: #f8fafc; transform: scale(1.02); }

/* === FOOTER === */
.ddh-footer { background: #0f172a; color: #cbd5e1; padding: 70px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-brand h3 { color: white; font-size: 1.8rem; margin-bottom: 15px; }
.footer-links h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #94a3b8; }
.footer-links ul li a:hover { color: #ffffff; padding-left: 5px; }
.footer-divider { border: 0; height: 1px; background: #1e293b; margin-bottom: 25px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-copyright { text-align: center; font-size: 0.95rem; color: #64748b; }

/* === RESPONSIVE (MOBILE/TABLET) === */
@media screen and (max-width: 992px) {
    .ddh-hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: span 2; }
    .ddh-content-area { padding: 40px 30px; }
}

@media screen and (max-width: 768px) {
    .ddh-hero { padding: 80px 0; }
    .ddh-hero h1 { font-size: 2.4rem; }
    .ddh-subtitle { font-size: 1.1rem; }
    .menu-toggle { display: block; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #0f172a; padding: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
    .main-navigation ul.toggled { display: flex; }
    .main-navigation li { width: 100%; text-align: center; margin-bottom: 15px; }
    .ddh-search form { flex-direction: column; padding: 15px; border-radius: 12px; }
    .ddh-search input, .ddh-search button { border-radius: 8px; width: 100%; padding: 15px; }
    .ddh-search button { margin-top: 10px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { grid-column: 1; }
    .entry-title { font-size: 2rem; }
    .ddh-content-area { padding: 30px 20px; }
}