@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
/* --- 1. Global Reset & Typography --- */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #ffc107; /* Yellow/Gold */
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --section-padding: 80px 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
    padding-top: 66px; 
}

.primary-bg {
    background-color: var(--primary-color) !important;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* --- 2. Navbar & Header Enhancements --- */
/* --- Logo Styling for Navbar --- */
.navbar-logo {
    height: 35px; /* Adjust height for standard navbar size */
    width: auto;
    /* Optional: smooth transition if you add hover effects */
    transition: opacity 0.3s ease; 
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { 
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* --- 3. Hero/Carousel Section --- */

.hero-section {
    position: relative;
    min-height: 60vh;
    margin-top: -66px; 
}

.carousel-item img {
    height: 650px; 
    object-fit: cover;
    filter: brightness(0.6); 
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 15%;
    right: 15%;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* --- 4. Courses Section (Card Enhancement) --- */

.course-card {
    border: 1px solid var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: white;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.course-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- 5. Contact Form Enhancement --- */
.form-control, .btn {
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3; 
    border-color: #0056b3;
}

/* --- 6. Back-to-Top Button --- */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    opacity: 1;
    color: var(--dark-color);
}

/* --- 7. Responsive Adjustments (Media Queries) --- */

@media (max-width: 992px) {
    body {
        padding-top: 56px;
    }
    .hero-section {
        margin-top: -56px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .carousel-item img {
        height: 400px;
    }
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        border-radius: 0 0 5px 5px;
        margin-top: 5px;
    }
    .navbar-nav .nav-link {
        text-align: center;
    }
}

/* --- 8. Scroll Fade-In Animation (for professionalism) --- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);

}
.course-card a {
    text-decoration: none !important;
    color: inherit !important;
}
.course-card a:hover h4 {
    text-decoration: underline; /* subtle hover effect */
}
/* Testimonials Section Styles */
.testimonials-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light grey background */
    text-align: center;
}

.testimonials-section h2 {
    margin-bottom: 40px;
    font-size: 2em;
    color: #343a40;
}

.container {
    /* If you don't have a container style, add one for max-width and centering */
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Allows cards to be side-by-side */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
}
/* CSS for Testimonials and Form - Fully Responsive */
.t-section {
    padding: 60px 20px;
    background-color: #f8f9fa; 
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.t-container {
    max-width: 1200px;
    margin: 0 auto;
}

.t-section h2 {
    color: #343a40;
    margin-bottom: 20px;
    font-weight: 700;
}

.testimonial-grid {
    display: grid;
    /* Default: 1 column on small screens */
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-bottom: 60px;
}

/* Tablet and Desktop Responsiveness */
@media (min-width: 768px) {
    .testimonial-grid {
        /* On tablets: 2 columns */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 1024px) {
    .testimonial-grid {
        /* On desktop: 3 columns */
        grid-template-columns: repeat(3, 1fr); 
    }
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: auto; /* Ensure dynamic height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-size: 1.05em;
    font-style: italic;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

.student-info h4 {
    margin: 0;
    color: #007bff; /* Primary brand color */
    font-weight: 600;
}

.student-info p {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
    font-style: normal;
}

/* Placeholder card for initial load */
.placeholder-card {
    opacity: 0.6;
}

/* Submission Form Styles */
.form-title {
    margin-top: 20px;
}

.submission-area {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.t-form {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Updated to include select for consistent styling */
.t-form input[type="text"], 
.t-form textarea,
.t-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
    appearance: none; /* Remove default system styling for better control */
    background-color: white;
}

/* Updated to include select for consistent styling */
.t-form input[type="text"]:focus, 
.t-form textarea:focus,
.t-form select:focus {
    border-color: #007bff;
    outline: none;
}

.t-form textarea {
    resize: vertical;
}

#submitBtn {
    background-color: #28a745; /* Success Green */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#submitBtn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

#submitBtn:active {
    transform: translateY(0);
}

.response-message {
    margin-top: 15px;
    font-weight: 600;
    color: #dc3545;
}

.user-id-display {
    margin-top: 20px;
    font-size: 0.85em;
    color: #6c757d;
}

.user-id-display .font-mono {
    font-family: monospace;
    display: block;
    word-break: break-all;
    background: #eee;
    padding: 5px;
    border-radius: 4px;
}
