/* filename: /assets/css/style.css */
/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif; /* Poppins font for modern look */
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Softer background */
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header a {
    color: #fff;
    text-decoration: none;
}

nav a {
    margin: 0 15px;
}

main {
    padding: 20px;
    min-height: 70vh; /* ෆුටරය පහලින් තැබීමට */
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}

/* General Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Section Spacing */
.section-spacing {
    padding: 40px 0;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.section-spacing h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    color: #333;
}

/* Content Wrapper (for general pages like profile, booking, etc.) */
.content-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
    margin-right: 30px;
}

.profile-title h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
}

.profile-title .location {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.profile-body h3 {
    font-size: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.profile-body p {
    line-height: 1.8;
    color: #333;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.booking-section {
    text-align: center;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.booking-section h3 {
    margin-top: 0;
    border-bottom: none;
}

.not-found-message {
    text-align: center;
    padding: 50px;
}

/* Find Counselors Page Styles */
.search-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-container h2, .results-container h3 {
    margin-top: 0;
}

.search-container form {
    display: flex;
    gap: 15px;
}

.search-container input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.search-container button {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background-color: #007bff;
}

.counselor-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.counselor-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.counselor-card-details h4 {
    margin: 0 0 10px 0;
}

.counselor-card-details p {
    margin: 5px 0;
    color: #555;
}

/* Booking Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}
#time-slots-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.time-slot {
    background-color: #fff;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.time-slot:hover {
    background-color: #e9ecef;
}
.time-slot.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}
#submit-booking-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #333;
}

.booking-header p {
    font-size: 18px;
    color: #555;
}

.form-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.form-section legend {
    font-size: 20px;
    font-weight: bold;
    padding: 0 10px;
    margin-left: 20px;
    color: #007bff;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea,
.form-group select { /* Added select for form groups */
    width: 100%;
    font-size: 16px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    box-sizing: border-box; /* Ensures padding is inside the width */
    border-radius: 5px; /* Added for consistency */
}

#time-slots-container .placeholder-text {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
#time-slots-container .placeholder-text.loading {
    color: #007bff;
}
#time-slots-container .placeholder-text.error {
    color: #dc3545;
    background-color: #f8d7da;
}

.form-actions {
    text-align: center;
}

/* Section Colors and Legends */
.form-section {
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-top: 4px solid; /* A colored top border for the title */
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.form-section legend {
    font-size: 22px; /* A bit larger */
    font-weight: 700; /* Bolder */
    padding: 0 15px;
    margin-left: 15px; /* Matches the padding */
    color: #343a40; /* Darker text */
}

.section-step1 {
    background-color: #f8f9fa; /* A very light grey for step 1 */
    border-color: #007bff; /* Blue top border */
}

.section-step2 {
    background-color: #f1f3f5; /* A slightly different light grey for step 2 */
    border-color: #28a745; /* Green top border */
}

.section-step1 legend {
    color: #007bff; /* Blue title text */
}

.section-step2 legend {
    color: #28a745; /* Green title text */
}

/* Time Slot Styles */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.time-slot {
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}
.slot-time {
    font-size: 1.1em;
}
.slot-status {
    font-size: 0.8em;
    font-weight: 400;
    margin-top: 4px;
    text-transform: uppercase;
}

/* AVAILABLE slots (Clickable) */
.time-slot.available {
    background-color: #e7f5ff;
    border-color: #99cfff;
    color: #0056b3;
}
.time-slot.available:hover {
    background-color: #d0eaff;
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
.time-slot.available.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
}

/* PENDING slots (Not clickable) */
.time-slot.pending {
    background-color: #fff8e1;
    border-color: #ffecb3;
    color: #8d6e09;
    cursor: not-allowed;
    opacity: 0.8;
}

/* CONFIRMED slots (Booked, Not clickable) */
.time-slot.confirmed {
    background-color: #f1f3f5;
    border-color: #dee2e6;
    color: #868e96;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

/* --- NEW HOME PAGE LAYOUT STYLES --- */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- UPDATED HOME PAGE LAYOUT STYLES --- */


/* This styles the main content area in the top section */
.main-content-top {
    flex: 3;
    min-width: 0;
}

/* This new rule styles the container for the full-width sections below */
.full-width-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Fix for irregular video card height */
.video-card {
    display: flex;
    flex-direction: column;
}
.video-title {
    flex-grow: 1; /* Allows title area to expand, keeping cards the same height */
}

.main-content {
    flex: 3; /* Takes more space */
    min-width: 0; /* Allows content to shrink */
}

.sidebar {
    flex: 1; /* Takes less space */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    min-width: 250px; /* Minimum width for sidebar */
}

/* Sidebar Blocks */
.sidebar-block {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center; /* This line is added to center the content */
}
.sidebar-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-block h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.sidebar-block img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}
.btn-sidebar-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}
.btn-sidebar-link:hover {
    background-color: #218838;
}

