/* ===== 15% OFF PROMO PAGE STYLES ===== */

/* === HERO SECTION === */
.discount-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.9) 0%, rgba(75, 140, 168, 0.8) 100%);
    z-index: 2;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(23, 42, 69, 0.85) 100%);
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content {
    max-width: 600px;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.discount-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

#discount-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.countdown-container {
    margin: 2rem 0;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.countdown-timer {
    display: flex;
    gap: 0.75rem;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    padding: 0.75rem;
    min-width: 70px;
    text-align: center;
    transition: transform 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
}

.countdown-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
}

.countdown-box .countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    width: 100%;
}

/* Countdown expired state */
.countdown-expired {
    color: #fff;
    background-color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-soft);
}

body.dark-mode .faq-section {
    background-color: var(--dm-card);
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background-color: var(--dm-card);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

body.dark-mode .faq-question {
    color: var(--dm-text);
}

.faq-question:hover {
    color: var(--primary);
}

body.dark-mode .faq-question:hover {
    color: var(--dm-primary);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === HOW IT WORKS SECTION === */
.how-it-works {
    padding: 4rem 0;
    background-color: var(--bg-soft);
}

body.dark-mode .how-it-works {
    background-color: var(--dm-card);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    background-color: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

body.dark-mode .step {
    background-color: var(--dm-card);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.1;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

body.dark-mode .step-content h3 {
    color: var(--dm-primary);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === CALCULATOR SECTION === */
.calculator-section {
    position: relative;
    padding: 4rem 0;
    background-color: var(--bg);
    background-image: url('../assets/background/calculator-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.dark-mode .calculator-section {
    background-image: url('../assets/background/calculator-bg-dark.png');
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.price-calculator-container {
    background-color: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .price-calculator-container {
    background-color: var(--dm-card);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.discount-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

body.dark-mode .discount-note {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.discount-note svg {
    flex-shrink: 0;
}

.calculator-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.calculator-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.calculator-image:hover {
    transform: scale(1.03);
}

/* === WHY CHOOSE US SECTION === */
.why-choose-us {
    padding: 4rem 0;
    background-color: var(--bg-soft);
}

body.dark-mode .why-choose-us {
    background-color: var(--dm-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .feature-card {
    background-color: var(--dm-card);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: rgba(59, 162, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .feature-icon {
    background-color: rgba(3, 164, 228, 0.1);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

body.dark-mode .feature-icon svg {
    color: var(--dm-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

body.dark-mode .feature-card h3 {
    color: var(--dm-primary);
}

.feature-card p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--bg);
}

body.dark-mode .testimonials-section {
    background-color: var(--dm-bg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--bg-soft);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

body.dark-mode .testimonial-card {
    background-color: var(--dm-card);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    margin-bottom: 1rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--secondary);
    font-size: 0.9rem;
}

.date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-content {
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text);
}

body.dark-mode .testimonial-content p {
    color: var(--dm-text);
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
}

body.dark-mode .testimonial-content p::before {
    color: var(--dm-primary);
}

.testimonial-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subject-tag {
    background-color: rgba(101, 116, 139, 0.1);
    color: var(--gray);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

body.dark-mode .subject-tag {
    background-color: rgba(136, 146, 176, 0.1);
    color: var(--dm-gray);
}

.testimonials-cta {
    margin-top: 2rem;
    text-align: center;
}

/* === DETAILED CONTENT SECTION === */
.detailed-content {
    padding: 4rem 0;
    background-color: var(--bg);
}

body.dark-mode .detailed-content {
    background-color: var(--dm-bg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

body.dark-mode .content-heading {
    color: var(--dm-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.content-section {
    background-color: var(--bg-soft);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .content-section {
    background-color: var(--dm-card);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

body.dark-mode .content-section h3 {
    color: var(--dm-primary);
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
}

body.dark-mode .content-section p {
    color: var(--dm-text);
}

.content-cta {
    text-align: center;
    margin-top: 3rem;
}

/* === DARK MODE SPECIFIC STYLES === */
body.dark-mode {
    background-color: var(--dm-bg);
    color: var(--dm-text);
}

body.dark-mode .hero-subtitle,
body.dark-mode .countdown-label,
body.dark-mode .cta-note {
    color: rgba(204, 214, 246, 0.8);
}

body.dark-mode .countdown-box {
    background-color: rgba(23, 42, 69, 0.5);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-image-column {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .discount-hero {
        min-height: 400px;
    }
    
    #discount-heading {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .countdown-box {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .content-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .discount-hero {
        min-height: 350px;
    }
    
    .hero-container {
        padding: 1.5rem;
    }
    
    #discount-heading {
        font-size: 1.75rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-box {
        min-width: 50px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container-wide {
        padding: 0 1.5rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide {
    animation: slideUp 0.5s ease-out;
}

/* Badge animation */
.discount-badge {
    display: inline-block;
    transform: scale(0.8);
    opacity: 0;
    animation: badgePulse 0.8s 0.5s forwards;
}

@keyframes badgePulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero animation */
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll animations */
.step,
.feature-card,
.testimonial-card,
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.animate-in,
.feature-card.animate-in,
.testimonial-card.animate-in,
.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Delay animations for staggered effect */
.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.2s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(4) { transition-delay: 0.4s; }

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }
.testimonial-card:nth-child(4) { transition-delay: 0.4s; }
.testimonial-card:nth-child(5) { transition-delay: 0.5s; }
.testimonial-card:nth-child(6) { transition-delay: 0.6s; }

.content-section:nth-child(1) { transition-delay: 0.1s; }
.content-section:nth-child(2) { transition-delay: 0.2s; }
.content-section:nth-child(3) { transition-delay: 0.3s; }
.content-section:nth-child(4) { transition-delay: 0.4s; }
.content-section:nth-child(5) { transition-delay: 0.5s; }
.content-section:nth-child(6) { transition-delay: 0.6s; }
.content-section:nth-child(7) { transition-delay: 0.7s; }
.content-section:nth-child(8) { transition-delay: 0.8s; }
.content-section:nth-child(9) { transition-delay: 0.9s; }