/* About Us Page Specific Styles */

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.9)), url('../images/about/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero .motto {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 25px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* School History */
.school-history {
    padding: 100px 0;
    background: #f8f9fa;
}

.history-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.history-text h3 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
}

.milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.milestone {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.milestone .year {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.milestone h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.milestone p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.history-image {
    position: relative;
}

.history-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(255,107,107,0.3);
}

.experience-badge .years {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge span:last-child {
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Vision & Mission */
.vision-mission {
    padding: 80px 0;
    background: white;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.vm-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
}

.vm-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.vm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Core Values */
.core-values {
    padding: 100px 0;
    background: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #667eea;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.value-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Principal's Message */
.principal-message {
    padding: 100px 0;
    background: white;
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.principal-image {
    position: relative;
}

.principal-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.principal-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: -40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.principal-info h3 {
    color: #1e3c72;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.principal-info p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.principal-info span {
    color: #666;
    font-size: 0.9rem;
}

.message-text h2 {
    font-size: 2.2rem;
    color: #1e3c72;
    margin-bottom: 25px;
}

.message-text blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin-bottom: 25px;
    font-style: italic;
}

.message-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.signature strong {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.signature span {
    color: #666;
    font-size: 1rem;
}

/* Why Choose Us */
.why-choose-us {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* School Facilities */
.school-facilities {
    padding: 100px 0;
    background: white;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.view-facility {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.view-facility:hover {
    background: #5a6fd8;
}

.facility-info {
    padding: 25px;
}

.facility-info h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.facility-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Achievements */
.achievements {
    padding: 100px 0;
    background: #f8f9fa;
}

.achievements-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
    transform: translateX(-50%);
}

.achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.achievement-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.achievement-year {
    flex: 0 0 100px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.achievement-year span {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.achievement-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 0 30px;
    position: relative;
}

.achievement-item:nth-child(odd) .achievement-content {
    margin-left: 0;
    margin-right: 30px;
}

.achievement-item:nth-child(even) .achievement-content {
    margin-left: 30px;
    margin-right: 0;
}

.achievement-content h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.achievement-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Teaching Staff */
.teaching-staff {
    padding: 100px 0;
    background: white;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.staff-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-image {
    height: 200px;
    overflow: hidden;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 25px;
}

.staff-info h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.staff-info .position {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.staff-info .qualification {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.staff-details {
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: between;
    margin-bottom: 8px;
}

.detail-item strong {
    color: #333;
    min-width: 100px;
}

.detail-item span {
    color: #666;
    flex: 1;
}

.staff-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.staff-stats .stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
}

.staff-stats .stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.staff-stats .stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.staff-stats .stat-card p {
    opacity: 0.9;
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.testimonial-content i {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding-left: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #1e3c72;
}

/* Newsletter Form */
.newsletter {
    margin-top: 20px;
}

.newsletter p {
    margin-bottom: 10px;
    color: #333;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .history-content {
        grid-template-columns: 1fr;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-timeline::before {
        left: 30px;
    }
    
    .achievement-item {
        flex-direction: row !important;
    }
    
    .achievement-year {
        flex: 0 0 80px;
    }
    
    .achievement-content {
        margin-left: 20px !important;
        margin-right: 0 !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .milestones {
        grid-template-columns: 1fr;
    }
}