/* Main Slider Section */
.main-slider {
    position: relative;
    width: 100%;
    height: 450px; /* Fixed height for slider */
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slider-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    filter: brightness(0.7); /* Darken image for text readability */
}
.slider-caption {
    position: absolute;
    color: #fff;
    text-align: center;
    padding: 20px;
    max-width: 80%;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
}
.slider-caption h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.slider-caption p {
    font-size: 1.2em;
    margin-bottom: 20px;
}
.btn-slider {
    background-color: #007bff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-slider:hover {
    background-color: #0056b3;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-prev:hover, .slider-next:hover { background-color: rgba(0,0,0,0.8); }


/* Counselor Search Section */
.counselor-search-section {
    padding: 40px;
    text-align: center;
}
.home-search-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}
.home-search-form input[type="text"] {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    width: 250px;
}
.home-search-form button {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
}
.counselor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}
.counselor-card {
    display: flex;
    flex-direction: column; /* Stack image and details */
    align-items: center;
    text-align: center;
    background-color: #fdfdfd;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}
.counselor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.counselor-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}
.counselor-card-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    color: #333;
}
.counselor-card-details p {
    font-size: 0.95em;
    color: #666;
    margin: 3px 0;
}
.counselor-card .btn-secondary {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9em;
}
.view-all-link {
    text-align: center;
    margin-top: 40px;
}

/* News & Articles Section */
.news-articles-section {
    padding: 40px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}
.news-card {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card-content {
    padding: 20px;
}
.news-card-content h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
    min-height: 2.4em; /* Ensure consistent height for title */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-card-content p {
    font-size: 0.9em;
    color: #666;
    min-height: 3.6em; /* Consistent height for description */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.btn-read-more {
    display: inline-block;
    margin-top: 15px;
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.btn-read-more:hover {
    background-color: #218838;
}

/* Videos Section */
.videos-section {
    padding: 40px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}
.video-card {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.video-card::after { /* Play icon overlay - FIXED CENTERING */
    content: '▶';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Vertically center within the image area */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em; /* Slightly larger icon */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(0,0,0,0.6);
    pointer-events: none; /* Allows clicks to pass through */
    transition: transform 0.3s ease;
}

.video-card:hover::after {
    transform: scale(1.1); /* Add a slight zoom effect to the icon on hover */
};
}
.video-title {
    padding: 15px;
    background-color: #f8f8f8;
    min-height: 3em; /* Consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-title h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    text-align: center;
}

/* === NEW STYLES FOR AUTOMATIC MARQUEE SCROLL === */

/* Keyframes define the animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Move left by the width of the original set of items */
}

/* The main container acts as a "window". We hide everything outside it. */
.promotional-banners-section .banners-carousel {
    overflow: hidden;
    position: relative;
    /* Adding a gradient overlay for a fading effect at the edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* The track holds all items (originals + duplicates) and moves */
.promotional-banners-section .banners-track {
    display: flex;
    width: fit-content; /* Make the track as wide as all its content */
    /* Apply the animation: name, duration, timing, and loop count */
    animation: marquee 40s linear infinite;
}

/* Pause the animation when the user hovers over it */
.promotional-banners-section .banners-carousel:hover .banners-track {
    animation-play-state: paused;
}

/* Individual banner styles (mostly unchanged) */
.promotional-banners-section .banner-item {
    flex: 0 0 auto;
    width: 300px; /* Width of a single banner */
    margin-right: 20px;
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.promotional-banners-section .banner-item:hover {
    transform: scale(1.03); /* A slight scale effect on hover */
}
.promotional-banners-section .banner-item img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* 'cover' වෙනුවට 'contain' ලෙස වෙනස් කරන්න */
    background-color: #f0f0f0; /* හිස්තැන් සඳහා ලා අළු පැහැති පසුබිමක් එක් කරයි */
}
.promotional-banners-section .banner-item .banner-title {
    padding: 15px;
    text-align: center;
    background-color: #f8f8f8;
}
.promotional-banners-section .banner-item .banner-title h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}


/* Testimonials Section */
.testimonials-section {
    padding: 40px;
    background-color: #eaf3f8; /* Light blue background for emphasis */
}
.testimonials-section h2 {
    color: #0056b3; /* Darker blue heading */
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure consistent card height */
}
.testimonial-card .quote {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}
.testimonial-card .author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Pushes author info to bottom */
}
.testimonial-card .author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #007bff;
}
.testimonial-card .author-details {
    text-align: left;
}
.testimonial-card .author-name {
    display: block;
    font-weight: 600;
    color: #333;
}
.testimonial-card .author-title {
    display: block;
    font-size: 0.9em;
    color: #777;
}

/* Suggestions Form Section */
.suggestions-form-section {
    padding: 40px;
}
.suggestion-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.suggestion-form .form-group {
    margin-bottom: 20px;
}
.suggestion-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}
.suggestion-form input[type="text"],
.suggestion-form input[type="email"],
.suggestion-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
.suggestion-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
}

/* Modals (Popups for Videos and Banners) */
/* --- FIXED MODAL STYLES --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    
    /* Control visibility using opacity for smooth transitions */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* This class will be added by JavaScript to show the modal */
.modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: #1c1c1c; /* A dark background for a cinematic feel */
    color: #fff; /* White text for contrast */
    padding: 15px;
    border-radius: 10px;
    width: 100%; /* Take full width of its container */
    max-width: 1100px; /* Limit max width on very large screens */
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    /* Remove the margin, as flexbox is handling centering */
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
#youtube-player {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain a 16:9 widescreen aspect ratio */
    border: none; /* Remove default iframe border */
    border-radius: 5px; /* Slightly rounded corners for the video */
    display: block; /* Ensure no extra space below the iframe */
}
#bannerModalImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 5px;
}
#bannerModalTitle {
    text-align: center;
    color: #007bff;
    margin-top: 0;
}
#bannerModalDescription {
    text-align: center;
    margin-bottom: 20px;
}
#bannerModalLink {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* --- UPDATED HOME PAGE LAYOUT STYLES --- */

/* This styles the new top wrapper for the two-column section (for desktop) */
.home-layout-top-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    gap: 30px;
    padding: 0 20px;
    align-items: stretch; /* 'flex-start' වෙනුවට 'stretch' ලෙස වෙනස් කරන්න */
}

/* This styles the main content area in the top section (for desktop) */
.main-content-top {
    flex: 3;
    min-width: 0;
}

/* This rule styles the container for the full-width sections below (for desktop) */
.full-width-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

    .sidebar {
        margin-top: 0px;
    }
    .main-slider {
        height: 460px; /* Adjust slider height for tablets */
    }
    .slider-caption h3 {
        font-size: 2em;
    }
    .slider-caption p {
        font-size: 1em;
    }
    .home-search-form {
        flex-direction: column;
        align-items: center;
    }
    .home-search-form input[type="text"],
    .home-search-form button {
        width: 80%; /* Adjust width for stacked elements */
        max-width: 350px;
    }
    .counselor-grid, .news-grid, .video-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 10px;
    }
    .banners-carousel {
        padding: 0 10px 20px;
    }
    .banner-item {
        width: 250px;
    }
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    #youtube-player {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-slider {
        height: 250px; /* Adjust slider height for mobile */
    }
    .slider-caption h3 {
        font-size: 1.5em;
    }
    .slider-caption p {
        font-size: 0.9em;
    }
    .slider-prev, .slider-next {
        padding: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    .counselor-grid, .news-grid, .video-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        padding: 0;
    }
    .counselor-card, .news-card, .video-card, .testimonial-card, .banner-item {
        margin-left: auto;
        margin-right: auto;
        max-width: 350px; /* Max width for single column cards */
    }
    .home-search-form input[type="text"],
    .home-search-form button {
        width: 90%;
    }
    .suggestion-form {
        padding: 20px;
    }
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    #youtube-player {
        height: 200px;
    }
}
    /* Add to the end of assets/css/style.css */

    /* Full Page News Grid */
    .news-grid-full-page {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Slightly larger cards for full page */
        gap: 30px;
        padding: 20px; /* Padding inside the content-wrapper */
    }

    .news-grid-full-page .news-card {
        /* Inherit basic news-card styles from index.php */
        background-color: #fdfdfd;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #eee;
        display: flex; /* Use flex to push read more button to bottom */
        flex-direction: column;
    }

    .news-grid-full-page .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .news-grid-full-page .news-card img {
        width: 100%;
        height: 200px; /* Slightly taller image */
        object-fit: cover;
    }

    .news-grid-full-page .news-card-content {
        padding: 20px;
        flex-grow: 1; /* Allows content to take available space */
        display: flex;
        flex-direction: column;
    }

    .news-grid-full-page .news-card-content h4 {
        margin-top: 0;
        font-size: 1.3em;
        color: #333;
        min-height: 2.6em; /* Adjust for 2 lines of text */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .news-grid-full-page .news-card-content .published-date {
        font-size: 0.85em;
        color: #888;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .news-grid-full-page .news-card-content p {
        font-size: 0.95em;
        color: #666;
        min-height: 4.5em; /* Adjust for 3 lines of text */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin-bottom: 15px; /* Space before button */
    }

    .news-grid-full-page .btn-read-more {
        display: inline-block;
        margin-top: auto; /* Pushes button to the bottom */
        background-color: #007bff; /* Primary button color */
        color: #fff;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 0.9em;
        transition: background-color 0.3s;
        align-self: flex-start; /* Align button to start of its line */
    }
    .news-grid-full-page .btn-read-more:hover {
        background-color: #0056b3;
    }

    /* Pagination Styles */
    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        padding: 20px 0;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        gap: 10px;
    }

    .pagination-btn {
        display: inline-block;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        text-decoration: none;
        color: #007bff;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .pagination-btn:hover {
        background-color: #e9ecef;
        border-color: #007bff;
    }

    .pagination-btn.active {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
        cursor: default;
    }

    .pagination-btn.active:hover {
        background-color: #007bff;
        color: #fff;
    }

    /* Responsive adjustments for news grid */
    @media (max-width: 768px) {
        .news-grid-full-page {
            grid-template-columns: 1fr; /* Single column on smaller screens */
            padding: 0 15px;
        }
        .news-grid-full-page .news-card {
            max-width: 400px; /* Max width for individual cards */
            margin: 0 auto; /* Center single column cards */
        }
    }
    
	    /* Add to the end of assets/css/style.css */

    /* Article Detail Page Styles */
    .article-detail {
        padding: 20px;
    }

    .article-detail h1 {
        font-size: 2.5em;
        color: #333;
        margin-bottom: 10px;
        text-align: center;
    }

    .article-detail .article-meta {
        text-align: center;
        font-size: 0.9em;
        color: #777;
        margin-bottom: 25px;
        border-bottom: 1px dashed #eee;
        padding-bottom: 15px;
    }

    .article-thumbnail-large {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 30px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .article-content {
        font-size: 1.1em;
        line-height: 1.8;
        color: #444;
        margin-bottom: 40px;
    }
    .article-content p {
        margin-bottom: 1em;
        text-align: justify;
    }

    .article-actions {
        text-align: center;
        margin-top: 30px;
    }

    /* Responsive adjustments for article detail */
    @media (max-width: 768px) {
        .article-detail h1 {
            font-size: 1.8em;
        }
        .article-content {
            font-size: 1em;
            padding: 0 10px; /* Add some padding on small screens */
        }
    }
    
	/* Add to the end of assets/css/style.css */

/* Full Page Video Grid */
.video-grid-full-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Larger cards for full page */
    gap: 30px;
    padding: 20px; /* Padding inside the content-wrapper */
}

