/* 
* City Depository - Enhanced Index Page Styles
* Makes the homepage more attractive and engaging
*/

/* Enhanced Professional Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #1a4567 60%, #2c3e50 100%);
    color: #fff;
    padding: 110px 0 70px 0;
    margin-bottom: 60px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.10) 0, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: heroBgMove 18s linear infinite alternate;
}

@keyframes heroBgMove {
    0% { background-position: 0 0, 100% 100%; }
    100% { background-position: 100% 0, 0 100%; }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 22px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.18);
    line-height: 1.15;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 38px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.13);
    font-weight: 500;
}

/* Glassmorphic Search Box */
.search-box.glassmorphic {
    background: rgba(255,255,255,0.72);
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px rgba(52,152,219,0.13), 0 1.5px 8px rgba(44,62,80,0.08);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.22);
    transition: box-shadow 0.3s, background 0.3s;
    padding: 18px 22px 10px 22px;
}

.search-box.glassmorphic:hover {
    background: rgba(255,255,255,0.90);
    box-shadow: 0 16px 40px rgba(52,152,219,0.18);
}

.search-box input, .search-box select {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 1.13rem;
    font-weight: 500;
    color: #222;
}

.search-box input:focus, .search-box select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #90caf9;
    background: #f5faff;
}

.search-box .btn {
    border-radius: 2rem;
    padding: 13px 0;
    font-weight: 700;
    font-size: 1.13rem;
    box-shadow: 0 5px 15px rgba(52,152,219,0.18);
    transition: all 0.2s;
}

.search-box .btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(52,152,219,0.22);
}

/* Card-like Quick Links */
.category-quick-links .quick-link-card {
    background: rgba(255,255,255,0.22);
    color: #1976d2;
    border: 1.5px solid #e3f2fd;
    box-shadow: 0 2px 12px rgba(52,152,219,0.10);
    font-weight: 600;
    font-size: 1.08rem;
    padding: 10px 22px;
    margin: 0 4px 8px 4px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}

.category-quick-links .quick-link-card:hover {
    background: #e3f2fd;
    color: #1565c0;
    border: 1.5px solid #90caf9;
    box-shadow: 0 6px 18px rgba(52,152,219,0.18);
    text-decoration: none;
}

/* Enhanced Service Categories */
.service-category {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border-bottom: 5px solid transparent;
    height: 100%;
}

.service-category:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-bottom: 5px solid #3498db;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #3498db;
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-category:hover .service-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    transform: rotateY(180deg);
}

.service-category h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.service-category:hover h5 {
    color: #3498db;
}

.service-category p {
    color: #777;
}

/* Enhanced Business Cards */
.business-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.business-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.business-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: all 0.3s ease;
}

.business-card:hover .business-image::before {
    opacity: 1;
}

.business-info {
    padding: 25px;
    position: relative;
}

.business-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.business-card:hover .business-title {
    color: #3498db;
}

.business-category {
    color: #3498db;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.business-rating {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.business-address {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.business-card .btn {
    width: 100%;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.business-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Enhanced Featured & Recent Sections */
.featured-section {
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    padding: 70px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(52, 152, 219, 0.03) 0px, rgba(52, 152, 219, 0.03) 2px, transparent 2px, transparent 4px);
    opacity: 0.5;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 2px;
}

/* Author Posts Section */
.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: #777;
}

.card-footer {
    padding: 15px 20px;
}

.card-footer img {
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card-footer .btn {
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.card-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Animations */
.animate-fadeInDown {
    animation: fadeInDown 1s cubic-bezier(.39,.575,.565,1.000) both;
}

.animate-fadeInUp {
    animation: fadeInUp 1s cubic-bezier(.39,.575,.565,1.000) both;
}

/* Responsive Hero & Search */
@media (max-width: 991.98px) {
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1.05rem; max-width: 100%; }
    .search-box.glassmorphic { border-radius: 1.3rem; padding: 10px 6px; }
    .search-box .row {
        flex-direction: column !important;
    }
    .search-box .col-lg, .search-box .col-lg-3, .search-box .col-lg-auto {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
    }
    .search-box .btn {
        width: 100%;
    }
    .category-quick-links .quick-link-card { width: 100%; justify-content: center; margin: 0 0 8px 0; font-size: 1rem; padding: 10px 0; }
}

@media (min-width: 992px) {
    .search-box .row {
        flex-direction: row !important;
    }
    .search-box .col-lg, .search-box .col-lg-3, .search-box .col-lg-auto {
        margin-bottom: 0 !important;
    }
    .search-box .btn {
        width: auto;
        min-width: 120px;
    }
}

.search-box input, .search-box select {
    min-height: 48px;
    font-size: 1.08rem;
}

.search-box .form-control-lg, .search-box .form-select-lg {
    border-radius: 1.5rem;
}

.search-box .position-relative i {
    font-size: 1.1em;
}

@media (max-width: 575.98px) {
    .hero {
        padding: 32px 6px 12px 6px;
    }
    .search-box.glassmorphic {
        border-radius: 1.1rem;
        padding: 7px 2px;
        margin-bottom: 18px;
        box-shadow: 0 2px 8px rgba(52,152,219,0.10);
    }
    .search-box input, .search-box select {
        font-size: 0.98rem;
        padding: 7px 8px;
    }
    .search-box .btn {
        font-size: 0.98rem;
        padding: 9px 0;
    }
    .category-quick-links {
        margin-top: 18px !important;
        margin-bottom: 8px;
    }
    .category-quick-links .quick-link-card {
        font-size: 0.95rem;
        margin-bottom: 7px;
        border-radius: 18px;
        padding: 9px 0;
    }
}
