/* style.css - Complete & Updated */

/* --- General Reset & Variables --- */
:root {
    --primary-blue: #0f4c75;       /* Deep Blue */
    --secondary-blue: #3282b8;     /* Lighter Blue */
    --accent-gold: #cca43b;        /* Gold for accents */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Utility Classes for Animations --- */
.fade-in {
    animation: fadeIn 1.2s ease-in-out;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* --- Hero Section (Masjid Image) --- */
.hero {
    /* YAHAN MASJID KI PIC KA URL DALNA HOGA */
    background: linear-gradient(rgba(15, 76, 117, 0.6), rgba(15, 76, 117, 0.6)), url('../images/gulzar-e-habib.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Sections General --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 0 auto;
}

/* --- Leadership Section (Home) --- */
.leaders-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.leader-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--accent-gold);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.leader-img-container {
    flex: 1;
    min-height: 300px;
}

.leader-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    flex: 1.5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader-info h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.leader-title {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Highlights Section (Home - Re-added) --- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-blue);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* --- About Page Styling --- */
.about-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.about-text h3 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05rem;
}

.quote-box {
    background-color: #eef5fa;
    padding: 25px;
    border-left: 5px solid var(--primary-blue);
    margin: 30px 0;
    font-style: italic;
    color: #444;
    font-size: 1.1rem;
    border-radius: 0 10px 10px 0;
}

/* --- Contact Page Styling --- */
.contact-container-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-info-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--accent-gold);
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary-blue);
    background: #eef5fa;
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container-wide {
    flex: 1;
    min-width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid white;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .leader-card {
        flex-direction: column;
    }
    .leader-img-container {
        min-height: 250px;
    }
}

@media (min-width: 992px) {
    .leader-card {
        flex-direction: row;
        min-height: 350px;
    }
    .leader-card:nth-child(even) {
        flex-direction: row-reverse; 
        border-left: none;
        border-right: 5px solid var(--accent-gold);
    }
}