.video-card-full-page {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    display: flex; /* Use flex to structure content */
    flex-direction: column;
}
.video-card-full-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.video-card-full-page img {
    width: 100%;
    height: 200px; /* Taller image */
    object-fit: cover;
}
.video-card-full-page::after { /* Play icon overlay */
    content: '▶';
    position: absolute;
    top: 100px; /* Adjust based on image height */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5em; /* Larger play icon */
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 15px rgba(0,0,0,0.6);
    pointer-events: none; /* Allow clicks to pass through to the card */
}
.video-content-full-page {
    padding: 15px;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
}
.video-content-full-page h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    min-height: 2.4em; /* Consistent height for title */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-content-full-page p {
    font-size: 0.9em;
    color: #666;
    min-height: 4.5em; /* Consistent height for description (approx 3 lines) */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 0; /* No bottom margin if it's the last element */
}

/* Responsive adjustments for video grid */
@media (max-width: 768px) {
    .video-grid-full-page {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        padding: 0 15px;
    }
    .video-card-full-page {
        max-width: 400px; /* Max width for individual cards */
        margin: 0 auto; /* Center single column cards */
    }
    .video-card-full-page::after {
        top: 80px; /* Adjust play icon position for smaller images */
        font-size: 3em;
    }
}

/* Add to the end of assets/css/style.css */

/* Alert Messages (for form submissions) */
.alert-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.alert-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Suggestions Form Section (Full Page) */
.suggestions-form-section.section-spacing {
    max-width: 700px; /* Limit width for better readability */
    margin: 30px auto; /* Center the section */
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.suggestions-form-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.suggestions-form-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.suggestion-form .form-group {
    margin-bottom: 20px;
}

.suggestion-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.suggestion-form input[type="text"],
.suggestion-form input[type="email"],
.suggestion-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

.suggestion-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.suggestion-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Add this CSS to your main stylesheet */
.home-search-form {
    display: flex;
    gap: 15px; /* Adds space between form elements */
    align-items: center;
}

.home-search-form select,
.home-search-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    flex: 1; /* Allows form elements to grow and fill space */
}

.home-search-form button {
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.2s;
}

.home-search-form button:hover {
    background-color: #0056b3;
}
/* ADD THIS TO THE END OF assets/css/style.css */

/* Custom Dropdown Styling for Search Forms */
.select-wrapper {
    position: relative;
    flex: 1; /* Each dropdown takes equal space */
    min-width: 220px; /* Prevents them from becoming too small */
}

