/**
 * Font Face Declarations
 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/**
Overrides
 */
:root {
    /* Override MDB variables */

    --custom-primary: #0e956f;
    --custom-secondary: #D4AF37;
    --custom-secondary-light: #FFEC9E;
    --custom-dark: #332D2D;




    --custom-body-bg: #FEFEFE;
    --custom-tertiary-bg: #F2F2E9;

    --custom-button-primary: var(--custom-primary);
    --custom-button-primary-text: var(--custom-tertiary-bg);
    --custom-button-primary-hover: #4D4D4D;
    --custom-button-primary-padding-y: .7rem;
    --custom-button-primary-padding-x: 2rem;




    --custom-button-secondary: var(--custom-secondary);
    --custom-button-secondary-text: var(--custom-primary);
    --custom-button-secondary-hover: #4D4D4D;
    --custom-button-secondary-padding-y: .5rem;
    --custom-button-secondary-padding-x: 1.5rem;

    --custom-nav-link-color: #EDE2B8;
    --custom-box-shadow-color: 0, 80, 38; /* Dark green color in RGB format */
    --custom-card-box-shadow-hover: 0px 2px 15px -3px rgba(var(--custom-box-shadow-color), 0.17), 0px 10px 20px -2px rgba(var(--custom-box-shadow-color), 0.04);
    --custom-card-box-shadow-active: 0px 2px 15px -3px rgba(var(--custom-box-shadow-color), 0.20), 0px 10px 20px -2px rgba(var(--custom-box-shadow-color), 0.06);


    --mdb-body-bg: var(--custom-body-bg) !important;
    --mdb-btn-bg: var(--custom-primary) !important;
    --mdb-primary: var(--custom-primary) !important;
    --mdb-secondary: var(--custom-secondary) !important;
    --mdb-tertiary: var(--custom-tertiary-bg) !important;

}

.bg-green {
    background-color: var(--custom-primary);
}

.bg-dark {
    background-color: var(--custom-dark) !important;
}

.bg-body-tertiary {
    background-color: var(--custom-tertiary-bg) !important;
}

body.frontend {
    min-height: calc(100vh - 100px);
}

body.frontend input.form-control, body.frontend textarea.form-control {
    background-color: white;
}
/**
Accordion Styles
 */
.accordion-button:not(.collapsed){
    color: var(--custom-primary) !important;
    background-color: var(--custom-tertiary-bg) !important;
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b010a' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.expand-fill-y {
    min-height: calc(100vh - 305px) !important;
}

/**
Course row Card Styles
 */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}
.course-card:hover {
    box-shadow: var(--custom-card-box-shadow-hover) !important;
    transform: translateY(-5px);
}

.course-card .bg-image {
    overflow: hidden;
}

.course-card .bg-image img {
    transition: transform .3s ease;
}

.course-card:hover .bg-image img {
    transform: scale(1.1);
}

.course-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0;
}

.course-card-meta span {
    font-size: .9rem;
    font-weight: bold;
    color: var(--custom-primary);
}


.bg-gold{
    background-color: var(--custom-secondary-light);
}
.bg-primary
{
    background-color: var(--custom-primary) !important;
}
.text-gold{
    color: var(--custom-secondary);
}
.text-gold-light{
    color: var(--custom-secondary-light);
}
.text-primary{
    color: var(--custom-primary) !important;
}



/**
Nav
 */

#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: var(--custom-nav-link-color);
}

#mainNav {
    max-width: 100vw !important;
}

@media (width <= 992px) {

    #mainNav .navbar-brand {
        justify-content: center;
        margin-bottom: 10px;
    }

    #mainNav .nav-link {
        text-align: center;
    }

}


.scrolling-navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease, border-bottom 0.5s ease;
}

.nonscrolling-navbar {
    padding: 20px 0;
}

.bg-glass {
    background: rgba(0, 0, 0, 0.3) !important; /* semi-transparent */
    padding: 20px 0;
    backdrop-filter: blur(10px) !important; /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px) !important; /* Safari support */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}


#mainNav .nav-link {
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7) !important;
    font-weight: bold;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 2rem;
        padding-left: 1rem;
    }
}

