/* --- GLOBAL BRANDING --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
    background-color: #F3F4F6;
    color: #333; line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- NAVIGATION --- */
.navbar { background-color: #091943; padding: 15px 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo-img { max-height: 35px; width: auto; }
.navbar nav a { color: #FFFFFF; margin-left: 25px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; }

/* --- BLOG SEARCH SECTION --- */
.search-wrapper { max-width: 700px; margin: 50px auto; text-align: center; }
.search-wrapper h1 { color: #091943; margin-bottom: 10px; }
#blog-search {
    width: 100%; padding: 16px 25px; border-radius: 50px; border: 2px solid #ddd;
    font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); outline: none;
}

/* --- THE GRID SYSTEM --- */
.grid-container { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; 
    gap: 30px !important; 
    margin: 40px 0;
}

.grid-card { 
    background: #ffffff; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s;
    text-decoration: none !important;
}

.grid-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.grid-image { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    background-color: #e5e7eb; 
}

.grid-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.grid-body small { color: #2463eb; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; }
.grid-body h3 { margin: 10px 0; color: #091943; font-size: 1.2rem; line-height: 1.4; }
.grid-link { margin-top: auto; color: #2463eb; font-weight: 600; font-size: 0.9rem; }

/* --- LOAD MORE BUTTON (POLISHED) --- */
.btn-cta { 
    display: block;
    width: fit-content;
    background: #091943; 
    color: #ffffff !important; 
    padding: 16px 45px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 40px auto; /* Centers the button */
    box-shadow: 0 4px 12px rgba(9, 25, 67, 0.2);
}

.btn-cta:hover { 
    background: #2463eb; 
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(36, 99, 235, 0.3);
}

/* --- POST VIEW & SPACING --- */
.reading-experience { max-width: 800px; margin: 40px auto; background: #fff; padding: 40px; border-radius: 12px; }
.blog-body-text > * { margin-top: 0 !important; margin-bottom: 1.2rem !important; }
.blog-body-text h2 { margin-top: 2.5rem !important; color: #091943; }

/* --- YOUTUBE CARD --- */
.video-link-card { margin: 30px 0; display: block; text-decoration: none; }
.video-thumbnail { 
    width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative;
}
.play-btn { background: #ff0000; color: white; padding: 12px 24px; border-radius: 10px; font-weight: bold; }

/* --- UNIFIED FOOTER --- */
.footer { background-color: #091943; color: #F3F4F6; padding: 60px 0 30px; margin-top: 80px; border-top: 4px solid #2463eb; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-column h3 { color: #FFFFFF !important; margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.footer-column a, .footer-column p { color: #d1d5db !important; text-decoration: none; display: block; margin-bottom: 12px; font-size: 0.95rem; }
.social-links { display: flex; gap: 20px; margin-top: 15px; }
.social-links a { font-size: 1.5rem; color: #2463eb !important; text-decoration: none; transition: 0.3s; }
.social-links a:hover { transform: translateY(-3px); }
.copyright { width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-top: 50px; opacity: 0.7; font-size: 0.85rem; }

/* --- TECHTUBE STUDIO CTA BOX --- */
.techtube-cta {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
}

.techtube-cta h3 {
    color: #091943;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.techtube-cta p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 25px;
    font-size: 1rem;
}

/* Ensure the button inside the CTA looks great */
.techtube-cta .btn-cta {
    display: inline-block;
    margin: 0;
}