.select-wrapper::after {
    content: '▼';
    font-size: 1rem;
    color: #555;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-container select {
    appearance: none; /* Remove default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 20px; /* Make space for custom arrow */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container select:hover {
    border-color: #0d6efd;
}

.search-container select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Multi-column Grid Layout for Counselor Results */
.counselor-grid-container {
    display: grid;
    /* Default to 3 columns. Change to repeat(2, 1fr) for 2 columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Space between counselor cards */
}

@media (max-width: 768px) {
    .counselor-grid-container {
        /* 1 column on mobile phones */
        grid-template-columns: 1fr;
    }
}
/* Styling for clickable promotional banners */

/* This targets BOTH the link (<a>) and the non-link (<div>) items in the marquee track */
.banners-track > .banner-link,
.banners-track > .banner-item {
    flex: 0 0 300px; /* Set a fixed width for items in the track */
    margin-right: 20px; /* Space between items */
    display: block; /* Ensures the anchor tag behaves like a block */
}

/* This removes the default blue color and underline from the link */
a.banner-link, a.banner-link:hover {
    text-decoration: none;
    color: inherit;
}

/* === NEW HEADER STYLES (DARK THEME) === */
.site-header {
    background-color: #343a40; /* Dark Charcoal background */
    padding: 10px 0;
    border-bottom: 1px solid #495057;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Consolidated Logo Image Styling */
.logo-left img, .logo-right img {
    height: 50px;           /* Fixed height for circular shape */
    width: 50px;            /* Fixed width for circular shape */
    border-radius: 50%;     /* Makes the element circular */
    object-fit: cover;      /* Ensures the image fills the circle without distortion */
    /* max-height: 50px; - මෙය අවශ්‍ය නැත, height: 50px ඇති නිසා */
    /* width: auto; - මෙය අවශ්‍ය නැත, width: 50px ඇති නිසා */
}

/* Logo Container Styling */
.logo-left, .logo-right {
    flex-shrink: 0; /* Prevent logos from shrinking */
    /* .logo-right සඳහා margin-left: auto; කලින් එකතු කර තිබුනා නම්, එය මෙතනට එකතු කරන්න */
}


/* Consolidated Navigation List Styling */
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px; /* Reduced gap from 15px to 10px - keep the last defined value */
}

/* Consolidated Navigation Link Styling */
.main-nav a {
    text-decoration: none;
    color: #f8f9fa; /* Light text color */
    font-weight: 600;
    padding: 10px 12px; /* Reduced padding from 15px to 12px - keep the last defined value */
    border-radius: 5px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Poppins', sans-serif; /* Added from second rule */
    letter-spacing: 0.5px; /* Added from second rule */
}
Toggle navigation
/* Hover effect for navigation links */
.main-nav a:hover {
    color: #007bff; /* Blue color on hover */
    background-color: #f8f9fa; /* Light background on hover */
}

/* Style for the currently active page link */
.main-nav a.active {
    color: #007bff;
    font-weight: 700;
}

/* Underline effect for the active link */
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #007bff;
}

.header-actions {
    flex-shrink: 0; /* Register/Login බොත්තම් හැකිලීම වළක්වයි */
}

/* === ABOUT US PAGE STYLES === */

.about-us-page-content {
    max-width: 800px; /* Limit width for better readability */
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.about-us-page-content h1 {
    text-align: center;
    font-size: 2.8em;
    color: #007bff;
    margin-bottom: 5px;
}

.about-us-page-content .subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 30px;
}

.about-us-page-content h2 {
    font-size: 1.8em;
    color: #343a40;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.about-us-page-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
	text-align: justify;
}

.about-us-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.features-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1em;
}

.features-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

/* Custom checkmark icon for the list */
.features-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745; /* Green color for checkmark */
    font-size: 1.4em;
    line-height: 1;
}

.section-divider {
    border-top: 1px solid #eee;
    margin: 40px 0;
}
/* === HOMEPAGE TAGLINE STYLES === */

.site-tagline {
    text-align: center;
    font-size: 1.4em; /* Adjust size as needed */
    color: #5a6268; /* A professional, soft dark color */
    margin-top: 0;
    margin-bottom: 15px; /* Space between tagline and the next heading */
    font-weight: 600;
}

.site-tagline .highlight-text {
    font-size: 1.2em; /* Makes the letter 20% bigger than the surrounding text */
    color: #007bff; /* The primary blue color of your site */
    font-weight: 700; /* Bolder */
}

/* === UPDATED COUNSELOR PROFILE PAGE STYLES === */

.profile-page-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --- Profile Header (New Teal/Green Gradient) --- */
.profile-main-header {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%); /* New Color */
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(23, 162, 184, 0.3);
    margin-bottom: 40px;
}
.profile-image-wrapper {
    flex-shrink: 0;
    margin-right: 30px;
}
.profile-image-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.8);
}
.profile-header-content h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}
.profile-header-content .profile-location,
.profile-header-content .profile-phone { /* Added phone styles */
    font-size: 1.1em;
    margin: 5px 0 15px 0;
    opacity: 0.9;
}
.profile-header-content .profile-location i,
.profile-header-content .profile-phone i {
    margin-right: 10px;
}
.profile-fees { /* New style for fee text */
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
}

/* --- Profile Sections (Cards) --- */
.profile-section.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.profile-section h2 {
    font-size: 1.8em;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}
.profile-section h2 i {
    color: #17a2b8; /* Changed accent color to match header */
    margin-right: 15px;
    font-size: 1.2em;
}
.content-body {
    font-size: 1.1em;
    line-height: 1.8;
}
.justified-text {
    text-align: justify;
}
.specializations-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 30px;
}
.specializations-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}
.specializations-list li i {
    color: #28a745; /* Green checkmark */
    margin-right: 12px;
    margin-top: 5px;
}
.schedule-list {
    list-style: none;
    padding: 0;
}
.schedule-list li {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 3px solid #17a2b8; /* Changed accent color */
}

/* --- Booking Call-to-Action --- */
.booking-cta {
    text-align: center;
    background-color: #f8f9fa;
    border-top: 3px solid #17a2b8; /* Changed accent color */
}
.booking-cta p {
    margin-bottom: 25px;
}
.btn-book-now {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .profile-main-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-image-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .profile-header-content h1 {
        font-size: 2em;
    }
    .specializations-list {
        column-count: 1;
    }
}

