/* Custom Styles for Coaching Directory Platform */

/* Sticky Header Styles */
.sticky-top {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.navbar-scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: rgba(13, 110, 253, 0.98) !important;
}

.has-sticky-header {
    padding-top: 0;
}

.navbar-brand {
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand {
    transform: scale(0.9);
}

/* Enhanced Nav Links */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover:before {
    width: 70%;
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar-nav .nav-link.active:before {
    width: 70%;
    opacity: 1;
}

/* Featured Centers Styles */
.center-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
}

.center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Thumbnail styling */
.center-thumbnail {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.center-img {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
    width: 100%;
}

.center-card:hover .center-img {
    transform: scale(1.08);
}

/* Thumbnail overlay for better text contrast */
.thumbnail-overlay {
    position: absolute;
    bottom: 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%);
    z-index: 1;
}

/* Center logo styling */
.center-logo {
    z-index: 10;
}

.center-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Center name styling */
.center-name {
    color: #333;
    font-size: 1.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6rem;
}

/* Stats badges styling */
.stats-highlights .badge {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stats-highlights .badge i {
    font-size: 0.8rem;
}

/* Star Rating Display */
.rating-display .stars-container {
    display: flex;
    align-items: center;
}

.rating-display .stars-container i {
    margin-right: 2px;
    font-size: 1rem;
}

.rating-display .rating-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rating-display .rating-text .fw-bold {
    font-size: 1.1rem;
    color: #333;
}

.rating-display .rating-text .small {
    font-size: 0.8rem;
}

/* Location and featured badges */
.location-badge, .featured-badge {
    z-index: 5;
}

/* Ensure proper z-index for all elements */
.z-index-1 {
    z-index: 10;
}

/* Enhanced Search Form Styles */
.search-form {
    transition: all 0.3s ease;
    border-top: 4px solid #0d6efd;
}

.search-form:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.search-title {
    color: #333;
    font-size: 1.5rem;
}

.search-input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.search-button {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.search-tag:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Modern Hero Slider */
.hero-slider {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
}

#homeSlider {
    margin-bottom: 0;
}

#homeSlider .carousel-inner {
    height: 430px; /* Fixed height as per requirements */
    width: 100%; /* Ensure full width */
    border-radius: 0;
    overflow: hidden;
}

#homeSlider .carousel-item {
    height: 430px;
    position: relative;
    width: 100%;
}

#homeSlider .carousel-item img {
    height: 430px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
}

/* Dark overlay for better text readability */
.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

#homeSlider .carousel-caption {
    z-index: 2;
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    max-width: 650px;
    padding: 0 20px;
    left: 10%;
    right: auto;
}

#homeSlider .carousel-item:nth-child(2) .carousel-caption {
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
}

#homeSlider .carousel-item:nth-child(3) .carousel-caption {
    text-align: right;
    left: auto;
    right: 10%;
}

#homeSlider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

#homeSlider .carousel-caption p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 80%;
}

#homeSlider .carousel-item:nth-child(2) .carousel-caption p,
#homeSlider .carousel-item:nth-child(3) .carousel-caption p {
    margin-left: auto;
    margin-right: auto;
}

#homeSlider .carousel-indicators {
    bottom: 30px;
}

#homeSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#homeSlider .carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Wave separator */
.wave-separator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-separator svg {
    height: 70px;
    width: 100%;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: #333;
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Modern Search Form */
.search-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.search-form .input-group-text {
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1.25rem;
}

.search-form .form-control {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Featured Centers Section */
.featured-centers {
    padding: 20px 0 40px;
}

.featured-centers h2 {
    font-weight: 700;
    margin-bottom: 5px;
}

/* Center Cards with Modern Design */
.center-card {
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
}

.center-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.center-card:hover .card-img-top {
    transform: scale(1.05);
}

.center-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.center-card .card-text {
    flex-grow: 1;
    color: #6c757d;
    line-height: 1.6;
}

.center-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
}

.center-logo {
    top: 15px;
    left: 15px;
    z-index: 2;
}

.center-logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.location-badge .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
}

/* Center Stats */
.center-stats {
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0d6efd;
}

.stat-label {
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Toggle Buttons */
.btn-group .btn {
    padding: 0.5rem 1rem;
}

.btn-group .btn i {
    font-size: 1rem;
}

/* Dashboard */
.dashboard-stats .card {
    text-align: center;
    padding: 20px;
}

.dashboard-stats .card-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-stats .card-text {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background-color: #343a40;
    color: white;
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Forms */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

label {
    font-weight: 500;
    margin-bottom: 5px;
}

/* Mini Website */
.mini-site-header {
    background-color: #0d6efd;
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.mini-site-header h1 {
    font-weight: 700;
}

.mini-site-section {
    margin-bottom: 40px;
}

.mini-site-section h2 {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Gallery */
.gallery-img {
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Footer Social Icons */
.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons i {
    font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .dashboard-stats .card-title {
        font-size: 2rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        margin-right: 5px;
    }
}
