/**
 * About Page Styles
 * Custom styles specific to the public about page
 * Complements portal classes from headteacher.css
 */

/* ==========================================================================
   PUBLIC HEADER ADJUSTMENTS
   ========================================================================== */

.about-page .site-header {
    box-shadow: var(--shadow-1);
}

.about-page .site-header .brand {
    transition: transform 0.2s ease;
}

.about-page .site-header .brand:hover {
    transform: translateY(-2px);
}

.about-page .header-school-name {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   SIDEBAR - PUBLIC PAGE BRANDING
   ========================================================================== */

.about-page .ht-user {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.about-page .ht-user .avatar {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-700) 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   STAT CARDS - ENHANCED
   ========================================================================== */

.about-page .ht-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-page .ht-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-500) 0%, var(--cyan-700) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-page .ht-card:hover::before {
    transform: scaleX(1);
}

.about-page .ht-card:hover {
    transform: translateY(-8px);
    /* box-shadow: var(--shadow-2); */
}

.about-page .ht-card .icon {
    transition: transform 0.3s ease;
}

.about-page .ht-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   CONTENT BOXES - ENHANCED
   ========================================================================== */

.about-page .ht-box {
    transition: all 0.3s ease;
}

.about-page .ht-box:hover {
    /* box-shadow: var(--shadow-2); */
    border-color: var(--cyan-500);
}

.about-page .ht-box h3 {
    color: var(--cyan-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.about-page .ht-box ul {
    padding-left: 1.5rem;
}

.about-page .ht-box ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.about-page .ht-box ol {
    padding-left: 1.5rem;
}

.about-page .ht-box ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-box {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.faq-box:hover {
    border-left-color: var(--cyan-500);
    /* background: var(--bg); */
}

.faq-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    user-select: none;
    color: var(--ink);
    font-size: 1.125rem;
}

.faq-box h3 i {
    transition: transform 0.3s ease;
    color: var(--cyan-500);
    font-size: 0.875rem;
}

.faq-box.active h3 i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.faq-box.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   PRICING TIERS - LANDING PAGE DESIGN
   ========================================================================== */

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto;
    max-width: 900px;
}

.pricing-tier {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-tier:hover {
    transform: translateY(-6px);
    /* box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15); */
    border-color: var(--cyan-500);
}

/* Featured Tier (Pro Plan) */
.pricing-tier.featured-tier {
    border-color: var(--cyan-500);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
    transform: scale(1.02);
}

.pricing-tier.featured-tier:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.2);
}

/* Tier Badge */
.tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Tier Header */
.tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tier-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan-600);
    flex-shrink: 0;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* Tier Price */
.tier-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.tier-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cyan-600);
}

.tier-price .amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0 4px;
}

