/* About Section Styles */

.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* About Title and Description */
.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
}

/* Typewriter Animation */
.typewriter-container {
    margin-bottom: 30px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.typewriter-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-red);
    font-style: italic;
    display: inline-block;
}

.typewriter-text::before {
    content: '"';
    color: var(--primary-red);
    font-size: 1.6rem;
    margin-right: 5px;
}

.typewriter-text::after {
    content: '"';
    color: var(--primary-red);
    font-size: 1.6rem;
    margin-left: 5px;
}

.typewriter-cursor {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-red);
    animation: blink 0.8s ease-in-out infinite;
    margin-left: 2px;
    font-weight: 500;
}

@keyframes blink {
    0%, 45% {
        opacity: 1;
    }
    46%, 100% {
        opacity: 0;
    }
}

.about-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0;
    text-align: justify;
    position: relative;
    padding-left: 30px;
}

.about-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #a19b9b;
}

/* About Image */
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 30px;
}

/* Stat Cards */
.stat-card {
    background: var(--primary-red);
    padding: 25px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.3);
}

/* Stat Icon */
.stat-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    min-width: 60px;
    text-align: center;
}

/* Stat Content */
.stat-content {
    flex: 1;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
    line-height: 1.2;
}

.stat-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .typewriter-container {
        justify-content: center;
        margin-bottom: 40px;
    }
    
    .typewriter-text {
        font-size: 1.3rem;
    }
    
    .typewriter-text::before,
    .typewriter-text::after {
        font-size: 1.5rem;
    }
    
    .typewriter-cursor {
        font-size: 1.3rem;
    }
    
    .about-description {
        text-align: center;
        margin-bottom: 40px;
        padding-left: 0;
    }
    
    .about-description::before {
        display: none;
    }
    
    .stats-container {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2.2rem;
        min-width: 50px;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 50px 0;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .typewriter-text {
        font-size: 1.2rem;
    }
    
    .typewriter-text::before,
    .typewriter-text::after {
        font-size: 1.4rem;
    }
    
    .typewriter-cursor {
        font-size: 1.2rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 18px;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        min-width: 45px;
    }
}

@media (max-width: 575.98px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .typewriter-text {
        font-size: 1.1rem;
    }
    
    .typewriter-text::before,
    .typewriter-text::after {
        font-size: 1.3rem;
    }
    
    .typewriter-cursor {
        font-size: 1.1rem;
    }
    
    .stats-container {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-text {
        font-size: 0.85rem;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        min-width: 40px;
    }
}

/* Mission and Values Section */
.mission-values-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.mission-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 60px;
    text-align: center;
}

/* Split Container */
.mission-split-container {
    display: flex;
    position: relative;
    min-height: 400px;
    margin-bottom: 60px;
}

.mission-split-container.mission-bottom {
    margin-bottom: 0;
}

/* Mission Halves */
.mission-half {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-left {
    text-align: right;
    padding-right: 60px;
}

.mission-right {
    text-align: left;
    padding-left: 60px;
}

/* Content Wrapper */
.mission-content-wrapper {
    max-width: 450px;
    width: 100%;
}

.mission-left .mission-content-wrapper {
    margin-left: auto;
}

.mission-right .mission-content-wrapper {
    margin-right: auto;
}

/* Mission Section Titles */
.mission-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Mission Section Descriptions */
.mission-section-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #7a7a7a;
    margin-bottom: 30px;
}

/* Central Divider */
.mission-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
}

/* Mission Images */
.mission-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mission-split-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mission-split-image:hover {
    transform: scale(1.05);
}

/* Responsive Design for Mission Section */
@media (max-width: 991.98px) {
    .mission-values-section {
        padding: 60px 0;
    }
    
    .mission-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .mission-split-container {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 50px;
    }
    
    .mission-half {
        padding: 30px 20px;
        text-align: center;
    }
    
    .mission-left,
    .mission-right {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
    
    .mission-content-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .mission-divider {
        display: none;
    }
    
    .mission-section-title {
        font-size: 1.8rem;
    }
    
    .mission-split-image {
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .mission-values-section {
        padding: 50px 0;
    }
    
    .mission-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .mission-half {
        padding: 25px 15px;
    }
    
    .mission-section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .mission-section-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .mission-split-image {
        height: 200px;
    }
    
    .mission-split-container {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .mission-values-section {
        padding: 40px 0;
    }
    
    .mission-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .mission-half {
        padding: 20px 10px;
    }
    
    .mission-section-title {
        font-size: 1.4rem;
    }
    
    .mission-section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .mission-split-image {
        height: 180px;
    }
    
    .mission-split-container {
        margin-bottom: 30px;
    }
}

/* Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section .row > div {
    animation: fadeInUp 0.6s ease forwards;
}

.about-section .row:nth-child(2) > div {
    animation-delay: 0.2s;
}

.mission-split-container {
    animation: fadeInUp 0.6s ease forwards;
}

.mission-split-container:nth-child(2) {
    animation-delay: 0.2s;
}

.mission-split-container:nth-child(3) {
    animation-delay: 0.4s;
}



/* Imperial Academy Philosophy Section */
.academy-philosophy-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-red);
    margin: 20px auto 0;
}

.philosophy-content-block {
    padding: 30px 0;
    border-left: 3px solid var(--primary-red);
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.content-text {
    font-family: 'Canela', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0;
}

.philosophy-highlight-block {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-red);
}

.highlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.highlight-text {
    font-family: 'Canela', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0;
}

.philosophy-quote-block {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
}

.philosophy-quote-block::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-red);
    font-family: 'Playfair Display', serif;
     padding: 0 15px;
}

