/* ==================== General Styles ==================== */
:root {
    --primary-teal: #1B5E5F;
    --primary-gold: #FFC107;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --bg-light-cream: #fefaf0;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --accent-yellow: #FFD700;
}

* {
    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;
}

/* ==================== Top Bar ==================== */
.top-bar {
    background-color: var(--primary-teal) !important;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-gold);
}

.top-bar a {
    color: white;
    text-decoration: none;
}

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

/* ==================== Navigation Bar ==================== */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-teal) !important;
    font-weight: 700;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), #0a3a3b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    margin-right: 15px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-teal) !important;
}

.dropdown-menu {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-teal) !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0;
    margin-top: -5px;
}

.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 10px;
}

/* ==================== Floating Buttons ==================== */
.float-whatsapp,
.float-call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.float-whatsapp {
    background-color: #25d366;
    left: 20px;
}

.float-whatsapp:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.float-call {
    background-color: #dc3545;
    right: 20px;
}

.float-call:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light-cream) 0%, #f0ebe0 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.05),
        rgba(255, 193, 7, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.hero-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    /* background: var(--primary-gold); */
    margin: 15px auto 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.btn-primary-custom {
    background-color: var(--primary-teal);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #0a3a3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 94, 95, 0.3);
}

/* ==================== Carousel ==================== */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: transparent;
    padding: 0;
    bottom: auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-teal);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #0a3a3b;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

.carousel-indicators .active {
    background-color: var(--primary-gold);
}

/* ==================== Course Cards ==================== */
.course-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-gold));
    z-index: 10;
}

.course-card:hover {
    box-shadow: 0 12px 24px rgba(27, 94, 95, 0.15);
    transform: translateY(-8px);
}

.course-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-gray);
}

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

.course-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.course-card-text {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 60px;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.btn-sm-custom {
    background-color: var(--primary-teal);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-sm-custom:hover {
    background-color: #0a3a3b;
    color: white;
}

/* ==================== Testimonials ==================== */
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-teal);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 16px rgba(27, 94, 95, 0.15);
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    background-color: #ccc;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 15px;
}

.testimonial-name {
    font-weight: bold;
    color: var(--primary-blue);
}

/* ==================== Blog Section ==================== */
.blog-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.blog-card .blog-image {
    border-radius: 12px 12px 0 0;
}

.blog-card:hover {
    box-shadow: 0 12px 24px rgba(27, 94, 95, 0.15);
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.blog-body {
    padding: 20px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ==================== Gallery ==================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-icon {
    color: white;
    font-size: 2rem;
}

/* ==================== Contact Form ==================== */
.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.3);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* ==================== Why Choose Us Section ==================== */
.why-choose-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.why-choose-card:hover {
    box-shadow: 0 12px 24px rgba(27, 94, 95, 0.15);
    transform: translateY(-8px);
}

.why-choose-card i {
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.why-choose-card h5 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-choose-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== Stats Section ==================== */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0a3a3b 100%);
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(27, 94, 95, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    margin-top: 10px;
    opacity: 0.95;
}

/* ==================== Footer ==================== */
footer {
    background-color: var(--primary-teal) !important;
    margin-top: 60px;
    border-top: 3px solid var(--primary-gold);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-gold) !important;
}

/* ==================== Admin Panel ==================== */
.admin-sidebar {
    background-color: var(--dark-gray);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-blue);
    color: var(--primary-gold);
}

.admin-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--light-gray);
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}

.admin-actions a,
.admin-actions button {
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: var(--primary-teal);
    color: white;
}

.btn-edit:hover {
    background-color: #0f2d6f;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .course-card-image {
        height: 180px;
    }

    .float-whatsapp,
    .float-call {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 10px;
    }

    .float-whatsapp {
        left: 10px;
    }

    .float-call {
        right: 10px;
    }

    .top-bar .row {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar .col-md-6 {
        text-align: center !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .course-card-image {
        height: 150px;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
}

/* ==================== Utilities ==================== */
.text-gold {
    color: var(--primary-gold);
}

.text-teal {
    color: var(--primary-teal);
}

/* Decorative circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-yellow {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
}

.circle-teal {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27, 94, 95, 0.05) 0%, transparent 70%);
}

.bg-light-gray {
    background-color: var(--bg-light-cream);
}

.border-gold {
    border-color: var(--primary-gold);
}

.shadow-sm-custom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--primary-gold);
}

/* ==================== Student Success Stories ==================== */
.student-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    box-shadow: 0 8px 24px rgba(27, 94, 95, 0.15);
    transform: translateY(-8px);
}

.student-image-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px !important;
    overflow: hidden;
    border-radius: 8px;
}

.student-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background-color: var(--light-gray);
    display: block;
    margin: 0;
    padding: 0;
}

.student-image.bg-success {
    width: 100%;
    height: 250px;
    background-color: #28a745 !important;
    border-radius: 8px;
}

.student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    margin-top: 0;
}

.student-designation {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--primary-teal) !important;
    font-weight: 600;
}

.student-course {
    font-size: 0.85rem;
    color: #999 !important;
    margin-bottom: 10px;
}

.student-story {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==================== Course Detail Sidebar Card ==================== */
.col-md-4 .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(27, 94, 95, 0.12);
    background-color: #ffffff;
    overflow: hidden;
}

.col-md-4 .card-body {
    padding: 28px;
}

.col-md-4 .card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    margin-top: 0;
}

.col-md-4 .card h2.text-gold {
    color: var(--primary-gold) !important;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.col-md-4 .card p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.col-md-4 .card strong {
    font-weight: 600;
    color: #1a1a1a;
}

.col-md-4 .card .ms-3 {
    color: var(--text-color);
    font-weight: 500;
    display: block;
    margin-left: 1rem !important;
}

.col-md-4 .card i {
    margin-right: 8px;
    color: var(--primary-teal);
}

.col-md-4 .card .btn {
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: block;
    text-align: center;
}

.col-md-4 .card .btn-primary {
    background-color: #007BFF;
    color: white;
}

.col-md-4 .card .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.col-md-4 .card .btn-success {
    background-color: #28a745;
    color: white;
}

.col-md-4 .card .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.col-md-4 .card .alert {
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background-color: #f0f8ff;
    border-left: 4px solid #007BFF;
    font-size: 0.9rem;
}

.col-md-4 .card .alert strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.col-md-4 .card .alert-info {
    background-color: #e7f3ff;
    border-left-color: #007BFF;
    color: #004085;
}

.col-md-4 .card .alert-success {
    background-color: #e8f5e9;
    border-left-color: #28a745;
    color: #155724;
}

.col-md-4 .card .alert-warning {
    background-color: #fff8e1;
    border-left-color: #ffc107;
    color: #856404;
}

.col-md-4 .card .border-bottom,
.col-md-4 .card .border-top {
    border-color: #e9ecef !important;
}

.col-md-4 .card .pb-4 {
    padding-bottom: 1.5rem !important;
}

.col-md-4 .card .mb-4 {
    margin-bottom: 1.5rem !important;
}

.col-md-4 .sticky-top {
    top: 20px !important;
    z-index: 10 !important;
}
