/*
 * Academic Excellence Page – Industry-level design
 * KIIT Entrance Wings | Bootstrap 5
 */

/* ===== Page wrapper ===== */
.academic-excellence-page .content-section {
    background: #f0f4f8;
    padding: 0;
}

/* ===== Hero stats strip (below hero) ===== */
.ae-stats-strip {
    background: linear-gradient(90deg, #0a1628 0%, #1a365d 50%, #0d2847 100%);
    color: #fff;
    padding: 1.25rem 0;
    margin-bottom: 0;
    border-bottom: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,31,63,0.2);
}

.ae-stats-strip .ae-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.ae-stats-strip .ae-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #93c5fd;
}

.ae-stats-strip .ae-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
    color: #fff;
}

.ae-stats-strip .ae-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Section block with white card ===== */
.ae-section-block {
    padding: 3.5rem 0;
}

.ae-section-block:nth-child(even) {
    background: #fff;
}

.ae-section-block .ae-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.ae-section-block .ae-section-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 640px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== Faculty premium cards ===== */
.ae-faculty-grid {
    display: grid;
    gap: 1.75rem;
}

.ae-faculty-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,31,63,0.08);
    border: 1px solid rgba(0,31,63,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ae-faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,31,63,0.14);
}

.ae-faculty-card .ae-faculty-photo-wrap {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    overflow: hidden;
}

.ae-faculty-card .ae-faculty-photo-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ae-faculty-card .ae-faculty-subject {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #0a1628, #1a365d);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ae-faculty-card .ae-faculty-body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ae-faculty-card .ae-faculty-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.ae-faculty-card .ae-faculty-qual {
    font-size: 0.88rem;
    color: #195ca8;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.ae-faculty-card .ae-faculty-exp {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* ===== Intro / statement card ===== */
.ae-intro-card {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #1a365d 100%);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,22,40,0.25);
}

.ae-intro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ae-intro-card .ae-intro-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.ae-intro-card .ae-intro-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.4;
    max-width: 520px;
}

.ae-intro-card .ae-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    margin: 0;
    max-width: 560px;
}

/* ===== Methodology – premium grid ===== */
.ae-methodology-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(0,31,63,0.08);
    border: 1px solid rgba(0,31,63,0.06);
}

.ae-methodology-intro {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.ae-methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.ae-method-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ae-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #195ca8, #0a1628);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.ae-method-card:hover {
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,31,63,0.1);
    border-color: rgba(25,92,168,0.2);
}

.ae-method-card:hover::before {
    transform: scaleY(1);
}

.ae-method-card .ae-method-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: #195ca8;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.ae-method-card .ae-method-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e0f0ff 0%, #cce5ff 100%);
    color: #195ca8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ae-method-card .ae-method-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.ae-method-card .ae-method-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===== Classrooms / gallery section ===== */
.ae-gallery-section .ae-section-title {
    margin-bottom: 1.5rem;
}

.ae-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ae-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 2px dashed #94a3b8;
    transition: all 0.25s ease;
}

.ae-gallery-item:hover {
    border-color: #195ca8;
    color: #195ca8;
    background: linear-gradient(145deg, #e0f0ff 0%, #dbeafe 100%);
}

.ae-gallery-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.ae-gallery-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

.ae-gallery-item small {
    font-size: 0.65rem !important;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .ae-faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ae-faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ae-methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .ae-section-block { padding: 2.5rem 0; }
    .ae-intro-card { padding: 2rem; }
    .ae-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .ae-stats-strip .ae-stat-item { margin-bottom: 0.5rem; }
    .ae-faculty-grid { grid-template-columns: 1fr; }
    .ae-faculty-card .ae-faculty-body { padding: 1.25rem; }
    .ae-methodology-wrap { padding: 1.5rem; }
    .ae-methodology-grid { grid-template-columns: 1fr; }
    .ae-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .ae-section-block .ae-section-title { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .ae-intro-card { padding: 1.5rem; }
    .ae-intro-card .ae-intro-title { font-size: 1.25rem; }
    .ae-gallery-item i { font-size: 2rem; }
}
