/* =============================================
   LIONS CLUB KHANEWAL CITY - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --lions-blue: #0033a0;
    --lions-blue-dark: #002080;
    --lions-blue-darker: #001a66;
    --lions-gold: #f5a623;
    --lions-gold-light: #ffd700;
    --lions-gold-dark: #d4891e;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --light-gray: #e9ecef;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

body.lang-ur {
    font-family: 'Noto Nastaliq Urdu', 'Inter', serif;
    line-height: 2;
}

a { 
    color: var(--lions-blue); 
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--lions-gold); }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--lions-gold);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-padding {
    padding: 80px 0;
}

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

.section-bg-blue {
    background: var(--lions-blue);
    color: var(--white);
}

.section-bg-blue .section-title,
.section-bg-blue h2,
.section-bg-blue h3 {
    color: var(--white);
}

.section-bg-blue .section-title::after {
    background: var(--lions-gold);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--lions-blue-darker);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--text-light);
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--lions-gold);
}

.top-bar-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--lions-gold);
    color: var(--lions-blue-dark);
}

.lang-link {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== LOGIN BUTTON (Top Bar) ===== */
.btn-login-top {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--lions-gold);
    color: var(--lions-blue-darker) !important;
    border: none;
    transition: var(--transition);
}

.btn-login-top:hover {
    background: var(--lions-gold-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

/* ===== MAIN NAVIGATION ===== */
.main-navbar {
    background: var(--lions-blue) !important;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,51,160,0.3);
    transition: var(--transition);
}

.main-navbar .navbar-brand .brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.main-navbar .navbar-brand .brand-year {
    font-size: 0.75rem;
    opacity: 0.8;
    color: var(--lions-gold);
}

.main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--lions-gold) !important;
    background: rgba(255,255,255,0.1);
}

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.main-navbar .dropdown-item {
    font-weight: 500;
    padding: 10px 16px;
    transition: var(--transition);
}

.main-navbar .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--lions-blue);
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: var(--lions-gold);
    color: var(--lions-blue-darker);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-gold:hover {
    background: var(--lions-gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}

.btn-blue {
    background: var(--lions-blue);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-blue:hover {
    background: var(--lions-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,51,160,0.3);
}

.btn-outline-gold {
    border: 2px solid var(--lions-gold);
    color: var(--lions-gold);
    background: transparent;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--lions-gold);
    color: var(--lions-blue-darker);
    transform: translateY(-2px);
}

/* ===== HERO SLIDER ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,51,160,0.9) 0%, rgba(0,26,102,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.hero-content .hero-year {
    font-size: 1rem;
    color: var(--lions-gold);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content .hero-buttons .btn {
    margin: 5px;
    padding: 12px 32px;
}

/* ===== IMPACT STATS ===== */
.impact-section {
    padding: 60px 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 3;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.impact-stat {
    text-align: center;
    padding: 20px;
}

.impact-stat .stat-icon {
    font-size: 2rem;
    color: var(--lions-gold);
    margin-bottom: 10px;
}

.impact-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lions-blue);
    line-height: 1.2;
}

.impact-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PRESIDENT WELCOME ===== */
.president-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.president-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.president-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.president-card .card-body {
    padding: 30px;
}

.president-card .president-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lions-blue);
}

.president-card .president-title {
    color: var(--lions-gold);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

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

.project-card .card-body {
    padding: 20px;
}

.project-card .card-category {
    font-size: 0.8rem;
    color: var(--lions-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0;
}

/* ===== CALENDAR CARD ===== */
.event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--lions-gold);
    transition: var(--transition);
    margin-bottom: 16px;
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.event-card .event-date {
    font-size: 0.85rem;
    color: var(--lions-blue);
    font-weight: 600;
}

.event-card .event-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 4px 0;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,51,160,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== NEWS CARD ===== */
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-card .news-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-card .news-body {
    padding: 20px;
}

.news-card .news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== VOLUNTEER CTA ===== */
.volunteer-cta {
    background: linear-gradient(135deg, var(--lions-blue) 0%, var(--lions-blue-dark) 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.volunteer-cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
}

/* ===== CONTACT ===== */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    margin: 0 auto 16px;
    color: var(--lions-blue);
    font-size: 1.5rem;
}

/* ===== SPONSORS ===== */
.sponsor-logo {
    padding: 20px;
    text-align: center;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(30%);
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--lions-blue-darker);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--lions-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--lions-gold);
    padding-left: 4px;
}

.footer-contact-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contact-info i {
    width: 20px;
    color: var(--lions-gold);
    margin-right: 8px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 6px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--lions-gold);
    color: var(--lions-blue-darker);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 0;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    display: flex;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--lions-blue) 0%, var(--lions-blue-darker) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--lions-gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 991.98px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.6rem; }
    .impact-stat .stat-number { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 767.98px) {
    .hero-section { min-height: 60vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content .hero-subtitle { font-size: 1rem; }
    .impact-section { margin-top: -30px; }
    .impact-stat { padding: 12px; }
    .impact-stat .stat-number { font-size: 1.6rem; }
    .section-title { font-size: 1.4rem; }
    .section-padding { padding: 40px 0; }
    .president-card img { height: 300px; }
    .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
    .hero-section { min-height: 50vh; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content { padding: 60px 0; }
    .president-card img { height: 250px; }
    .back-to-top { bottom: 16px; right: 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

.animate-count {
    animation: countUp 0.8s ease forwards;
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--lions-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,51,160,0.15);
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}