/* Modern About Page Styles */

.about-modern-layout {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 40px;
}

/* Profile Card Modern */
.profile-card-modern {
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
}

.profile-image-wrapper {
    position: relative;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(225deg, #10b981, #3b82f6);
    border-radius: 20px;
    z-index: -2;
    opacity: 0.2;
}

.profile-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
    position: relative;
    z-index: 1;
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.profile-badge i {
    font-size: 1.2rem;
}

.profile-info-modern h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.credentials-modern {
    font-size: 1.3rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* About Content Cards */
.about-content-modern {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

/* New Highlight Card Style */
.about-highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.about-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.about-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.25);
}

.highlight-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.6;
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.about-highlight-card:hover .highlight-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.05);
}

.about-content-modern h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.about-content-modern p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.card-icon-header {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.highlight-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left-color: var(--primary-color);
}

.large-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

/* Philosophy Card Redesigned */
.philosophy-card-redesigned {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 30px;
    padding: 50px 45px;
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    border: 3px solid #bfdbfe;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.philosophy-card-redesigned::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.philosophy-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 1;
}

.philosophy-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

/* Override for homepage banner - ensure white text */
.philosophy-banner .philosophy-title {
    color: #FFFFFF !important;
}

.philosophy-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.philosophy-quote i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    opacity: 0.4;
}

.philosophy-quote span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-style: italic;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.philosophy-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.philosophy-badge {
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.philosophy-badge i {
    color: #10b981;
    font-size: 1.1rem;
}

.philosophy-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

/* Strengths Modern Section */
.strengths-modern-section {
    margin-bottom: 60px;
}

.section-title-about {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title-about::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.strengths-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.strength-modern-card {
    background: white;
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.strength-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--secondary-color);
}

.strength-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.strength-modern-card:hover .strength-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.strength-modern-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.strength-modern-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Subjects Expertise */
.subjects-expertise-section {
    margin-bottom: 60px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.expertise-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.expertise-header i {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.expertise-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

/* Expertise Grid One Line */
.expertise-grid-oneline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.expertise-card-compact {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    margin-bottom: 20px;
}

.expertise-card-compact:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-left-color: var(--secondary-color);
}

.expertise-header-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.expertise-header-compact i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.expertise-header-compact h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.expertise-text-oneline {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    padding-left: 60px;
}

.expertise-list li {
    padding: 10px 0;
    padding-left: 30px;
    color: var(--text-dark);
    position: relative;
    line-height: 1.6;
}

.expertise-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Section Modern */
.cta-section-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.3);
    margin-bottom: 50px;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* CTA Section Compact */
.cta-section-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.25);
}

.cta-content-compact h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-content-compact p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
}

.cta-buttons-compact {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-compact .btn-cta-primary,
.cta-buttons-compact .btn-cta-secondary {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Responsive About Page */
@media (max-width: 992px) {
    .profile-card-modern {
        grid-template-columns: 1fr;
        padding: 35px;
        gap: 35px;
    }
    
    .profile-image {
        height: 350px;
    }
    
    .about-highlight-card {
        padding: 30px 25px;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .highlight-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .profile-card-modern {
        padding: 25px;
    }
    
    .profile-image {
        height: 300px;
    }
    
    .profile-info-modern h2 {
        font-size: 2rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-modern {
        flex-direction: column;
    }
    
    .about-highlight-card {
        padding: 25px 20px;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .about-content-modern h3 {
        font-size: 1.5rem;
    }
    
    .section-title-about {
        font-size: 2rem;
    }
    
    .strengths-modern-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-card-modern {
        padding: 20px;
    }
    
    .about-highlight-card {
        padding: 25px 18px;
    }
    
    .highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .highlight-number {
        font-size: 2rem;
        top: 12px;
        right: 15px;
    }
    
    .philosophy-card {
        padding: 25px;
    }
    
    .cta-section-modern {
        padding: 40px 25px;
    }
}

/* Subjects Four Line in About Page */
.section-subtitle-about {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
}

.subjects-four-line-about {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 25px !important;
    margin-bottom: 50px;
    justify-items: stretch;
}

/* All 5 items in a single row */
.subjects-four-line-about > .subject-box-compact:nth-child(n) {
    grid-column: span 1 !important;
}

@media (min-width: 1025px) {
    .subjects-four-line-about {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .subjects-four-line-about {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    .subjects-four-line-about > .subject-box-compact:nth-child(1),
    .subjects-four-line-about > .subject-box-compact:nth-child(2),
    .subjects-four-line-about > .subject-box-compact:nth-child(3) {
        grid-column: span 1 !important;
    }
    
    /* Center items 4 and 5 in second row */
    .subjects-four-line-about > .subject-box-compact:nth-child(4) {
        grid-column: 1 / 2 !important;
        justify-self: end !important;
        margin-right: calc(20px / 2) !important;
    }
    
    .subjects-four-line-about > .subject-box-compact:nth-child(5) {
        grid-column: 2 / 3 !important;
        justify-self: start !important;
        margin-left: calc(20px / 2) !important;
    }
}

@media (max-width: 768px) {
    .subjects-four-line-about {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .subjects-four-line-about > .subject-box-compact:nth-child(1),
    .subjects-four-line-about > .subject-box-compact:nth-child(2),
    .subjects-four-line-about > .subject-box-compact:nth-child(3),
    .subjects-four-line-about > .subject-box-compact:nth-child(4) {
        grid-column: span 1;
        justify-self: stretch;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Make Further Pure Mathematics card full width in mobile */
    .subjects-four-line-about > .subject-box-compact:nth-child(5) {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 480px) {
    .subjects-four-line-about {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Make Further Pure Mathematics card full width in mobile */
    .subjects-four-line-about > .subject-box-compact:nth-child(5) {
        grid-column: 1 / -1 !important;
    }
}

