/*
 * About Page - Enhanced Styling
 * Dedicated CSS for About Page Sections
 * PATHSHALA THE ICONIC SCHOOL
 */

/* ===== 1. ABOUT AREA STYLING ===== */
.about-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,123,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(0,123,255,0.03)"/><circle cx="50" cy="10" r="1" fill="rgba(0,123,255,0.03)"/><circle cx="10" cy="60" r="1" fill="rgba(0,123,255,0.03)"/><circle cx="90" cy="40" r="1" fill="rgba(0,123,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    z-index: 1;
}

.about-area .container {
    position: relative;
    z-index: 2;
}

.section-title-wrapper {
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #6c757d;
    margin-top: 20px;
}

.about-text-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 30px;
    border-left: 5px solid #007bff;
}

.about-text-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #007bff, #00d4ff, #007bff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-text-container:hover::before {
    opacity: 0.1;
}

.about-text-container p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

.about-text-container p span {
    font-weight: 600;
    color: #007bff;
    font-size: 18px;
}

.about-us {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #007bff;
}

.about-us span {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.about-us span::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.skill-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.skill-image:hover img {
    transform: scale(1.05);
}

.skill-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-image:hover::after {
    opacity: 1;
}

/* ===== 2. MISSION VISION AREA STYLING ===== */
.mission-vision-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.mission-vision-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    z-index: 1;
}

.mission-vision-area .container {
    position: relative;
    z-index: 2;
}

.mission-vision-area .section-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mission-vision-area .section-title p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 50px;
}

.mission-content,
.vision-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-content::before,
.vision-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mission-content:hover::before,
.vision-content:hover::before {
    left: 100%;
}

.mission-content:hover,
.vision-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission-icon i,
.vision-icon i {
    font-size: 36px;
    color: #667eea;
}

.mission-content h3,
.vision-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.mission-content p,
.vision-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.mission-list,
.vision-list {
    list-style: none;
    padding: 0;
}

.mission-list li,
.vision-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.mission-list li i,
.vision-list li i {
    margin-right: 15px;
    color: #28a745;
    font-size: 16px;
    width: 20px;
}

/* ===== 3. WHY CHOOSE AREA STYLING ===== */
.why-choose-area {
    background: #ffffff;
    position: relative;
}

.why-choose-area .section-title h2 {
    font-size: 40px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.why-choose-area .section-title p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 60px;
}

.single-choose {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.single-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.single-choose:hover::before {
    transform: scaleX(1);
}

.single-choose:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.choose-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.choose-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.single-choose:hover .choose-icon::before {
    transform: translateX(100%);
}

.choose-icon i {
    font-size: 40px;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

.single-choose:hover .choose-icon {
    transform: scale(1.1) rotate(5deg);
}

.choose-content h4,
.single-choose h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.single-choose:hover .choose-content h4,
.single-choose:hover h4 {
    color: #007bff;
}

.choose-content p,
.single-choose p {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 0;
}

/* ===== 4. CALL TO ACTION AREA STYLING ===== */
.call-to-action-area {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.call-to-action-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="28" height="24" patternUnits="userSpaceOnUse"><polygon points="14,2 26,9 26,16 14,22 2,16 2,9" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>') repeat;
    z-index: 1;
}

.call-to-action-area .container {
    position: relative;
    z-index: 2;
}

.call-to-action {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.call-to-action-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.call-to-action-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.6;
}

.call-to-action-button .ready-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.call-to-action-button .ready-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.call-to-action-button .ready-btn:hover::before {
    left: 100%;
}

.call-to-action-button .ready-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
    .section-title h3 { font-size: 32px; }
    .mission-vision-area .section-title h2 { font-size: 38px; }
    .why-choose-area .section-title h2 { font-size: 36px; }
    .call-to-action-text h3 { font-size: 28px; }
}

@media (max-width: 991px) {
    .about-text-container { padding: 30px; margin-bottom: 40px; }
    .mission-content, .vision-content { padding: 30px; margin-bottom: 40px; }
    .call-to-action { padding: 40px 30px; }
    .call-to-action-button { text-align: center !important; margin-top: 30px; }
}

@media (max-width: 767px) {
    .section-title h3 { font-size: 28px; }
    .mission-vision-area .section-title h2 { font-size: 32px; }
    .why-choose-area .section-title h2 { font-size: 30px; }
    .call-to-action-text h3 { font-size: 24px; }
    .about-text-container { padding: 25px; }
    .mission-content, .vision-content { padding: 25px; }
    .single-choose { padding: 30px 20px; }
    .call-to-action { padding: 30px 20px; }
}

@media (max-width: 575px) {
    .section-title h3 { font-size: 24px; }
    .mission-vision-area .section-title h2 { font-size: 28px; }
    .why-choose-area .section-title h2 { font-size: 26px; }
    .call-to-action-text h3 { font-size: 22px; }
    .choose-icon { width: 70px; height: 70px; }
    .choose-icon i { font-size: 32px; }
    .mission-icon, .vision-icon { width: 70px; height: 70px; }
    .mission-icon i, .vision-icon i { font-size: 30px; }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.single-choose:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.call-to-action-button .ready-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .mission-vision-area,
    .call-to-action-area {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .single-choose {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
    }
}