/* --- Booking Call-to-Action --- */
.booking-cta {
    text-align: center;
    background-color: #f8f9fa;
    border-top: 3px solid #007bff;
}
.booking-cta p {
    margin-bottom: 25px;
}
.btn-book-now {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .profile-main-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-image-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .profile-header-content h1 {
        font-size: 2em;
    }
    .specializations-list {
        column-count: 1; /* Single column on small screens */
    }
}

/* === INTEGRATED BOOKING FORM STYLES ON PROFILE PAGE === */

.booking-section-integrated {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.booking-section-integrated h2 {
    text-align: center;
    margin-top: 0;
    color: #343a40;
}
.booking-step {
    margin-bottom: 25px;
}
.booking-step > label { /* Direct child label for step titles */
    font-weight: 600;
    font-size: 1.2em;
    display: block;
    margin-bottom: 15px;
    color: #007bff;
}
.booking-step input[type="date"],
.booking-step input[type="text"],
.booking-step input[type="email"],
.booking-step input[type="tel"],
.booking-step textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
#time-slots-container {
    min-height: 50px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}
.time-slot-btn {
    padding: 12px;
    border: 2px solid;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}
/* AVAILABLE slots */
.time-slot-btn.available {
    border-color: #28a745;
    color: #28a745;
}
.time-slot-btn.available:hover {
    background-color: #28a745;
    color: #fff;
}
.time-slot-btn.available.selected {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}
/* PENDING slots */
.time-slot-btn.pending {
    border-color: #ffc107;
    color: #9e7900;
    background-color: #fff9e6;
    cursor: not-allowed;
}
/* CONFIRMED slots */
.time-slot-btn.confirmed {
    border-color: #dc3545;
    color: #dc3545;
    background-color: #ffe8e8;
    cursor: not-allowed;
    text-decoration: line-through;
}
#client-details-form {
    border-top: 1px dashed #ced4da;
    margin-top: 25px;
    padding-top: 25px;
}
.booking-confirmation-message {
    text-align: center;
    padding: 30px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}
.booking-confirmation-message h4 {
    margin-top: 0;
    font-size: 1.5em;
}

/* Style for truncated qualifications on counselor card */
.counselor-card-details p.counselor-qualifications {
    font-size: 0.9em;
    color: #6c757d;
    height: 4.5em; /* Reserves space for approximately 3 lines of text */
    line-height: 1.5em; /* Sets line height */
    overflow: hidden; /* Hides any text that overflows the reserved height */
    margin: 10px 0;
}
/* Styles for New Search Section Header */
.counselor-search-section {
    padding: 0; /* Remove padding from the parent card */
    overflow: hidden; /* Ensure child border-radius works */
}
.search-section-header {
    background-color: #f8f9fa; /* A very light, professional grey */
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}
.search-section-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    color: #343a40;
    font-weight: 700;
}
.search-section-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1em;
}
/* Add padding back to the form and grid containers inside the section */
.home-search-form {
    padding: 30px 40px 0;
}
.counselor-grid {
    padding: 30px 40px;
}
.view-all-link {
    padding-bottom: 30px;
}
/* Style for the highlighted letters in the search section sub-headline */
.search-section-header p .highlight-letter {
    font-size: 1.2em; /* අකුර මදක් විශාල කරයි */
    color: #0d6efd;   /* දීප්තිමත් නිල් පැහැයක් ලබා දෙයි */
    font-weight: 700;  /* අකුර තද කරයි (Bold) */
}

/* === COUNSELOR REGISTRATION FORM STYLES === */
.registration-form-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.registration-form fieldset {
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}
.registration-form legend {
    font-size: 1.5em;
    font-weight: 600;
    color: #007bff;
    padding: 0 10px;
}
.registration-form .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.registration-form .checkbox-group label, .registration-form .radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agreement-group {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 15px;
}
#fee-display {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f5ff;
    border: 1px solid #b3e0ff;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #0056b3;
}
/* Styles for Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between the two buttons */
}

.header-actions {
    flex-shrink: 0; /* Register/Login බොත්තම් හැකිලීම වළක්වයි */
}

