.unicode {
    font-family: 'Noto Serif Sinhala', serif;
 }

 @media (max-width: 576px) {
    .navbar-brand {
       margin: 5px 0 !important;
    }

    .navbar-brand img {
       width: 150% !important;
    }
 }

 .best-web {
    position: fixed;
    bottom: 15px;
    left: 10px;
    height: 200px;
    width: 180px;
    z-index: 999;
    transition: all 0.3s ease-in-out;
 }

 .best-web img {
    height: 100%;
    width: auto;
    transition: all 0.3s ease-in-out;
 }

 .best-web:hover {
    transform: scale(1.1);
 }

 @media (max-width: 1500px) {
    .best-web {
       height: 190px;
       width: 175px;
       left: 2px;
    }
 }

 @media (max-width: 700px) {
    .best-web {
       height: 150px;
       width: 140px;
       left: 0;
    }
 }

 /* -------------- */
 .main-slide-text {
    z-index: 1;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
 }

 .main-slide-text img {
    max-width: 100%;
    height: auto;
    width: 40rem;
 }

 @media (max-width: 1000px) {
    .banner-overlay .main-slide-text img {
       margin-top: 2rem;
       width: 35rem;
    }
 }

 @media (max-width: 700px) {
    .banner-overlay .main-slide-text img {
       width: 30rem;
    }
 }

 @media (max-width: 450px) {
    .banner-overlay .main-slide-text img {
       width: 27rem;
    }
 }

 @media (max-width: 380px) {
    .banner-overlay .main-slide-text img {
       width: 22rem;
    }
 }



 .smaller-image {
    max-width: 90%;
    /* or whatever size you prefer */
    height: auto;
    display: block;
    /* to make sure it stays block-level for centering */
    margin: 0 auto;
    /* auto margins on the side center block-level elements */
}


.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.social-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 60px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-btn i {
    font-size: 24px;
    margin-right: 10px;
    position: relative;
    z-index: 2;
}

.social-btn span {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Facebook */
.social-btn:nth-child(1) {
    background: #3b5998;
}
.social-btn:nth-child(1):hover {
    background: transparent;
    border-color: #3b5998;
    color: #3b5998;
}
.social-btn:nth-child(1):hover::before {
    opacity: 0;
}

/* YouTube */
.social-btn:nth-child(2) {
    background: #ff0000;
}
.social-btn:nth-child(2):hover {
    background: transparent;
    border-color: #ff0000;
    color: #ff0000;
}
.social-btn:nth-child(2):hover::before {
    opacity: 0;
}

/* WhatsApp */
.social-btn:nth-child(3) {
    background: #25d366;
}
.social-btn:nth-child(3):hover {
    background: transparent;
    border-color: #25d366;
    color: #25d366;
}
.social-btn:nth-child(3):hover::before {
    opacity: 0;
}

/* LinkedIn */
.social-btn:nth-child(4) {
    background: #0077b5;
}
.social-btn:nth-child(4):hover {
    background: transparent;
    border-color: #0077b5;
    color: #0077b5;
}
.social-btn:nth-child(4):hover::before {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-btn {
        width: 150px;
        height: 50px;
        font-size: 14px;
    }
    .social-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 15px;
    }
    .social-btn {
        width: 140px;
        height: 45px;
    }
    .social-btn span {
        font-size: 14px;
    }
}




  /* Gallery Spacing Styles */
  .cbp-item {
    padding: 15px !important;
}

.cbp-item-wrapper {
    border-radius: 10px;
    overflow: hidden;
}

#grid-mosaic {
    margin: -15px;
}

.gallery-hvr {
    border-radius: 10px;
}

.cbp-l-grid-mosaic-flat .cbp-item {
    padding: 15px !important;
}





.course-card {
    background: #fff;
    border-radius: 20px;
    /* padding: 30px; */
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #1C5F9B;
}

.course-card:hover::before {
    opacity: 1;
}

.course-icon {
    font-size: 40px;
    color: #1C5F9B;
    margin-bottom: 20px;
    display: inline-block;
}

.course-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.course-price {
    font-size: 22px;
    color: #1C5F9B;
    font-weight: 700;
    margin: 15px 0;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.enroll-btn {
    background: #1C5F9B;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1C5F9B;
}

.enroll-btn:hover {
    background: transparent;
    color: #1C5F9B;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.gallery-hvr {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 49, 60, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

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

.gallery-hvr .opens {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: #fff;
    color: #26313c;
    transform: scale(0);
    transition: all 0.5s ease;
}

.gallery-item:hover .opens {
    transform: scale(1);
}

.gallery-hvr .opens:hover {
    background: #1C5F9B;
    border-color: #1C5F9B;
    color: #fff;
}

.center-box {
    text-align: center;
}

.center-box a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.center-box a:hover {
    transform: scale(1.2);
}

.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    margin: 0 -10px;
}

.gallery-item {
    padding: 10px;
    margin-bottom: 20px;
}

.gallery-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    vertical-align: middle;
    transform: scale(1.01);
    transition: transform 0.5s ease;
}

.gallery-wrap:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(36, 205, 221, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.gallery-popup {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C5F9B;
    font-size: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-wrap:hover .gallery-popup {
    transform: translateY(0);
    opacity: 1;
}

.gallery-popup:hover {
    background: #26313c;
    color: #ffffff;
}

@media (max-width: 767px) {
    .gallery-wrap img {
        height: 200px;
    }
    
    .gallery-popup {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

#site-footer {
    background-color: #26313c;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff80;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1C5F9B;
}

.social-icons {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

.social-icons li a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icons li a:hover {
    background: #1C5F9B;
    color: #fff;
    transform: translateY(-3px);
}

.me-2 {
    margin-right: 10px;
}