/* 
   Madurai Landing Page Specific Styles
   Focus: Premium Design, Alignment, Padding, and Mobile Responsiveness
*/

:root {
    --brand-red: #ea5f28; /* Primary from style.css */
    --brand-red-dark: #cc4d1b;
    --brand-red-light: rgba(234, 95, 40, 0.1);
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Fixes */
.container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Section Spacing - Uniform across all pages */
section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (max-width: 768px) {
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Hero Section Override for impact */
.hero-content {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Section Header Standard Group */
.section-header {
    text-align: center;
    margin-bottom: 4rem; /* Standard gap before content */
}

.section-header h2 {
    margin-bottom: 1.5rem; /* Space between Title and Subtitle */
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-header h2 {
        margin-bottom: 1rem;
    }
}

/* Typography Improvements */
h1, h2, h3, h4 {
    color: var(--text-dark);
}

.font-hind {
    font-family: 'Hind', sans-serif;
}

/* Hero Section Refinement */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(234, 95, 40, 0.1), transparent);
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-image-wrapper {
        margin-top: 3rem;
    }
}

/* Why Choose Us Cards */
.feature-card {
    background: whiteColor;
    border: 1px solid #f3f4f6;
    padding: 2.5rem; /* Standardized internal padding */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--brand-red-light);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: var(--brand-red-light);
    color: var(--brand-red);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-box {
    background: var(--brand-red);
    color: white;
}

/* Course Grid Improvements */
.course-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.course-card:hover::before {
    transform: scaleY(1);
}

.course-card:hover {
    box-shadow: var(--card-shadow);
}

/* Placement Support Stats */
.stat-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-pill:hover {
    transform: scale(1.05);
}

/* Training Process Steps */
.step-item {
    position: relative;
    z-index: 10;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 10px 15px -3px rgba(234, 95, 40, 0.4);
}

/* FAQ & Contact Section */
.faq-accordion.active .faq-body {
    display: block !important;
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.faq-accordion:hover {
    border-color: var(--brand-red-light);
}

.contact-highlight {
    background: linear-gradient(135deg, var(--brand-red) 0%, #d8374a 100%);
    box-shadow: 0 30px 60px -15px rgba(216, 55, 74, 0.3);
}

.contact-highlight a {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Base Fixes & Utilities */
.container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (max-width: 768px) {
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    
    .faq-accordion {
        border-radius: 1.5rem !important;
        padding: 1.5rem !important;
    }
    
    .contact-highlight {
        border-radius: 2rem !important;
        padding: 2rem !important;
    }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* Why Madurai Premium Redesign Styles */
.glass-morphism {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.premium-mini-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 2rem;
    transition: all 0.4s ease;
}

.premium-mini-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-red-light);
}

.premium-mini-card .icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
    color: var(--brand-red);
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.premium-mini-card:hover .icon-wrap {
    background: var(--brand-red);
    color: white;
    transform: rotate(10deg);
}

.premium-mini-card .card-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: 'Hind', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-mini-card .card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .premium-mini-card {
        padding: 1.25rem;
        gap: 1rem;
    }
}
