/*
Theme Name: DailyDigiHelp Theme
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 & GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* { 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; }
.ddh-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === SECTION STYLING === */
.ddh-section, .why-ddh, .contact-banner, .ddh-page-content { padding: 80px 0; }
.ddh-section.light { background-color: #f8fafc; }
h1, h2, h3, h4 { color: #1e293b; }
h2 { font-size: 2rem; margin-bottom: 10px; text-align: center; }
.section-text { text-align: center; color: #64748b; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* === HERO SECTION === */
.ddh-hero { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); color: white; padding: 100px 0; text-align: center; }
.ddh-hero h1 { color: white; font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; }
.ddh-badge { display: inline-block; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; margin-bottom: 20px; }
.ddh-subtitle { font-size: 1.25rem; font-weight: 600; margin-bottom: 15px; color: #e2e8f0; }
.ddh-description { max-width: 800px; margin: 0 auto 40px auto; color: #cbd5e1; }

/* === SEARCH BAR === */
.ddh-search form { display: flex; max-width: 600px; margin: 0 auto; background: white; padding: 5px; 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; }
.ddh-search button { background: #2563eb; color: white; border: none; padding: 15px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; }
.ddh-search button:hover { background: #1d4ed8; }

/* === GRID & CARDS === */
.ddh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.ddh-card { background: white; padding: 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: transform 0.3s, box-shadow 0.3s; }
.ddh-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: #cbd5e1; }
.ddh-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.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; transition: 0.3s; }
.ddh-card:hover .category-btn { background: #2563eb; color: white; }

/* === POST CARDS (For Archives/Latest Posts) === */
.post-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.3s; }
.post-card:hover { transform: translateY(-5px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-content { padding: 25px; }
.post-content h3 { margin-bottom: 10px; font-size: 1.2rem; }
.post-content p { color: #64748b; margin-bottom: 15px; font-size: 0.95rem; }
.read-more { color: #2563eb; font-weight: 600; }

/* === STANDARD PAGE / POST CONTENT === */
.ddh-page-title { font-size: 2.5rem; margin-bottom: 20px; text-align: left; }
.ddh-content-area { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-top: 40px; }
.ddh-content-area img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.ddh-content-area p { margin-bottom: 20px; }
.ddh-content-area h2, .ddh-content-area h3 { text-align: left; margin-top: 30px; margin-bottom: 15px; }

/* === FOOTER === */
.ddh-footer { background: #0f172a; color: #cbd5e1; padding: 60px 20px 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3, .footer-links h4 { color: white; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a:hover { color: white; }
.footer-divider { border: 0; height: 1px; background: #1e293b; margin-bottom: 25px; }
.footer-copyright { text-align: center; font-size: 0.9rem; color: #64748b; }

@media (max-width: 768px) {
    .ddh-hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .ddh-search form { flex-direction: column; }
    .ddh-search input, .ddh-search button { border-radius: 8px; width: 100%; }
}