/**
 * LearnQuranBD Inner Pages Styling System
 * Uses CSS tokens defined in learnquranbd-markup.css
 */

/* ==========================================================================
   Global Inner Header Banner (.lq-page-header)
   ========================================================================== */
.lq-page-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    padding: calc(var(--container-pad) * 1.5) 0 calc(var(--container-pad) * 1.3);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lq-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(63, 167, 201, 0.18), transparent 70%);
    pointer-events: none;
}

.lq-page-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 48px;
    background: var(--paper);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.4);
    pointer-events: none;
}

/* Requested: remove the rounded scallop shape at the top of the About,
   Contact, and Signup pages. Scoped with modifier classes so the Course/
   Teacher archive & single page headers (not mentioned by the client) keep
   their original look untouched. */
.lq-page-header--about::after,
.lq-page-header--contact::after,
.lq-page-header--signup::after {
    display: none;
}

.lq-page-header .container {
    position: relative;
    z-index: 2;
}

.lq-page-header .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber-300);
    border: 1px solid rgba(244, 185, 121, 0.35);
    margin-bottom: 18px;
}

.lq-page-header h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.lq-page-header .lq-tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 500;
}

/* ==========================================================================
   Section Spacing & Grid Utilities
   ========================================================================== */
.lq-section {
    padding: calc(var(--container-pad) * 1.25) 0;
}

.lq-bg-paper {
    background-color: var(--paper);
}

.lq-bg-paper-2 {
    background-color: var(--paper-2);
}

.lq-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

/* Contact page: form + side-cards column. Stretch both columns to the same
   height and let the two side cards share it evenly, so their combined size
   actually matches the form instead of leaving a gap or an overflow. */
.lq-grid-2.lq-contact-columns {
    align-items: stretch;
}

.lq-contact-columns .lq-contact-form-wrapper,
.lq-contact-columns .lq-contact-side-cards {
    height: 100%;
}

.lq-contact-columns .lq-contact-side-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lq-contact-columns .lq-contact-side-cards .lq-feature-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lq-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lq-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ==========================================================================
   Story Section & Arch Frame
   ========================================================================== */
.lq-story-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-700);
}

.lq-story-content .section-title {
    color: var(--navy-900);
    font-size: 2.2rem;
    margin: 12px 0 20px;
    font-weight: 700;
}

.lq-story-content p {
    margin-bottom: 20px;
}

.section-head h2 {
    color: var(--navy-900);
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 8px;
}

.lq-contact-info-card h3 {
    color: var(--navy-900);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.lq-contact-info-card p {
    color: var(--ink-700);
    font-weight: 500;
    margin-bottom: 6px;
}

.lq-contact-info-card a {
    color: var(--teal-600);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.lq-story-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.lq-story-arch-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    height: 520px;
    background: linear-gradient(145deg, var(--navy-800), var(--teal-600));
    border-radius: var(--radius-arch);
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.lq-story-arch-frame-media {
    position: absolute;
    top: 14px; right: 14px; bottom: 14px; left: 14px;
    border-radius: calc(200px - 14px) calc(200px - 14px) calc(20px - 14px) calc(20px - 14px);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   Feature Cards & Stats
   ========================================================================== */
.lq-feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lq-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.lq-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px rgba(14, 118, 155, 0.1), 0 10px 20px -8px rgba(10, 46, 92, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lq-feature-card h3 {
    font-size: 1.35rem;
    color: var(--navy-900);
    margin-bottom: 12px;
    font-weight: 600;
}

.lq-feature-card p {
    color: var(--ink-700);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.lq-stats-strip {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: 24px;
    padding: 40px 20px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.lq-stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 30%, rgba(63, 167, 201, 0.18), transparent 55%),
                radial-gradient(circle at 85% 70%, rgba(224, 138, 60, 0.14), transparent 55%);
    pointer-events: none;
}

.lq-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lq-stat-item .lq-stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--amber-500);
    line-height: 1.1;
    transition: transform 0.25s ease;
}

.lq-stat-item:hover .lq-stat-number {
    transform: scale(1.08);
}

.lq-stat-item .lq-stat-label {
    font-size: 0.95rem;
    color: var(--amber-300);
    margin-top: 6px;
    font-weight: 500;
}

/* ==========================================================================
   Course Cards & Archives
   ========================================================================== */
.lq-course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lq-course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.lq-course-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: background-size 0.5s ease;
}

.lq-course-card:hover .lq-course-thumb {
    background-size: 112%;
}

.lq-course-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 46, 92, 0) 55%, rgba(10, 46, 92, 0.45) 100%);
}

