/* Global Resets & Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&family=DM+Mono&display=swap');

body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    color: #1E1E1E;
    background-color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, p {
    margin: 0 0 1em 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area h3 {
    margin: 0;
}

.logo-area img {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Hero Sections */
.hero-titles {
    text-align: center;
    padding: 2rem 0;
}

.nepali-title {
    font-size: 2rem;
    font-weight: 700;
}

.english-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.hero-image img {
    width: 100%;
    display: block;
}

.registration-info {
    text-align: center;
    padding: 1rem;
    font-family: 'DM Mono', monospace;
    background-color: #f9f9f9;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 16px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Mobile responsiveness for about section */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 20px;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    /* Mobile padding adjustments */
    .container {
        padding: 0 30px;
    }
    
    .hero-titles {
        padding: 2rem 30px;
    }
    
    .event-grid {
        gap: 1.5rem;
        padding: 0 10px;
    }
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.team-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.team-section .sub-heading {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.adviser-grid {
     max-width: 600px;
     margin: 0 auto;
}

.team-member img {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.team-member h3 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: #fff;
    padding-top: 3rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 3rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-logo img {
    height: 100px;
}

.footer-bar {
    background-color: #1E1E1E;
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
}

/* Events Page */
.page-content {
    padding: 4rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-card a {
    display: block;
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.event-card-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
}

/* Styles for images within individual event pages */
main article img {
    max-width: 80%; /* Adjust as needed */
    display: block;
    margin: 0 auto 1em auto; /* Center and add some bottom margin */
}

/* Recent Events Section on Homepage */
.recent-events-section {
    padding: 4rem 0;
    text-align: center;
}

.recent-events-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.view-all-events {
    margin-top: 3rem;
}

.view-all-events .button {
    display: inline-block;
    background-color: #007bff; /* Example blue color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-all-events .button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
