/* carousel hero css start */
/* 1. Style the category button */
.hero-slider {
    overflow: hidden; /* This is the key: it clips/hides the adjacent slides */
    border-radius: 20px; /* Apply radius here for a clean clipped edge */
}

.hero-category {
    background-color: #5d3bff;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 25px;
    text-align: center;
}

/* 2. Set a fixed height for the entire text content area */
.hero1 .main-heading1 {
    height: 400px; /* This is the key: defines the total space for text */
    display: flex;
    flex-direction: column; /* Stacks text vertically */
}

/* 3. Style and truncate the title to a maximum of 2 lines */
.hero1 .main-heading1 h1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Max 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 100px; /* Reserve space for 2 lines to prevent layout shifts */
}

/* 4. Style and truncate the excerpt to a maximum of 3 lines */
.hero1 .main-heading1 p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Max 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Allows it to take up available space, pushing the button down */
}

/* 5. Force the button to the bottom of the 400px container */
.hero1 .main-heading1 .button {
    margin-top: auto; /* This is the magic that pushes it to the bottom */
}

/* 6. Set the height and style for the image container */
.hero1 .main-image {
    height: 400px;
    padding: 5px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
}

/* 7. Make the image fill the container beautifully */
.hero1 .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 8. Style the navigation arrows */
.hero-slider .hero-slider-nav {
    color: #333;
    background-color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.hero-slider .hero-slider-nav:hover {
    background-color: var(--vtc-bg-main1);
    color: #fff;
    transform: scale(1.1);
}
.hero-slider .hero-slider-nav::after {
    font-size: 18px;
    font-weight: 900;
}
.swiper-button-prev {
    left: 0;
}
.swiper-button-next {
    right: 0;
}

/* 9. Initial state for the GSAP animations */
.animate-this {
    opacity: 0;
}
/* carousel hero css end */

.login-form .single-input {
    /* This is the KEY FIX. It forces each field group onto its own line. */
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 25px;
    /* Adds nice spacing between rows */
}

.login-form .single-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
    font-size: 18px;
}

/* This rule ensures the actual input elements fill their containers */
.login-form .single-input input,
.login-form .single-input select,
.login-form .single-input textarea {
    width: 100%;
}

.login-form .single-input textarea {
    padding: 5px;
}

/* --- Admin Form Styling --- */
.login-form .single-input {
    margin-bottom: 25px;
}

.login-form .single-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

/* Universal styles for consistent form fields */
.login-form .single-input input[type="text"],
.login-form .single-input select,
.login-form .single-input textarea {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 25px;
    border: 1px solid #e9e9e9;
    border-radius: 30px;
    background-color: #f7f8fa;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
}

.login-form .single-input textarea {
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
}

.login-form .single-input input[type="file"] {
    padding-top: 16px;
}

.login-form .single-input input:focus,
.login-form .single-input select:focus,
.login-form .single-input textarea:focus {
    border-color: var(--vtc-bg-main1);
    box-shadow: 0 0 0 3px rgba(255, 102, 51, 0.15);
    outline: none;
}

/* Custom styles for the select dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-select-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    transition: color 0.3s ease;
}

.custom-select-wrapper:focus-within::after {
    color: var(--vtc-bg-main1);
}

/* For setting edit page. */
/* .login-form {
            height: auto !important;
        } */

/* ============================================= */
/* == Custom Branded Checkbox Styles == */
/* ============================================= */

/* 1. Target the checkbox input itself */
.custom-branded-checkbox .form-check-input {
    border-radius: 4px;
    border: 2px solid #333; /* <-- Set the border color to black */
    width: 1.2em; /* Slightly larger for better visibility */
    height: 1.2em;
    transition: all 0.2s ease-in-out;
}

/* 2. Style the checkbox when it is FOCUSED (clicked or tabbed to) */
.custom-branded-checkbox .form-check-input:focus {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15); /* A subtle black shadow */
}

/* 3. This is the key: Style the checkbox when it is CHECKED */
.custom-branded-checkbox .form-check-input:checked {
    background-color: var(
        --vtc-bg-main1
    ); /* <-- Set the background to your primary color */
    border-color: var(
        --vtc-bg-main1
    ); /* <-- Set the border to your primary color */
}

/* 4. Style the checkmark icon itself */
/* Bootstrap uses an SVG background-image for the checkmark. We are overriding its color. */
.custom-branded-checkbox .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* 5. Style the label for better alignment */
.custom-branded-checkbox .form-check-label {
    font-weight: 600;
    font-size: 18px;
    padding-left: 0.5em; /* Add a little space between the box and the text */
}