@media (max-width: 991px) {
    #mainNav .show img {

    }
}

body {
    overflow-x: hidden !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--custom-button-primary) !important;
}
body.frontend .btn-primary {
    background-color: var(--custom-button-primary) !important;
    color: var(--custom-button-primary-text) !important;
    font-weight: bolder;
    font-size: 1rem;
    padding: var(--custom-button-primary-padding-y) var(--custom-button-primary-padding-x) !important;
    box-shadow: 0 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
    border-radius: 10px;
    transition:
        box-shadow 0.15s,
        background-color 0.3s,
        transform 0.15s;
}

body.frontend .btn-primary:hover {
    background-color: var(--custom-button-primary-hover) !important; /* slightly lighter for hover */
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}
body.frontend .btn-primary:active {
    transform: translateY(2px);
}

.btn-outline-light{
    font-weight: bold;
    transition: box-shadow 0.15s, color .3s, background-color 0.3s, transform 0.15s;
}
.btn-outline-light:active{
    transform: translateY(2px);
}

.btn-outline-gold {
    border-color: var(--custom-secondary);
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
}

.btn-outline-gold:hover {
    background-color: var(--custom-secondary) !important;
    border-color: var(--custom-secondary) !important;
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}

.btn-outline-primary {
    border-color: var(--custom-primary);
    color: var(--custom-primary) !important;
    font-weight: bold;
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
}

.btn-outline-primary:hover {
    background-color: var(--custom-primary) !important;
    border-color: var(--custom-primary) !important;
    color: var(--custom-button-primary-text) !important;
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}


.btn-navbar-login {
    border-color: var(--custom-primary);
    background-color: var(--custom-primary) !important;
    color: var(--custom-button-primary-text) !important;
    font-weight: bold;
    font-size: .8rem;
    border-radius: 8px;
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
    transition: box-shadow 0.15s, color .3s, background-color 0.3s, transform 0.15s;
}

.btn-navbar-login:hover {
    background-color: var(--custom-button-primary-hover) !important;
    border-color: var(--custom-primary) !important;
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}

.btn-navbar-login:active {
    transform: translateY(2px);
}

.btn-outline-danger {
    border-color: var(--mdb-danger);
    color: var(--mdb-danger) !important;
    font-weight: bold;
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
}

.btn-outline-danger:hover {
    background-color: var(--mdb-danger) !important;
    border-color: var(--mdb-danger) !important;
    color: var(--custom-button-primary-text) !important;
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}


.btn-outline-light {
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
}

.btn-outline-light:hover {
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}

.btn-outline-primary:active, .btn-outline-danger:active {
    transform: translateY(2px);
}


/**
Carousel
 */

/* Slick slider custom styles to match the carousel */
.slick-slider-container {
    /*top: -86px;
    margin-bottom: -86px;*/
    position: relative;
    overflow: hidden;
}

.slick-slide {
    height: 60vh;
    min-height: 400px;
    position: relative;
}

.slick-slide img {
    height: 80vh;
    max-height: 750px;
    width: 100%;
    object-fit: cover;
}

@media (height > 700px) and (height <= 1080px) and (orientation: landscape) {
    .slick-slide img {
        height: 90vh;
        max-height: 750px;
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .slick-slide img {
        height: 100vh;
    }
}

.slick-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15%;
    text-align: left;

    max-width: 50%;
    z-index: 1;
}

.slick-caption .caption-bg {

    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px;
    margin-bottom: 10px;

}

.slick-caption h1 {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slick-caption p {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.slick-caption .btn {
    padding: .8rem 2.5rem !important;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 1px;
    box-shadow: 0px 2px 5px -1px rgba(var(--custom-box-shadow-color), 0.2), 0px 4px 6px -1px rgba(var(--custom-box-shadow-color), 0.1) !important;
    transition:
        box-shadow 0.15s,
        background-color 0.3s,
        transform 0.15s;
    position: relative;
    overflow: hidden;
}

.slick-caption .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 90%,
        transparent 100%
    );

    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    25% {
        left: 100%;
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }

}


.slick-caption .btn:hover {
    box-shadow: 0px 4px 10px -2px rgba(var(--custom-box-shadow-color), 0.25), 0px 6px 12px -2px rgba(var(--custom-box-shadow-color), 0.15) !important;
}