.tier-price .period {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

/* Tier Description */
.tier-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

/* Tier Features */
.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.tier-features li {
    padding: 0.6rem 0;
    color: var(--ink);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.tier-features li i {
    color: var(--cyan-600);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Tier CTA Button */
.tier-cta {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--cyan-600);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tier-cta:hover {
    background: var(--cyan-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.featured-tier .tier-cta {
    background: linear-gradient(135deg, var(--cyan-600) 0%, var(--cyan-700) 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.featured-tier .tier-cta:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

/* ==========================================================================
   CONTACT CARDS
   ========================================================================== */

.contact-card {
    border-left: 4px solid var(--cyan-500);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-left-width: 8px;
    padding-left: calc(1.5rem - 4px);
}

.contact-card .icon {
    color: var(--cyan-600);
    font-size: 2rem;
}

.contact-card h4 {
    color: var(--cyan-700);
    margin-bottom: 0.75rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.contact-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER - PUBLIC PAGE
   ========================================================================== */

.about-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    text-align: center;
}

.about-footer .container2 {
    max-width: 1200px;
    margin: 0 auto;
}

.about-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.about-footer p + p {
    margin-top: 0.5rem;
}

.about-footer a {
    color: var(--cyan-600);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    padding: 0 0.5rem;
}

.about-footer a:hover {
    color: var(--cyan-700);
    text-decoration: underline;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.feature-card {
    text-align: left;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--cyan-500);
    /* background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%); */
}

.feature-card .icon {
    margin-bottom: 0.75rem;
    color: var(--cyan-600);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */

.info-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--cyan-100);
    color: var(--cyan-700);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.status-pill i {
    color: var(--cyan-600);
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.social-links .btn i {
    margin-right: 0.5rem;
}

/* ==========================================================================
   LAYOUT FIXES & SPACING
   ========================================================================== */

/* Box Spacing */

.ht-box{
    border: none !important;
    padding: 1rem;
    border-radius: var(--radius-lg);
}
.about-page .ht-box {
    margin-bottom: 1.5rem;
}

.about-page .ht-box:last-child {
    margin-bottom: 0;
}

/* Card Grid Base - Default 3 Column */
.about-page .ht-cards {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Pricing Tiers Responsive */
.about-page .pricing-tiers {
    width: 100%;
    padding: 0 1rem;
}

.about-page .pricing-tier {
    width: 100%;
}

/* Feature Cards Specific - Flex Layout Support */
.about-page .feature-card {
    width: 100%;
}

.about-page .feature-card[style*="display: flex"] .icon {
    font-size: 1.5rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page .feature-card[style*="display: flex"] h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.about-page .feature-card[style*="display: flex"] p {
    margin: 0;
    line-height: 1.6;
}

/* Contact Cards Specific */
.about-page .contact-card {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
}

.about-page .contact-card[style*="display: flex"] .icon {
    font-size: 1.75rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page .contact-card[style*="display: flex"] h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.about-page .contact-card[style*="display: flex"] p {
    margin-bottom: 0.5rem;
}

.about-page .contact-card[style*="display: flex"] p:last-child {
    margin-bottom: 0;
}

/* General ht-card with flex layout */
.about-page .ht-card[style*="display: flex"] {
    align-items: flex-start;
}

.about-page .ht-card[style*="display: flex"] .icon {
    color: var(--cyan-600);
}

.about-page .ht-card[style*="display: flex"] .label {
    display: block;
}

/* ==========================================================================
   PAYMENT OPTIONS - DEDICATED COMPONENT
   ========================================================================== */

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1200px;
}

.payment-option {
    background: var(--surface);
    border: 2px solid var(--border);
    border-left: 4px solid var(--cyan-500);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-left-width: 6px;
    border-left-color: var(--cyan-600);
    transform: translateX(4px);
}

/* Option Header */
.option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(8, 145, 178, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--cyan-600);
    flex-shrink: 0;
}

.option-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cyan-700);
    margin: 0;
}

/* Option Description */
.option-description {
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Option Steps */
.option-steps {
    margin-bottom: 1rem;
}

.steps-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.steps-list {
    list-style-position: inside;
    margin: 0;
    padding-left: 0.5rem;
}

.steps-list li {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

/* Option Example Box */
.option-example {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(8, 145, 178, 0.08) 100%);
    border-left: 3px solid var(--cyan-500);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--ink);
    margin-top: 1rem;
}

.option-example strong {
    color: var(--cyan-700);
}

/* Stat Cards with Numbers */
.about-page .ht-card .stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan-600);
    margin: 0.5rem 0;
}

.about-page .ht-card .label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* Section Spacing */
.about-page .section-title {
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.about-page .section-lead {
    margin-bottom: 1.25rem;
}

.about-page .box-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Paragraph Spacing */
.about-page .ht-box p {
    margin-bottom: 0.75rem;
}

.about-page .ht-box p:last-child {
    margin-bottom: 0;
}

/* List Spacing */
.about-page .ht-box ul,
.about-page .ht-box ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.about-page .ht-box ul li,
.about-page .ht-box ol li {
    padding-left: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1024px) {
    /* Tablet - 2 column grid */
    .about-page .ht-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-tiers {
        gap: 1.5rem;
    }
    
    .pricing-tier.featured-tier {
        transform: scale(1);
    }
    
    .pricing-tier.featured-tier:hover {
        transform: translateY(-6px);
    }
    
    /* Payment Options Tablet */
    .payment-options {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile - 1 column stack */
    .about-page .ht-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .about-page .ht-box {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .pricing-tiers {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0;
        margin: 1rem auto;
    }
    
    .pricing-tier {
        padding: 1.25rem;
    }
    
    .tier-price .amount {
        font-size: 2.5rem;
    }
    
    /* Payment Options Mobile */
    .payment-options {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1rem 0;
        padding: 0;
    }
    
    .payment-option {
        padding: 1.25rem;
    }
    
    .tier-header {
        margin-bottom: 1rem;
    }
    
    .tier-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .tier-name {
        font-size: 1.35rem;
    }
    
    .about-page .feature-card,
    .about-page .pricing-card,
    .about-page .contact-card {
        padding: 1.25rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-links .btn {
        width: 100%;
        min-width: auto;
    }
    
    .about-footer {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .about-page .ht-card {
        padding: 0.875rem;
    }
    
    .about-page .ht-box {
        padding: 0.75rem;
    }
    
    .feature-card {
        padding: 0.875rem;
    }
    
    .contact-card {
        padding: 0.875rem;
    }
    
    .pricing-tier {
        padding: 1rem;
    }
    
    /* Payment Options Small Mobile */
    .payment-options {
        gap: 1rem;
    }
    
    .payment-option {
        padding: 1rem;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .option-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .about-page .site-header,
    .about-page .ht-sidebar,
    .about-footer {
        display: none;
    }
    
    .about-page .ht-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .faq-answer {
        display: block !important;
        max-height: none !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.about-page .ht-menu a:focus,
.faq-box:focus {
    /* outline: 2px solid var(--cyan-500); */
    outline-offset: 2px;
}

.about-page button:focus,
.about-page a.btn:focus {
    /* outline: 2px solid var(--cyan-500); */
    outline-offset: 2px;
}

/* ==========================================================================
   UTILITY CLASSES FOR ABOUT PAGE
   ========================================================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-border-left {
    border-left: 4px solid var(--cyan-500);
    padding-left: 1rem;
}

.subtle-bg {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Content Flow Spacing */
.about-page .ht-content > * + * {
    margin-top: 0;
}

.about-page .ht-box + .ht-cards,
.about-page .ht-cards + .ht-box {
    margin-top: 1.5rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}
