/* Jameah Husainiyah Website Stylesheet */

:root {
    --primary-emerald: #064e3b;
    --primary-emerald-hover: #022c22;
    --accent-gold: #b45309;
    --accent-gold-light: #d97706;
    --light-bg: #fdfbf7;
    --light-bg-alt: #f5f1e9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar styles */
.jh-navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(180, 83, 9, 0.1);
    padding: 12px 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.jh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.jh-brand-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background-color: #fff;
    padding: 2px;
}

.jh-brand-text {
    display: flex;
    flex-direction: column;
}

.jh-brand-text h5 {
    color: var(--primary-emerald);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.jh-brand-text span {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.jh-nav-btn {
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-portal-staff {
    background-color: var(--primary-emerald);
    color: #fff;
    border: 1.5px solid var(--primary-emerald);
}

.btn-portal-staff:hover {
    background-color: var(--primary-emerald-hover);
    border-color: var(--primary-emerald-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

.btn-portal-admin {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1.5px solid var(--accent-gold);
}

.btn-portal-admin:hover {
    background-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}

/* Hero Section */
.jh-hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(6, 78, 59, 0.05) 0%, rgba(253, 251, 247, 0) 90%), 
                linear-gradient(135deg, rgba(180, 83, 9, 0.03) 0%, rgba(253, 251, 247, 0) 100%);
    border-bottom: 1px solid rgba(180, 83, 9, 0.08);
}

.jh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(180, 83, 9, 0.06);
    border: 1px solid rgba(180, 83, 9, 0.15);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.jh-hero h1 {
    font-size: 3.2rem;
    color: var(--primary-emerald);
    line-height: 1.2;
    margin-bottom: 16px;
}

.jh-hero-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    line-height: 1.8;
}

.jh-hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.jh-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.jh-hero-ctas .btn {
    padding: 12px 32px;
    font-size: 0.95rem;
}

/* Stats Section */
.jh-stats {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.jh-stats-card {
    background: #fff;
    border: 1px solid rgba(180, 83, 9, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.04);
    transition: var(--transition-smooth);
}

.jh-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 78, 59, 0.08);
    border-color: var(--primary-emerald);
}

.jh-stats-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.jh-stats-num {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-emerald);
    font-weight: 700;
    margin-bottom: 4px;
}

.jh-stats-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections General */
.jh-section {
    padding: 80px 0;
}

.jh-section-alt {
    background-color: var(--light-bg-alt);
}

.jh-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.jh-section-title h2 {
    color: var(--primary-emerald);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.jh-section-title p {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0;
}

/* About Us Section */
.jh-about-text {
    padding-right: 20px;
}

.jh-about-text h3 {
    color: var(--primary-emerald);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.jh-about-text p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.jh-quote-card {
    background: #fff;
    border-left: 4px solid var(--accent-gold);
    padding: 24px;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.jh-quote-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.jh-quote-author {
    font-weight: 700;
    color: var(--primary-emerald);
    font-size: 0.85rem;
    margin: 0;
}

.jh-quote-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Departments Section */
.jh-dept-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.jh-dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.06);
    border-color: rgba(180, 83, 9, 0.2);
}

.jh-dept-icon {
    width: 50px;
    height: 50px;
    background: rgba(180, 83, 9, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.jh-dept-card h4 {
    color: var(--primary-emerald);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.jh-dept-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Section */
.jh-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(180, 83, 9, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.jh-contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.jh-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(6, 78, 59, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-emerald);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.jh-contact-info h5 {
    font-size: 0.9rem;
    color: var(--primary-emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.jh-contact-info p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.95rem;
}

.jh-map-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(180, 83, 9, 0.08);
}

/* Footer styles */
.jh-footer {
    background-color: var(--primary-emerald-hover);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    border-top: 3px solid var(--accent-gold);
    font-size: 0.9rem;
}

.jh-footer h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.jh-footer p {
    line-height: 1.7;
}

.jh-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 40px 0 20px 0;
}

.jh-footer-credits {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.jh-footer-credits a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Animations */
.jh-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .jh-hero h1 {
        font-size: 2.5rem;
    }
    .jh-hero-urdu {
        font-size: 1.8rem;
    }
    .jh-stats {
        margin-top: 20px;
    }
    .jh-stats-card {
        margin-bottom: 16px;
    }
    .jh-contact-card {
        margin-bottom: 24px;
    }
}
