/**
 * About Coach Noor Section Styles
 * Animated collage and story section
 */

.about-noor-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.about-noor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

/* Animated Collage */
.noor-collage {
    position: relative;
    height: 700px;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 12px;
    height: 100%;
    position: relative;
}

.collage-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%; /* keep faces slightly higher in frame */
    transition: transform 0.4s ease;
}

.collage-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.collage-item:hover img {
    transform: scale(1.1);
}

/* Collage Layout - 8 Images */
.collage-hero {
    grid-column: span 3;
    grid-row: span 3;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.collage-large {
    grid-column: span 3;
    grid-row: span 2;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.collage-medium {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-medium:nth-of-type(3) {
    animation: fadeInRight 0.8s ease 0.4s both;
}

.collage-medium:nth-of-type(4) {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.collage-medium:nth-of-type(5) {
    animation: fadeInLeft 0.8s ease 0.6s both;
}

.collage-small {
    grid-column: span 2;
    grid-row: span 1;
}

.collage-small:nth-of-type(6) {
    animation: fadeInRight 0.8s ease 0.7s both;
}

.collage-small:nth-of-type(7) {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.collage-small:nth-of-type(8) {
    animation: fadeInLeft 0.8s ease 0.9s both;
}

/* Story Content */
.noor-story {
    padding: 20px 0;
}

.story-content {
    animation: fadeInLeft 1s ease 0.4s both;
}

.story-title {
    font-size: 24px;
    font-weight: 700;
    color: #FF9933;
    margin-bottom: 15px;
    margin-top: 30px;
}

.story-title:first-child {
    margin-top: 0;
}

.story-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Stats Grid */
.noor-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0 30px 0;
    align-items: start;           /* prevent stretch */
    grid-auto-rows: min-content;  /* rows sized to content */
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: auto;                 /* ensure natural height */
    display: flex;                /* center content nicely */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;        /* fix baseline alignment */
    align-items: center;
    justify-content: center;
    line-height: 1;              /* avoid emoji baseline offset */
    font-size: 22px;             /* emoji/icon font size */
    margin-bottom: 8px;
}

.stat-box.hero {
    background: linear-gradient(180deg, #fff7ec, #ffffff);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.25);
    border: 1px solid rgba(255, 153, 51, 0.25);
}

.stat-box.hero .stat-number {
    font-size: 44px;
}

.stat-number {
    margin: 6px 0;              /* breathing room around number */
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #FF9933;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* CTA Buttons */
.noor-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.noor-cta .btn {
    flex: 1;
    text-align: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.noor-cta .btn-primary {
    background: #FF9933;
    color: white;
    border: 2px solid #FF9933;
}

.noor-cta .btn-primary:hover {
    background: #e68a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.noor-cta .btn-secondary {
    background: transparent;
    color: #004E89;
    border: 2px solid #004E89;
}

.noor-cta .btn-secondary:hover {
    background: #004E89;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 137, 0.3);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Animation for Collage */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.collage-item:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.collage-item:nth-child(even) {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-noor-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .noor-collage {
        height: 600px;
    }
    
    .collage-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
    }
    
    .collage-hero {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .collage-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .collage-medium {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .collage-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .about-noor-section {
        padding: 60px 0;
    }
    
    .noor-collage {
        height: 500px;
    }
    
    .collage-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px;
    }
    
    .collage-hero {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .collage-large {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .collage-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .collage-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .story-title {
        font-size: 20px;
    }
    
    .story-text {
        font-size: 15px;
    }
    
    .noor-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .noor-cta {
        flex-direction: column;
    }
    
    .noor-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .noor-collage {
        height: 300px;
    }
    
    .story-title {
        font-size: 18px;
    }
    
    .story-text {
        font-size: 14px;
        text-align: left;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Page Header for Coaches Page */
.page-header {
    background: linear-gradient(135deg, #FF9933 0%, #004E89 100%);
    color: white;
    padding: 100px 0 60px 0;
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Why Coaches Section */
.why-coaches-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #004E89;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #004E89 0%, #FF9933 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
}

/* Standalone Metrics Row */
.metrics-row {
    background: linear-gradient(180deg, #fff, #f7fafc);
    padding: 30px 0;
}

.academy-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    align-items: stretch; /* equal height cards */
}

.metrics-row .stat-box {
    min-height: 120px;     /* stable card height */
    height: auto;
    padding: 22px;         /* consistent padding */
}

@media (max-width: 900px) {
    .metrics-row .stat-box {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
}
