/*
Theme Name: Jamiah Imam Theme
Theme URI: https://imameazam.org
Author: Antigravity
Author URI: https://google.com
Description: A custom WordPress theme for Jamiah Imam e Azam Abu Hanifah with full Customizer support.
Version: 1.0.0
Text Domain: imam_theme
*/

/* --- Font Setup --- */
@font-face {
    font-family: 'NaatFont';
    src: url('https://res.cloudinary.com/awescreative/raw/upload/v1749150996/Awes/naatfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Color Palette --- */
:root {
    --color-primary: #0d9387;      /* Teal */
    --color-primary-dark: #0f766e; /* Darker Teal */
    --color-accent: #B8860B;       /* Dark Gold */
    --color-accent-light: #F4C430; /* Bright Gold */
    --gradient-primary: linear-gradient(135deg, #0d9387 0%, #0f766e 100%);
    --gradient-gold: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    --bg-light: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

/* Default Body Styles */
body {
    background-color: var(--bg-light);
    color: #334155;
    transition: all 0.3s ease;
}

/* Urdu Specific Styles */
html[lang="ur"] body {
    font-family: 'NaatFont', serif;
    line-height: 2.4;
    font-size: 1.15rem;
}

html[lang="ur"] .heading-font {
    font-family: 'NaatFont', serif;
}

/* English Specific Styles */
html[lang="en-US"] body,
html[lang="en"] body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    font-size: 1rem;
}

html[lang="en-US"] .heading-font, 
html[lang="en"] .heading-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Language Toggle Visibility logic handled via WP menus or widget mostly, 
   but specific classes if used: */
html[lang="ur"] .lang-en { display: none !important; }
html[lang="en"] .lang-ur { display: none !important; }
html[lang="en-US"] .lang-ur { display: none !important; }

/* --- Components --- */

/* WP Core Classes alignment */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
img { max-width: 100%; height: auto; }

/* Section Title Styling */
.section-title {
    position: relative;
    display: inline-block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.section-separator {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin: 0 auto 2rem auto;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
    filter: brightness(110%);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* Default hero image if not set inline */
.hero-bg-default {
    background-image: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.7)), url('https://img.freepik.com/premium-photo/contemporary-islamic-architecture-with-clean-lines-minimalist-aesthetic_230068-13496.jpg');
}

/* Feature Cards (Departments/Goals) */
.feature-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right; 
}

html[dir="ltr"] .feature-card::after {
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(13, 148, 136, 0.3);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(3deg);
}

/* Floating Actions */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-btn:hover { transform: translateY(-5px) scale(1.05); }
.btn-whatsapp { left: 2rem; background-color: #25D366; }
.btn-donate-float { right: 2rem; background: var(--gradient-primary); }

html[dir="rtl"] .btn-whatsapp { right: 2rem; left: auto; }
html[dir="rtl"] .btn-donate-float { left: 2rem; right: auto; }


/* Language Switcher */
.lang-switch-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.lang-switch-btn:hover {
    background: #f0fdfa;
    border-color: var(--color-primary);
}

/* Typography Utilities */
html[lang="ur"] .font-eng-in-ur {
    font-family: 'Roboto', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* --- Animations --- */
.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in { transform: translateY(30px); }

/* Context Aware Slide Animations */
html[dir="rtl"] .slide-in-start { transform: translateX(50px); }
html[dir="rtl"] .slide-in-end { transform: translateX(-50px); }
html[dir="ltr"] .slide-in-start { transform: translateX(-50px); }
html[dir="ltr"] .slide-in-end { transform: translateX(50px); }

.animate-on-scroll.is-visible { opacity: 1; transform: translate(0); }

/* Bank Card Style */
.bank-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}
.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(45deg);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
}

/* Blog Styles */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Widget/Sidebar Styles */
.widget {
    margin-bottom: 2rem;
}
.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
html[lang="ur"] .widget-title { font-family: 'NaatFont', serif; }

/* WP Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #0d9387;
    transition: all 0.2s;
}
.page-numbers.current, .page-numbers:hover {
    background: #0d9387;
    color: white;
    border-color: #0d9387;
}