.lq-course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 14px -4px rgba(199, 103, 29, 0.5);
}

.lq-course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lq-course-body h3 {
    font-size: 1.25rem;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.lq-course-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lq-course-body h3 a:hover {
    color: var(--navy-500);
}

.lq-course-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-bottom: 14px;
}

.lq-course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lq-course-excerpt {
    font-size: 0.9rem;
    color: var(--ink-700);
    margin-bottom: 20px;
    flex-grow: 1;
}

.lq-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.lq-course-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--amber-600);
}

/* ==========================================================================
   Teacher Cards & Archives
   ========================================================================== */
.lq-teacher-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 20px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lq-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.lq-teacher-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background-size: cover;
    background-position: center;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px var(--amber-500), 0 10px 24px -8px rgba(10, 46, 92, 0.35);
    transition: transform 0.3s ease;
}

.lq-teacher-card:hover .lq-teacher-avatar {
    transform: scale(1.05);
}

.lq-teacher-card h3 {
    font-size: 1.2rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.lq-teacher-card h3 a {
    color: inherit;
    text-decoration: none;
}

.lq-teacher-designation {
    font-size: 0.85rem;
    color: var(--teal-600);
    font-weight: 600;
    margin-bottom: 12px;
}

.lq-teacher-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.lq-pill {
    background: var(--paper-2);
    color: var(--ink-700);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--line);
}

/* ==========================================================================
   Single Templates Detail Layout
   ========================================================================== */
.lq-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.lq-main-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

.lq-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    border-top: 4px solid var(--amber-500);
    position: sticky;
    top: 100px;
}

.lq-sidebar-price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.lq-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.lq-detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.lq-detail-list li span.label {
    color: var(--ink-500);
}

.lq-detail-list li span.value {
    color: var(--ink-900);
    font-weight: 600;
}

.lq-highlights-box {
    background: var(--paper);
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
    border-left: 4px solid var(--teal-600);
}

.lq-highlights-box h4 {
    color: var(--navy-900);
    margin-bottom: 12px;
}

.lq-highlights-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-700);
}

.lq-highlights-box ul li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Contact Page Form & Info Cards
   ========================================================================== */
.lq-contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

.lq-contact-form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.lq-form-group {
    margin-bottom: 20px;
}

.lq-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.lq-form-control {
    width: 100%;
    padding: 12px 16px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background-color: var(--paper);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select.lq-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236D7A94' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.lq-form-control:focus {
    outline: none;
    border-color: var(--navy-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(28, 99, 201, 0.12);
}

textarea.lq-form-control {
    height: auto;
    resize: vertical;
    min-height: 130px;
}

.lq-form-notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.lq-form-notice.success {
    background: var(--paper-2);
    color: var(--teal-600);
    border: 1px solid var(--teal-400);
    display: block;
}

.lq-form-notice.error {
    background: #fdf2f2;
    color: var(--amber-600);
    border: 1px solid var(--amber-500);
    display: block;
}

.lq-map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.lq-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* intl-tel-input full width fix (same fix applied to the signup form —
   the fixed narrow selected-flag width was overlapping longer dial codes
   like +880) */
.iti {
    width: 100%;
}

.lq-form-control.iti-input,
.iti input.lq-form-control {
    padding-left: 105px !important;
}

.iti .selected-flag {
    padding: 0 6px 0 14px;
    width: auto;
    min-width: 95px;
    white-space: nowrap;
}

.iti .selected-dial-code {
    padding-left: 6px;
}

.iti .country-list {
    z-index: 30;
    border-radius: 10px;
    box-shadow: var(--shadow-card, 0 14px 34px -18px rgba(10, 46, 92, 0.28));
    border: 1px solid var(--line, #E2E9F5);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .lq-grid-3, .lq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .lq-single-layout {
        grid-template-columns: 1fr;
    }
    .lq-sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .lq-grid-2, .lq-grid-3, .lq-grid-4 {
        grid-template-columns: 1fr;
    }
    .lq-story-arch-frame {
        height: 380px;
    }
    .lq-contact-form-wrapper {
        padding: 24px;
    }
    .lq-page-header {
        padding: calc(var(--container-pad) * 1.1) 0 calc(var(--container-pad) * 0.9);
    }
    .lq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .lq-teacher-avatar {
        width: 110px;
        height: 110px;
    }
    .lq-main-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .lq-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .lq-stat-item .lq-stat-number {
        font-size: 2.1rem;
    }
    .lq-course-thumb {
        height: 170px;
    }
    .lq-feature-card, .lq-teacher-card {
        padding: 26px 20px;
    }
    .lq-sidebar-card {
        padding: 22px;
    }
}
