/* ==========================================================================
   MOHACADEMY PHYSICS A/L STYLING ENGINE (FULLY RESPONSIVE)
   ========================================================================== */

/* Enhanced Responsive Hero Section */
.physics-hero-section {
    position: relative;
    width: 100%;
    min-height: 520px; /* Fluid height allows text wrapping without clipping */
    background: url('../images/physics-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;
}

.physics-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;
}

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

.physics-hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    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);
}

.physics-hero-section p {
    font-size: clamp(1.05rem, 2vw, 1.6rem);
    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: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Reusable Glassmorphism Card */
.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.05);
    border-radius: 16px;
}

/* Why Physics Feature Highlights */
.why-physics-section {
    background-color: #f8fafc;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-item {
    padding: 35px 25px;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

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

.highlight-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Core Learning Components Grid */
.core-components-section {
    background-color: #ffffff;
}

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

.component-card {
    background-color: var(--background-soft-blue);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.component-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.component-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.component-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

/* Key Topics Grid */
.key-topics-section {
    background-color: #f8fafc;
}

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

.topic-item {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.topic-item:hover {
    transform: translateY(-3px);
    background-color: var(--dark-blue);
}

/* Interactive Quiz UI */
.physics-quiz-section {
    background-color: #ffffff;
}

.quiz-card {
    padding: 40px;
    max-width: 700px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 25px;
    line-height: 1.5;
}

.quiz-option-label {
    display: block; 
    background-color: #ffffff;
    padding: 18px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.quiz-option-label:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-color);
}

.quiz-option-label input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
    vertical-align: middle;
}

.quiz-feedback {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    display: none; 
}

.quiz-feedback.correct {
    background-color: #d4edda;
    color: #155724; 
    border: 1px solid #c3e6cb;
}

.quiz-feedback.incorrect {
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb;
}

.quiz-link-wrapper {
    margin-top: 25px;
    text-align: center;
}


/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    .feature-highlights, .component-grid, .topics-grid { grid-template-columns: 1fr; }
    .highlight-item, .component-card, .topic-item { padding: 30px; }
}

@media (max-width: 768px) {
    .physics-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; }
    
    .quiz-card { padding: 25px 20px; }
    
    
}