/* This is the rule to hide the hamburger menu on desktop screens */
.mobile-nav-toggle {
    display: none;
}
/* === SUCCESS PAGE STYLES === */
.success-page-container {
    text-align: center;
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.success-icon {
    font-size: 4em;
    color: #28a745; /* Green color */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #eafaf1;
    margin: 0 auto 20px auto;
}

.success-page-container h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.success-page-container p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ============================================== */
/* === Consolidated Mobile & Tablet Styles (max-width: 992px) === */
/* ============================================== */
@media (max-width: 992px) {
    /* HEADER: Hide unnecessary elements on mobile */
    /* .main-nav සැඟවීම වෙනුවට පෙන්වීමට වෙනස් කරන්න */
    /* .header-actions, .logo-right තවමත් සැඟවිය හැක */
    .header-actions,
    .logo-right {
        display: none;
    }
      .home-layout-top-wrapper {
        flex-direction: column; /* කුඩා තිර වලදී අන්තර්ගතය තීරුවකට පෙළගස්වීමට */
    }
    
    .mobile-nav-toggle {
        display: block; /* හැම්බර්ගර් බොත්තම පෙන්වීමට */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 1px solid #f8f9fa;
        color: #f8f9fa;
        padding: 0.5rem 0.8rem;
        border-radius: 5px;
        cursor: pointer;
        z-index: 9999;
    }
    
    .mobile-nav-toggle .fa-bars,
    .mobile-nav-toggle .fa-times {
        font-size: 1.5rem;
    }
    
    /* ජංගම දුරකථන මෙනුව පෙන්වීම/සැඟවීම සඳහා */
    .main-nav {
        /* .main-nav element එක සැමවිටම දර්ශනය විය යුතුය */
        display: block;
    }
    
    .main-nav .nav-list {
        /* මූලික වශයෙන් මෙනු අයිතම සැඟවීමට */
        display: none;
        /* opacity සහ visibility යොදා ඇත්නම්, transition එකක් සඳහා display: flex; ලෙස වෙනස් කරන්න.
        නමුත් සරල ක්‍රමයට display: none භාවිතා කිරීම ප්‍රමාණවත් වේ. */
    }
    
    .main-nav .nav-list {
        display: none; /* මූලික වශයෙන් සැඟවීමට */
    }
    .main-nav .nav-list.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute; /* header එකට සාපේක්ෂව පිහිටීම සකස් කිරීමට */
        top: 70px; /* header එකේ උස අනුව මෙය වෙනස් කළ හැක */
        left: 0;
        width: 100%; /* මෙනුව සම්පූර්ණ පළලින් පෙන්වීමට */
        background-color: #343a40;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    
    .main-nav .nav-list.nav-open li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav .nav-list.nav-open a {
        padding: 1rem;
        display: block;
        width: 100%;
        color: #f8f9fa;
    }
}
    /* HOMEPAGE: Stack the main content and sidebar */
    .home-layout-top-wrapper {
    }

    /* FIND COUNSELORS: Switch to 2 columns */
    .counselor-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sidebar margin */
    .sidebar {
        margin-top: 0px;
    }
}

/* --- Keep the Contact Page Image Frame styles as they are below the consolidated media query --- */

/* Remove ALL previous CSS related to .page-header-banner and its children. */
/* Replace with these new styles for the image frame */

/* Styles for the Contact Page Image Frame */
.contact-image-frame {
    max-width: 900px; /* රූප රාමුවේ උපරිම පළල - ඔබට අවශ්‍ය පරිදි සකසන්න */
    margin: 30px auto 40px auto; /* පිටුව මැදට ගෙන ඒමට සහ පහලට ඉඩක් තැබීමට */
    padding: 15px; /* රාමුව වටා padding එකක් */
    background-color: #fff; /* රාමුවේ පසුබිම් වර්ණය */
    border-radius: 12px; /* වටකුරු දාර */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* රාමුවට සෙවනැල්ලක් */
    overflow: hidden; /* රූපය රාමුවෙන් පිටතට නොයෑමට */
    border: 1px solid #e0e0e0; /* සියුම් දාරයක් */
}

.contact-image-frame img {
    width: 100%; /* රූපය රාමුව තුළ සම්පූර්ණ පළල ගැනීමට */
    height: auto; /* අනුපාතය පවත්වා ගැනීමට */
    display: block; /* රූපය block element එකක් ලෙස සලකයි */
    border-radius: 8px; /* රූපයට වටකුරු දාර */
    object-fit: cover; /* රූපය රාමුවට ගැලපෙන පරිදි ප්‍රමාණය වෙනස් කිරීමට */
}

/* Responsive adjustments for the image frame */
@media (max-width: 992px) {
    .contact-image-frame {
        margin: 20px auto 30px auto;
        padding: 10px;
        max-width: 90%; /* ජංගම දුරකථන වලදී රාමුවේ පළල අඩු කරන්න */
    }
}

@media (max-width: 768px) {
    .contact-image-frame {
        margin: 15px auto 25px auto;
        padding: 8px;
        border-radius: 8px;
    }
}

/* Add/Adjust these styles in your style.css file */

/* Contact Page Container adjustments for overall left margin */
.contact-page-container {
    max-width: 1000px; /* උපරිම පළල වැඩි කරන්න */
    margin: 30px auto; /* මැදට ගෙන ඒමට */
    padding: 0 40px; /* වම් සහ දකුණු margin වැඩි කිරීමට - 40px යනු උදාහරණයකි, ඔබට අවශ්‍ය පරිදි සකසන්න */
    box-sizing: border-box; /* padding එක width එකට ඇතුලත් කිරීමට */
}

/* General Page Headers (Get in Touch, Contact Information, Send Us a Message, Our Location) */
.contact-page-container h1 {
    font-size: 3em; /* ප්‍රධාන ශීර්ෂයේ font size වැඩි කරන්න */
    color: #007bff; /* ප්‍රධාන blue වර්ණය */
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-page-container .subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; /* පහළ margin වැඩි කරන්න */
    line-height: 1.6;
}

