/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* ==================================
   GLOBAL VARIABLES
================================== */

:root {

    --amazon-orange: #ff9900;
    --amazon-blue: #232f3e;

    --text: #222222;
    --muted: #6b7280;

    --bg: #ffffff;
    --light-bg: #f7f8fa;

    --radius: 14px;

    --shadow:
        0 4px 12px rgba(0,0,0,.06);

    --container: 1200px;
}

/* ==================================
   GLOBAL
================================== */

body {
    background: #fff;
    color: var(--text);
}

.site-content {
    padding-top: 0 !important;
}

.kindle-container {

    max-width: var(--container);

    margin: auto;

    padding-left: 20px;
    padding-right: 20px;
}

.section-title {

    font-size: 2rem;

    font-weight: 700;

    margin-bottom: 30px;
}

.kindle-section {

    padding: 70px 0;
}

/* ==================================
   HERO
================================== */

.home-hero {

    background: linear-gradient(
        135deg,
        #232f3e,
        #1d2733
    );

    color: white;

    padding: 100px 0;
	
	margin-top: 0;
}

.hero-grid {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 50px;

    align-items: center;
}

.hero-title {

    font-size: 3.5rem;

    line-height: 1.1;

    margin-bottom: 20px;

    color: #ffffff;

    font-weight: 500;
	
	max-width: 550px;
}

.hero-subtitle {

    font-size: 1.15rem;

    color: rgba(255,255,255,.9);

    max-width: 650px;

    margin-bottom: 35px;
}

.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.btn-primary {

    background: var(--amazon-orange);

    color: white;

    padding: 16px 30px;
	
	font-size: 1.05rem;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;
}

.btn-secondary {

    background: white;

    color: var(--amazon-blue);

    padding: 16px 30px;
	
	font-size: 1.05rem;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;
}

.hero-device {

    background: rgba(255,255,255,.08);

    border-radius: 20px;

    min-height: 350px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.4rem;

    color: #ffffff;

    text-align: center;

    padding: 30px;
	
}

.hero-image {

    max-width: 100%;

    max-height: 400px;

    height: auto;

    display: block;

    margin: 0 auto;
}

/* ==================================
   SHOP BY NEED
================================== */

.need-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 20px;
}

.need-card {

    background: white;

    border: 1px solid #eee;

    border-radius: var(--radius);

    padding: 25px;

    text-align: center;

    transition: .3s;

    box-shadow: var(--shadow);
}

.need-card:hover {

    transform: translateY(-5px);
}

/* ==================================
   FEATURED GUIDES
================================== */

.featured-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 25px;
}

.featured-card {

    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);
}

.featured-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;
}

.featured-content {

    padding: 20px;
}

/* ==================================
   POST GRID
================================== */

.posts-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 25px;
}

.post-card {

    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: .3s;
}

.post-card:hover {

    transform: translateY(-4px);
}

.post-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;
}

.post-content {

    padding: 18px;
}

.post-title {

    font-size: 1.05rem;

    line-height: 1.4;

    font-weight: 600;

    margin-bottom: 10px;
}

.post-title a {

    color: var(--text);

    text-decoration: none;
}

.post-meta {

    color: var(--muted);

    font-size: .85rem;
}

/* ==================================
   COMPARISON CTA
================================== */

.comparison-cta {

    background: var(--amazon-blue);

    color: white;

    border-radius: 18px;

    padding: 60px;

    text-align: center;
}

/* ==================================
   NEWSLETTER
================================== */

.newsletter-box {

    background: var(--light-bg);

    border-radius: 18px;

    padding: 60px;

    text-align: center;
}

.newsletter-form {

    max-width: 600px;

    margin: 30px auto 0;

    display: flex;

    gap: 10px;
}

.newsletter-form input {

    flex: 1;

    padding: 15px;

    border: 1px solid #ddd;

    border-radius: 8px;
}

.newsletter-form button {

    background: var(--amazon-orange);

    color: white;

    border: none;

    padding: 15px 25px;

    border-radius: 8px;

    cursor: pointer;
}

/* ==================================
   MOBILE
================================== */

