/*
Theme Name: Renala Khurd City Portal
Theme URI: https://renalakhurd.com
Author: Renala Khurd Team
Author URI: https://renalakhurd.com
Description: A modern city portal theme for Renala Khurd
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renala-khurd
*/

:root {
    --primary-color: #16a34a;
    --secondary-color: #0f3460;
    --dark-blue: #0a2540;
    --text-color: #374151;
    --light-bg: #f9fafb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Top Bar */
.top-bar {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.weather-info, .welcome-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    color: var(--white);
    margin-left: 12px;
    font-size: 16px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 50px;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 700;
}

.logo-text p {
    font-size: 12px;
    color: #64748B;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.add-listing-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
    text-align: left;
}

.hero-content h2 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-content h1 {
    font-size: 48px;
    margin: 10px 0;
    font-weight: 700;
}

.hero-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-content p {
    font-size: 16px;
    max-width: 600px;
}

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    display: flex;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box input, .search-box select {
    flex: 1;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    font-size: 14px;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.popular-searches {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popular-searches span {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Category Icons */
.category-section {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    text-align: center;
}

.category-item {
    text-decoration: none;
    color: var(--text-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
}

.category-item:hover .category-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* Stats Bar */
.stats-bar {
    background: var(--dark-blue);
    color: var(--white);
    padding: 30px 0;
    margin: 40px 0;
    border-radius: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 28px;
    color: var(--primary-color);
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--secondary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Grid Layouts */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* News Card */
.news-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.news-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.news-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.news-date {
    font-size: 13px;
    color: #94A3B8;
}

/* Business/Event Card */
.business-card, .event-card {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.business-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.business-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.business-meta {
    font-size: 13px;
    color: #64748B;
}

.rating {
    color: #F59E0B;
    font-size: 14px;
    margin-top: 5px;
}

/* Property Card */
.property-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.property-price {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 10px 15px;
    font-weight: 700;
}

.property-info {
    padding: 15px;
}

.property-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.property-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #64748B;
}

/* Why Section */
.why-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/why-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: var(--white);
}

.why-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.why-item {
    text-align: center;
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-color);
    padding: 50px 0;
    color: var(--white);
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.newsletter-icon {
    font-size: 64px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
}

.subscribe-btn {
    background: var(--dark-blue);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 18px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .three-column-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
