/*
 Theme Name:   Astra Child
 Theme URI:    https://upayontor.com
 Description:  Child theme for Astra, customized for Upayontor (products, family & learning, advisory)
 Author:       Arif
 Author URI:   https://upayontor.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ===== Upayontor Homepage Styles ===== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.upayontor-home .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.upayontor-home .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Hero */
.upayontor-home .hero-section {
    padding: 100px 0;
    text-align: center;
    background: #f4f8f6;
}

.upayontor-home .hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.upayontor-home .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
}

.upayontor-home .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2f7a5c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.upayontor-home .btn-primary:hover {
    background: #24614a;
    color: #fff;
}

/* Pillars */
.upayontor-home .pillars-section {
    padding: 80px 0;
}

.upayontor-home .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.upayontor-home .pillar-card {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.upayontor-home .pillar-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.upayontor-home .pillar-card h3 {
    margin-bottom: 12px;
}

.upayontor-home .pillar-card a {
    display: inline-block;
    margin-top: 12px;
    color: #2f7a5c;
    font-weight: 600;
    text-decoration: none;
}

/* Philosophy */
.upayontor-home .philosophy-section {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.upayontor-home .philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Trust */
.upayontor-home .trust-section {
    padding: 60px 0;
}

.upayontor-home .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.upayontor-home .trust-item {
    padding: 20px;
    background: #f4f8f6;
    border-radius: 8px;
    font-weight: 600;
}

/* CTA */
.upayontor-home .cta-section {
    padding: 80px 0;
    text-align: center;
    background: #2f7a5c;
    color: #fff;
}

.upayontor-home .cta-section h2 {
    margin-bottom: 20px;
}

.upayontor-home .cta-section .btn-primary {
    background: #fff;
    color: #2f7a5c;
}

.upayontor-home .cta-section .btn-primary:hover {
    background: #eee;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .upayontor-home .pillars-grid,
    .upayontor-home .trust-grid {
        grid-template-columns: 1fr;
    }

    .upayontor-home .hero-section h1 {
        font-size: 2rem;
    }
}
.upayontor-home {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== Shared components (used on homepage + inner pages) ===== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2f7a5c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #24614a;
    color: #fff;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.pillar-card {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.pillar-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pillar-card h3 {
    margin-bottom: 12px;
}

.pillar-card a {
    display: inline-block;
    margin-top: 12px;
    color: #2f7a5c;
    font-weight: 600;
    text-decoration: none;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: #2f7a5c;
    color: #fff;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section .btn-primary {
    background: #fff;
    color: #2f7a5c;
}

.cta-section .btn-primary:hover {
    background: #eee;
}

@media (max-width: 768px) {
    .pillars-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card a {
    color: #2f7a5c;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-note {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
html {
    scroll-behavior: smooth;
}

.upayontor-page .alt-bg {
    background: #f9f9f9;
}

.upayontor-page .service-list li strong {
    color: #2f7a5c;
}
.ks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.ks-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.ks-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ks-cover {
    height: 160px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}

.ks-cover-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #f4f8f6;
}

.ks-card h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.ks-open {
    border: 0;
    cursor: pointer;
}

.ks-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.ks-modal[hidden] {
    display: none;
}

.ks-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 92vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.ks-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.ks-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}