/*
Theme Name:   Astra Child Theme
Theme URI:    http://example.com/astra-child/
Description:  A custom child theme for Astra, based on EdTech Insights template.
Author:       Your Name
Author URI:   http://example.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* Your custom CSS from the template goes below this line */

:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --secondary: #f9f9f9;
    --text: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border: 1px solid #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: var(--text);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: #ff6b00;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.search-bar {
    display: flex;
    margin-left: 30px;
}

.search-bar input {
    padding: 8px 15px;
    border: var(--border);
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-bar button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.8)), url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Featured Section */
.featured-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.featured-post {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-left {
    flex: 1;
}

.featured-left img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.featured-right {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 15px;
}

.featured-right h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.featured-right p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    min-height: 60px; /* Adjust as needed */
}

.post-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Categories */
.categories {
    margin: 40px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories a {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.categories a:hover {
    background: var(--primary-dark);
}

/* Newsletter */
.floating-newsletter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border: var(--border);
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.floating-newsletter.hidden {
    transform: translateY(150%);
}

.floating-newsletter h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.floating-newsletter p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.floating-newsletter input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: var(--border);
    border-radius: 4px;
}

.floating-newsletter button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.floating-newsletter button:hover {
    background: var(--primary-dark);
}

.floating-newsletter .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #888;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #222;
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #333;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-post {
        flex-direction: column;
    }
    
    .featured-left img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .search-bar {
        margin: 15px 0 0;
        width: 100%;
        max-width: 400px;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .floating-newsletter {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .featured-right h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}