/* academic-programs.css */
/* Premium, dynamic styling for the new Foundation and Secondary Academics pages */

:root {
    --ap-primary: #12355B; /* Deep Blue */
    --ap-accent: #D4AF37;  /* Gold */
    --ap-surface: #ffffff;
    --ap-surface-alt: #f4f7f6;
    --ap-text-dark: #2d3748;
    --ap-text-light: #718096;
    --ap-glass-bg: rgba(255, 255, 255, 0.7);
    --ap-glass-border: rgba(255, 255, 255, 0.5);
    --ap-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ap-hero {
    position: relative;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, var(--ap-surface-alt) 0%, #e2e8f0 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 550px;
}

.ap-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.ap-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ap-accent);
    margin-bottom: 20px;
    display: block;
}

.ap-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--ap-text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.ap-title span {
    color: var(--ap-primary);
}

.ap-description {
    font-size: 1.25rem;
    color: var(--ap-text-light);
    line-height: 1.6;
    margin-bottom: 40px;
}

.ap-hero-visual {
    position: relative;
    width: 45%;
    z-index: 2;
    transform: translateY(20px);
}

.ap-hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

.ap-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(18, 53, 91, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}


/* Content Grid layout */
.ap-section {
    padding: 100px 5%;
    background: var(--ap-surface);
    position: relative;
}

.ap-section-alt {
    background: var(--ap-surface-alt);
}

.ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ap-card {
    background: var(--ap-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ap-glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.ap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ap-primary), var(--ap-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ap-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ap-shadow);
    border-color: rgba(212, 175, 55, 0.3);
}

.ap-card:hover::before {
    transform: scaleX(1);
}

.ap-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(18, 53, 91, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--ap-primary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.ap-card:hover .ap-icon-wrapper {
    background: var(--ap-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.ap-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ap-text-dark);
    margin-bottom: 16px;
}

.ap-card p {
    font-size: 1rem;
    color: var(--ap-text-light);
    line-height: 1.6;
}

.ap-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.ap-section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--ap-text-dark);
    margin-bottom: 20px;
}

.ap-section-header p {
    font-size: 1.125rem;
    color: var(--ap-text-light);
    line-height: 1.6;
}

/* Feature Two-col Layout */
.ap-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 80px auto;
}

.ap-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.ap-feature-content {
    flex: 1;
}

.ap-feature-content h3 {
    font-size: 2.2rem;
    color: var(--ap-primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.ap-feature-content p {
    font-size: 1.1rem;
    color: var(--ap-text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.ap-feature-list {
    list-style: none;
    padding: 0;
}

.ap-feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--ap-text-dark);
    font-weight: 500;
}

.ap-feature-list li::before {
    content: '\eb7a'; /* remixicon check-line */
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--ap-accent);
    font-size: 1.2rem;
}

.ap-feature-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ap-shadow);
}

.ap-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.ap-feature-image:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    .ap-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .ap-hero-visual {
        width: 80%;
        margin-top: 50px;
    }

    .ap-feature, .ap-feature:nth-child(even) {
        flex-direction: column;
        gap: 40px;
    }
}