/* Contact Grid Layout */
.contact-grid {
    display: flex;
    flex-wrap: wrap; /* කුඩා තිර වලදී අයිතම පහළට ගෙන ඒමට */
    gap: 40px; /* Contact Information සහ Form අතර පරතරය වැඩි කරන්න */
    margin-bottom: 50px; /* grid එකට පහලින් ඇති margin එක වැඩි කරන්න */
    align-items: flex-start; /* items ඉහලින් පටන් ගැනීමට */
}

.contact-details,
.contact-form-container {
    flex: 1; /* සමාන පළලක් ගැනීමට */
    min-width: 300px; /* අවම පළල */
    background-color: #fcfcfc; /* සුදු පැහැයට කිට්ටු පසුබිම් වර්ණයක් */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* කැපී පෙනෙන සෙවනැල්ලක් */
    border: 1px solid #eee; /* සියුම් දාරයක් */
}

.contact-details h2,
.contact-form-container h2,
.map-section h2 {
    font-size: 1.8em; /* උප ශීර්ෂවල font size වැඩි කරන්න */
    color: #343a40;
    margin-top: 0;
    margin-bottom: 25px; /* පහළ margin වැඩි කරන්න */
    border-bottom: 2px solid #007bff; /* යටින් නිල් ඉරක් */
    padding-bottom: 10px;
}

/* Contact List (Contact Information Section) */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex; /* අයිකනය සහ පෙළ එක පෙළට තැබීමට */
    align-items: flex-start; /* අයිකනය සහ පෙළ ඉහලින් පෙළගැස්වීමට */
    margin-bottom: 20px; /* එක් එක් අයිතමය අතර පරතරය වැඩි කරන්න */
    font-size: 1.1em; /* අකුරු ප්‍රමාණය වැඩි කරන්න */
    color: #444;
}

.contact-list li i {
    font-size: 1.5em; /* අයිකන ප්‍රමාණය වැඩි කරන්න */
    color: #007bff; /* නිල් වර්ණය */
    margin-right: 15px; /* අයිකනයට දකුණු පසින් ඉඩක් */
    flex-shrink: 0; /* අයිකනය හැකිලීම වැළැක්වීමට */
    margin-top: 3px; /* අයිකනය පෙළට ගැලපීමට */
}

/* "The Secure Service of Certified Counselors" text style */
.contact-list li strong {
    font-size: 1.2em; /* අකුරු ප්‍රමාණය තවත් වැඩි කරන්න */
    color: #0056b3; /* තද නිල් වර්ණය */
    display: block; /* මෙය වෙනම පේලියක තැබීමට */
    margin-bottom: 5px;
}

.contact-list li a {
    color: #007bff; /* සබැඳි වල වර්ණය නිල් කරන්න */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: #0056b3; /* hover කරන විට තද නිල් වර්ණය */
    text-decoration: underline;
}

/* Contact Form Styles (Already present, but review for consistency) */
.contact-form-container .form-group {
    margin-bottom: 20px;
}

.contact-form-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px; /* label එකට පහලින් ඉඩ වැඩි කරන්න */
    color: #333;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1.1em; /* input fields වල font size වැඩි කරන්න */
    box-sizing: border-box;
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 120px; /* textarea හි අවම උස වැඩි කරන්න */
}

.contact-form-container .btn-primary {
    width: 100%; /* බොත්තම සම්පූර්ණ පළල ගැනීමට */
    padding: 15px;
    font-size: 1.2em; /* බොත්තමේ font size වැඩි කරන්න */
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-container .btn-primary:hover {
    background-color: #0056b3;
}

/* Map Section */
.map-section {
    background-color: #fcfcfc;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    border-radius: 8px; /* Map එකට වටකුරු දාර */
    margin-top: 20px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-page-container {
        padding: 0 15px; /* කුඩා තිර වලදී padding අඩු කරන්න */
    }
    .contact-page-container h1 {
        font-size: 2.2em;
    }
    .contact-page-container .subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .contact-grid {
        flex-direction: column; /* තීරු සිරස් අතට පෙළගස්වන්න */
        gap: 30px;
    }
    .contact-details,
    .contact-form-container {
        min-width: unset; /* අවම පළල ඉවත් කරන්න */
        padding: 20px;
    }
    .contact-details h2,
    .contact-form-container h2,
    .map-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .contact-list li {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .contact-list li i {
        font-size: 1.3em;
        margin-right: 10px;
    }
    .contact-list li strong {
        font-size: 1.1em;
    }
    .contact-form-container input,
    .contact-form-container textarea,
    .contact-form-container .btn-primary {
        font-size: 1em;
        padding: 10px;
    }
    .contact-form-container .btn-primary {
        padding: 12px;
    }
    .map-section {
        padding: 20px;
    }
}
/* desktop තිරයේදී බොත්තම් සැඟවීමට */
@media (min-width: 993px) {
    .mobile-only-buttons {
        display: none;
    }
}

/* mobile තිරයේදී බොත්තම් පෙන්වීමට */
@media (max-width: 992px) {
    .mobile-only-buttons {
        display: block; /* බොත්තම් දර්ශනය කිරීමට */
        margin-top: 15px; /* මෙනු අයිතම වලින් පරතරයක් තැබීමට */
    }
}