/* --- Global Pages Styling --- */
.page-content {
    font-family: var(--font-main);
    color: var(--text-dark);
}

.text-center { text-align: center; }
.pb-5 { padding-bottom: 50px; }
.bg-light { background-color: var(--gray-bg); }

/* --- Modern Image Banner Styling (Like Shop) --- */
.page-banner-container {
    width: 100%;
    background-color: #f4f4f4;
    margin-bottom: 40px;
}

.page-main-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Banner bina crop hue poora dikhega */
}

/* Mobile Screens ke liye margin aur height adjust */
@media (max-width: 576px) {
    .page-banner-container {
        margin-bottom: 20px;
    }
    .page-main-banner {
        min-height: 120px; 
        object-fit: cover;
    }
}
/* --- About Page --- */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

/* Container to keep image centered */
.about-story-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-story-img img {
    width: 100%;
    max-width: 500px; /* Desktop par image ko limit me rakhega */
    aspect-ratio: 1 / 1; /* 1080x1080 ki image ko perfectly attractive square rakhega */
    object-fit: cover; /* Image bina stretch hue fit hogi */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-story-text h2 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.about-story-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.why-choose-us {
    padding: 60px 0;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 80px;
}

.stat-box h3 {
    display: inline-block;
    font-size: 48px;
    color: var(--primary-yellow);
    font-weight: 800;
}

.stat-box span {
    font-size: 48px;
    color: var(--primary-yellow);
    font-weight: 800;
}

.mission-section {
    max-width: 800px;
    margin: 0 auto 80px;
}

.mission-section p {
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    color: var(--primary-teal);
    line-height: 1.6;
}

/* --- Contact Page --- */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--gray-bg);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.contact-card .icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--dark-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-teal);
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 18px;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #aaa;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-teal);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: var(--dark-blue);
    transition: color 0.2s;
}

.blog-content h3 a:hover {
    color: var(--primary-teal);
}

.blog-content .excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    font-weight: 600;
    color: var(--primary-teal);
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--dark-blue);
    transition: all 0.2s;
}

.page-btn.active, .page-btn:hover {
    background: var(--dark-blue);
    color: #fff;
    border-color: var(--dark-blue);
}

/* --- Blog Details --- */
.blog-details-container {
    max-width: 900px;
    margin: 0 auto 60px;
    padding-top: 50px;
}

.blog-meta-category {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.blog-title {
    font-size: 42px;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #777;
    font-size: 14px;
    margin-bottom: 40px;
}

.blog-meta span i {
    margin-right: 5px;
}

.blog-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- DYNAMIC CKEDITOR STYLING --- */
.blog-body {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.blog-body h2 {
    font-size: 28px;
    color: var(--dark-blue);
    margin: 40px 0 20px;
}

.blog-body h3 {
    font-size: 24px;
    color: var(--dark-blue);
    margin: 30px 0 15px;
}

.blog-body h4 {
    font-size: 20px;
    color: var(--dark-blue);
    margin: 25px 0 15px;
}

.blog-body p {
    margin-bottom: 20px;
}

/* --- Fix for CKEditor Lists --- */
.blog-body ul {
    list-style-type: disc !important; /* Forces standard bullet points */
    padding-left: 40px !important;    /* Gives room for the bullet to show */
    margin-bottom: 20px;
}

.blog-body ol {
    list-style-type: decimal !important; /* Forces numbers (1, 2, 3) */
    padding-left: 40px !important;       /* Gives room for the numbers to show */
    margin-bottom: 20px;
}

.blog-body li {
    display: list-item !important; /* Overrides any global resets that hide list items */
    margin-bottom: 10px;
}

/* Ensure images added inside CKEditor fit the container perfectly */
.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-quote {
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    color: var(--primary-teal);
    border-left: 4px solid var(--primary-yellow);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--gray-bg);
}

/* If CKEditor wraps quote text in a <p> tag, this removes the extra bottom spacing */
.blog-quote p {
    margin-bottom: 0;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.blog-share span {
    font-weight: 600;
}

.related-blogs {
    padding: 60px 0;
}

/* --- Document/Legal Policy Pages --- */
.policy-page {
    background-color: #fff;
    padding-top: 40px;
    padding-bottom: 60px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-title {
    font-size: 36px;
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.policy-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.policy-container h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-top: 35px;
    margin-bottom: 15px;
}

.policy-container p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
    @media (max-width: 992px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 35px; /* Mobile/Tablet par spacing balanced rahegi */
    }
    
    /* Content/Text pehle dikhega */
    .about-story-text {
        order: 1; 
    }
    
    /* Image text ke baad (niche) aayegi */
    .about-story-img {
        order: 2; 
    }
    
    /* Mobile/Tablet par image bohot zyada badi na dikhe, isliye max-width control */
    .about-story-img img {
        max-width: 400px; /* Tablet aur mobile screen par perfectly attractive size */
        margin: 0 auto;
    }
}
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-featured-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 36px;
    }
    .stats-section {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-featured-image {
        height: 250px;
    }
    .blog-title {
        font-size: 32px;
    }
    .blog-body {
        font-size: 16px;
    }
    
    /* Policy Pages Mobile Fixes */
    .policy-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .policy-container {
        padding: 0 20px;
    }
    .policy-container p, .policy-intro {
        font-size: 14px;
    }
    .policy-container h2 {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .policy-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}