/* ==========================================================================
   MOHACADEMY SUBJECTS PAGE STYLING
   ========================================================================== */

/* Enhanced Responsive Hero Section */
.subjects-hero-section {
    position: relative;
    width: 100%;
    min-height: 520px; /* Fluid height allows text wrapping without clipping */
    background: url('../images/subjects-hero-bg.jpg') no-repeat center center/cover;
    background-color: #0f172a; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: calc(var(--header-height, 80px) + 60px) 24px 60px;
    overflow: hidden;
    box-sizing: border-box;
}

.subjects-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 86, 179, 0.7) 100%);
    z-index: 1;
}

.subjects-hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.subjects-hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
}

.subjects-hero-section p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Perfected Hero Button Layout */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .btn {
    min-width: 220px;
    margin: 0;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1.05rem;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #0056b3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Typewriter Cursor Animation */
@keyframes cursorBlinkAnimation {
    from, to { border-color: transparent }
    50% { border-color: #2ecc71; }
}
.science-typewriter {
    animation: cursorBlinkAnimation 0.8s step-end infinite;
}

/* ==========================================================================
   SUBJECTS GRID & PREMIUM CARDS
   ========================================================================== */
.subjects-list-section {
    background-color: #f8fafc;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.premium-glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.subject-card {
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    border-bottom: 5px solid transparent; 
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.subject-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.subject-icon-box i {
    font-size: 3.2rem;
}

.subject-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.subject-card .subject-brief {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

.btn-tertiary-outline {
    background-color: transparent;
    border: 2px solid;
    padding: 10px 25px;
    font-size: 0.95em;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-tertiary-outline:hover {
    background-color: currentColor;
    color: #ffffff !important; /* Forces text to white on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   METHODOLOGY GRID
   ========================================================================== */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.methodology-item {
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border-top: 4px solid #007bff;
    transition: transform 0.3s ease;
}

.methodology-item:hover {
    transform: translateY(-8px);
}

.methodology-item i {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.methodology-item h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.methodology-item p {
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE FAQ ACCORDION
   ========================================================================== */
.subjects-faq-section {
    background-color: #f8fafc;
}

.faq-accordion {
    max-width: 900px;
    margin: 40px auto 0;
}

.accordion-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: #ffffff;
    border: none;
    padding: 22px 30px;
    font-size: 1.15rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    color: #007bff;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background-color: #ffffff;
}

.accordion-inner {
    padding: 0 30px 25px 30px;
}

.accordion-inner p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}



/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .subject-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .subjects-hero-section { min-height: 480px; padding-top: 100px; padding-bottom: 30px; }
    .hero-buttons { flex-direction: column; gap: 15px; margin-top: 20px; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    
    .subject-grid { grid-template-columns: 1fr; }
    .subject-card { padding: 30px 20px; }
    
    .accordion-header { padding: 18px 20px; font-size: 1.05rem; }
    .accordion-inner { padding: 0 20px 20px 20px; }
    
    
}