/* Mooting & Mock Trials Page Styles - Following Site Pattern */

#intro {
    background-image: 
        linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5)  
        ),
        url('../images/mooting.jpeg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: white; 
    text-align: center;
    height: 30em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 100;
    font-optical-sizing: auto;
    font-style: normal;
    margin-bottom: 0;
    width: 100%;
}

#intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#intro h2 i {
    margin-right: 15px;
    color: #ba1b18;
}

.intro-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #f4f4f4;
    margin: 0;
    font-weight: 300;
}

#mainbody {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Sections */
.content-section {
    margin: 60px 0;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2.5rem;
    color: #ba1b18;
    margin-bottom: 15px;
    display: block;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-card i {
    font-size: 2rem;
    color: #ba1b18;
    margin-bottom: 15px;
}

.skill-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.skill-card p {
    font-family: 'Lora', serif;
    color: #666;
    line-height: 1.6;
}

/* Achievement Highlight */
.achievement-highlight {
    background: linear-gradient(135deg, #ba1b18, #9e1d18);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    color: white;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.achievement-content i {
    font-size: 3rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.achievement-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: white;
}

.achievement-text p {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    color: white;
}

/* Competitions Section */
.competitions-section {
    background-color: #f4f4f4;
}

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

.semester-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.semester-header {
    background-color: #ba1b18;
    color: white;
    padding: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.semester-header i {
    font-size: 1.5rem;
}

.semester-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0;
}

.competitions-list {
    padding: 25px;
}

.competition-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.competition-item:last-child {
    border-bottom: none;
}

.competition-date {
    background-color: #ba1b18;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.competition-details h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 5px 0;
}

.sponsor {
    font-family: 'Lora', serif;
    color: #666;
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

/* Travel Section */
.travel-section {
    background: linear-gradient(135deg, #ba1b18, #9e1d18);
    color: white;
}

.travel-section .section-header h3 {
    color: white;
}

.travel-section .section-header i {
    color: rgba(255, 255, 255, 0.9);
}

.travel-section p {
    color: white;
    opacity: 0.95;
}

.travel-section * {
    color: white;
}

.travel-destinations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.destination-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Lora', serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.destination-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #ba1b18, #9e1d18);
    color: white;
    text-align: center;
}

.cta-section .section-header h3 {
    color: white;
}

.cta-section .section-header i {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section * {
    color: white;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
}

.cta-header {
    margin-bottom: 30px;
}

.cta-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.cta-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0;
}

.cta-card p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #ba1b18;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #ba1b18;
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: #ba1b18;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #intro h2 {
        font-size: 2.2rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        margin: 40px 0;
        padding: 30px 20px;
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .achievement-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .semester-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .competition-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .competition-date {
        align-self: center;
    }
    
    .travel-destinations {
        flex-direction: column;
        align-items: center;
    }
    
    .destination-tag {
        justify-content: center;
        min-width: 150px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #intro {
        height: 25em;
    }
    
    #intro h2 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 25px 15px;
        margin: 30px 0;
    }
    
    .section-header h3 {
        font-size: 1.6rem;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .semester-card {
        margin: 0 10px;
    }
    
    .semester-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