.slick-caption .btn:active {
    transform: translateY(2px);
}


/* Slick arrows styling */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    border: none;
    background: rgba(0, 0, 0, 0.3) !important; /* semi-transparent */
    backdrop-filter: blur(10px) !important; /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px) !important; /* Safari support */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer;
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

/* Slick dots styling */
.slick-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0;
    cursor: pointer;
    padding: 0;
}

.slick-dots li.slick-active button {
    background-color: white;
}

.slick-arrow {
    line-height: 40px !important;
}

/* Responsive styles */
@media (max-width: 992px) {
    .slick-caption {
        max-width: 70%;
    }

    .slick-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .slick-caption {
        max-width: 80%;
        padding: 1rem;
    }

    .slick-caption h1 {
        font-size: 2rem;
    }

    .slick-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .slick-slide {
        height: 50vh;
    }

    .slick-slide img {
        height: 80vh;
        min-height: 500px;
        object-position: calc(50% - 10px);
    }

    .slick-caption {
        width: 90%;
        /*left: 5%;*/
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center;

    }

    .slick-caption .caption-bg {
        text-align: center;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
    }

    .slick-caption h1 {
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        margin-bottom: 15px;
        padding: 5px;
        text-align: center;
    }

    .slick-caption p {
        padding: 5px;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 10px;
        text-align: center;
    }

    .slick-caption .btn {
        margin: 0 auto 15px auto;
        display: inline-block;
    }

}

/**
Login Page Styles
*/
.h-custom {
    height: calc(100% - 73px);
}

@media (max-width: 450px) {
    .h-custom {
        height: 100%;
    }
}

.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

body.frontend h2.section-heading {
    color: var(--custom-dark)  !important;
    font-size: 2rem;
    font-weight: bold;
    text-shadow:
        0 0 5px rgba(0, 0, 0, 0.15),
        0 0 10px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.07);
}
body.frontend h2.section-heading:before{
    content: " ";
    display: inline-block;
    width: 62px; /* adjust to PNG size */
    height: 45px;
    background-image: url('../img/ornament-green.avif');
    background-size: contain;  /* or 'cover' */
    background-repeat: no-repeat;
    margin-right: 10px;         /* space between image and text */
    vertical-align: middle;
    opacity: 0.7;
    transform: scaleX(-1);
}

body.frontend h2.section-heading:after {
    content: " ";
    display: inline-block;
    width: 62px; /* adjust to PNG size */
    height: 45px;
    background-image: url('../img/ornament-green.avif');
    background-size: contain; /* or 'cover' */
    background-repeat: no-repeat;
    margin-left: 10px; /* space between image and text */
    vertical-align: middle;
    opacity: 0.7;
}
[contenteditable="true"] {
    border: 1px dashed #888;
    outline: none;
    position: relative;
    margin:-1px;
    /* Box-sizing ensures border doesn't change size */
    box-sizing: border-box;
}

/* Pencil icon (top-left) */
[contenteditable="true"]::before {
    content: "✏️";
    position: absolute;
    top: -16px;
    left: -16px;
    background: #fff;
    font-size: 12px;
    padding: 2px;
    border-radius: 50%;
    border: 1px solid #ccc;
    line-height: 1;
    z-index: 1;
}

/* Floppy disk icon (bottom-right)*/
[contenteditable="true"]:focus::after {
    content: "💾";
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: #fff;
    font-size: 12px;
    padding: 2px;
    border-radius: 50%;
    border: 1px solid #ccc;
    line-height: 1;
    z-index: 1;
}

.link-primary {
    color: var(--custom-primary) !important;
    font-weight: bold;
}

.link-primary:hover {
    color: var(--custom-button-primary-hover) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--custom-button-primary-hover) !important;
}

.bg-body-footer {
    background-color: #e6f3e670 !important;
    /*color: #fff !important;*/
}


.bg {
    animation: slide 12s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #ffffff 50%, #e6f3e6 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 16s;
}

.bg3 {
    animation-duration: 20s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}

#admission-fee-info p {
    background-color: white;
}