@media(max-width:1024px){

    .hero-grid,
    .need-grid,
    .featured-grid,
    .posts-grid{

        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px){

    .hero-grid,
    .need-grid,
    .featured-grid,
    .posts-grid{

        grid-template-columns: 1fr;
    }

    .hero-title{

        font-size: 2.3rem;
    }

    .newsletter-form{

        flex-direction: column;
    }

    .comparison-cta,
    .newsletter-box{

        padding: 35px 20px;
    }
}

.single-featured-image {

    margin-bottom: 25px;
}

.single-featured-image img {

    width: 100%;

    height: auto;

    border-radius: 12px;

    display: block;
}

.entry-title {

    margin-top: 20px;

    margin-bottom: 10px;
}

.entry-meta {

    margin-bottom: 25px;

    color: #666;
}

/* Homepage */
.home .site-content .ast-container {

    max-width: 1280px !important;
}

/* Single Posts */
.single-post .site-content .ast-container {

    max-width: 950px !important;
}

.single-featured-image {

    max-width: 100%;

    margin-bottom: 30px;
}

.single-featured-image img {

    width: 100%;

    height: auto;

    border-radius: 12px;
}

.entry-content {

    font-size: 20px;

    line-height: 1.8;
}

/* ==================================================
   DEAL BOX
================================================== */

.kindle-deal-box {

    background: #232f3e;

    color: #fff;

    padding: 30px;

    border-radius: 12px;

    margin: 50px 0;
}

.kindle-deal-box h3 {

    color: #fff;

    margin-bottom: 10px;
}

.deal-label {

    display: inline-block;

    background: #ff9900;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    padding: 6px 10px;

    border-radius: 4px;

    margin-bottom: 15px;
}

.deal-button {

    display: inline-block;

    margin-top: 15px;

    background: #ff9900;

    color: #fff !important;

    padding: 12px 20px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 700;
}


/* ==================================================
   NEWSLETTER
================================================== */

.kindle-newsletter {

    background: #f7f8fa;

    padding: 35px;

    border-radius: 12px;

    margin: 50px 0;
}

.kindle-newsletter form {

    display: flex;

    gap: 10px;

    margin-top: 20px;
}

.kindle-newsletter input {

    flex: 1;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 6px;
}

.kindle-newsletter button {

    background: #ff9900;

    border: none;

    color: #fff;

    padding: 12px 24px;

    border-radius: 6px;

    cursor: pointer;
}


/* ==================================================
   AUTHOR BOX
================================================== */

.kindle-author-box {

    background: #f7f8fa;

    padding: 30px;

    border-radius: 12px;

    margin: 50px 0;
}

.kindle-author-box h3 {

    margin-bottom: 15px;
}


/* ==================================================
   RELATED POSTS
================================================== */

.kindle-related-posts {

    margin-top: 60px;
}

.related-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 25px;

    margin-top: 25px;
}

.related-card {

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.related-card img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    display: block;
}

.related-card h4 {

    padding: 15px;

    font-size: 18px;

    line-height: 1.4;

    margin: 0;
}

.related-card a {

    color: inherit;

    text-decoration: none;
}


/* ==================================================
   MOBILE
================================================== */

@media(max-width:768px){

    .related-grid{

        grid-template-columns:1fr;
    }

    .kindle-newsletter form{

        flex-direction:column;
    }

}

/* ==================================
   COMMENTS
================================== */

.comments-area {

    margin-top: 60px;

    padding-top: 40px;

    border-top: 1px solid #e5e7eb;
}

.comments-title {

    margin-bottom: 25px;
}

.comment-list {

    list-style: none;

    padding: 0;
}

.comment {

    margin-bottom: 25px;

    padding-bottom: 25px;

    border-bottom: 1px solid #eee;
}

.comment-author {

    font-weight: 600;
}

.comment-meta {

    font-size: 14px;

    color: #666;

    margin-bottom: 10px;
}

.comment-respond {

    margin-top: 40px;
}

.comment-form textarea {

    width: 100%;

    min-height: 180px;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {

    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 6px;

    margin-bottom: 15px;
}

.comment-form input[type="submit"] {

    background: #ff9900;

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 600;
}

/* ==================================
   FOOTER
================================== */

.kindle-footer {

    background: #232f3e;

    color: #ffffff;

    margin-top: 80px;

    padding: 60px 20px 30px;
}

.footer-inner {

    max-width: 1200px;

    margin: 0 auto;

    text-align: center;
}

.footer-inner h3 {

    color: #ffffff;

    margin-bottom: 15px;

    font-size: 28px;
}

.footer-tagline {

    max-width: 650px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,.8);

    line-height: 1.7;
}

.footer-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-bottom: 35px;
}

.footer-links a {

    color: #ffffff;

    text-decoration: none;

    font-weight: 500;
}

.footer-links a:hover {

    color: #ff9900;
}

.footer-copyright {

    border-top: 1px solid rgba(255,255,255,.15);

    padding-top: 25px;

    color: rgba(255,255,255,.7);

    font-size: 14px;
}





.home #primary {
    width: 100% !important;
}

.home .site-main {
    width: 100% !important;
}

.home .ast-container {
    display: block !important;
}

/* =================================
 		* SOCIAL SHARE
==================================*/

.kindle-share-box {

    margin: 40px 0;

    text-align: center;
}

.share-buttons {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.share-buttons a {

    background: #232f3e;

    color: #fff;

    padding: 10px 18px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 600;
}

.share-buttons a:hover {

    background: #ff9900;
}

.footer-social {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin: 25px 0;
}

.footer-social a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 110px;

    height: 42px;

    background: rgba(255,255,255,.08);

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    transition: .2s;
}

.footer-social a:hover {

    background: #ff9900;

    color: #fff;
}

.footer-disclosure {

    margin-top: 25px;

    font-size: 13px;

    opacity: .75;

    line-height: 1.6;
}