.quote-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.quote-text {
    font-family: 'Canela', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 0;
    font-style: italic;
}

.philosophy-info-block {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.philosophy-info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.info-text {
    font-family: 'Canela', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.info-text:last-of-type {
    margin-bottom: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.info-list li {
    font-family: 'Canela', sans-serif;
    font-size: 1rem;
    color: var(--text-gray);
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.info-list li:before {
    content: '•';
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Premium Our Note for Parents Section */
.parents-note-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.parents-note-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(139, 21, 56, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(139, 21, 56, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.parents-note-wrapper {
    position: relative;
    z-index: 1;
}

.section-header-premium {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.header-diamond {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.section-title-premium {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.header-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto;
}

.parents-content-premium {
    max-width: 900px;
    margin: 0 auto;
}

.note-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-red);
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05), transparent);
    border-radius: 0 0 0 100px;
}

.note-number {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.note-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.note-diamond {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
    flex-shrink: 0;
}

.note-text-premium {
    font-family: 'Canela', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    padding-right: 60px;
}



/* Responsive Design for Premium Sections */
@media (max-width: 991.98px) {
    .academy-philosophy-section {
        padding: 60px 0;
    }
    
    .parents-note-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .philosophy-content-block {
        padding-left: 20px;
        margin-bottom: 30px;
    }
    
    .philosophy-highlight-block {
        padding: 30px;
    }
    
    .philosophy-quote-block {
        padding: 40px 30px;
    }
    
    .philosophy-info-block {
        margin-bottom: 30px;
    }
    
    .section-title-premium {
        font-size: 2.2rem;
    }
    
    .note-card {
        padding: 30px;
        margin-bottom: 25px;
    }
    
    .note-text-premium {
        font-size: 1rem;
        padding-right: 50px;
    }
    

}

@media (max-width: 767.98px) {
    .academy-philosophy-section {
        padding: 50px 0;
    }
    
    .parents-note-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .philosophy-content-block {
        padding-left: 15px;
        border-left-width: 2px;
    }
    
    .content-title {
        font-size: 1.3rem;
    }
    
    .philosophy-highlight-block {
        padding: 25px 20px;
    }
    
    .highlight-title {
        font-size: 1.6rem;
    }
    
    .philosophy-quote-block {
        padding: 30px 20px;
    }
    
    .quote-title {
        font-size: 1.4rem;
    }
    
    .philosophy-info-block {
        padding: 25px 20px;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .section-title-premium {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .header-diamond {
        font-size: 1.5rem;
    }
    
    .note-card {
        padding: 25px 20px;
    }
    
    .note-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 15px;
        right: 20px;
    }
    
    .note-text-premium {
        font-size: 1rem;
        padding-right: 45px;
    }
    

}

@media (max-width: 575.98px) {
    .academy-philosophy-section {
        padding: 40px 0;
    }
    
    .parents-note-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-divider {
        width: 60px;
        height: 2px;
    }
    
    .philosophy-content-block {
        padding-left: 12px;
    }
    
    .content-title {
        font-size: 1.2rem;
    }
    
    .content-text {
        font-size: 0.95rem;
    }
    
    .philosophy-highlight-block {
        padding: 20px 15px;
    }
    
    .highlight-title {
        font-size: 1.4rem;
    }
    
    .highlight-text {
        font-size: 1rem;
    }
    
    .philosophy-quote-block {
        padding: 25px 15px;
    }
    
    .quote-title {
        font-size: 1.3rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .philosophy-info-block {
        padding: 20px 15px;
    }
    
    .info-title {
        font-size: 1.2rem;
    }
    
    .info-text {
        font-size: 0.95rem;
    }
    
    .section-title-premium {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .section-header-premium {
        margin-bottom: 40px;
    }
    
    .header-line {
        width: 80px;
        height: 2px;
    }
    
    .note-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .note-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        top: 12px;
        right: 15px;
    }
    
    .note-content {
        gap: 15px;
    }
    
    .note-diamond {
        font-size: 1rem;
    }
    
    .note-text-premium {
        font-size: 0.95rem;
        padding-right: 40px;
        line-height: 1.7;
    }
    

}

/* Ensure proper spacing */
.about-section .container > .row:first-child {
    margin-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .about-section .container > .row:first-child {
        margin-bottom: 2rem;
    }
}


   /* Custom styles for enhanced About sections */
   .at-imperial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.enhanced-stats-section {
    background: linear-gradient(135deg, #8B1538 0%, #6a0f2a 100%);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.about-image {
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.typewriter-container {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.typewriter-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B1538;
}

.typewriter-cursor {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B1538;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}