/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}

/*** Navbar ***/
.logo-img {
    width: 60px;
    height: auto;
}

.brand-text {
    line-height: 1.2;
}

.tamil-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}

.tamil-subtitle {
    font-size: 0.85rem;
    color: #444;
}

.tamil-subtitle1 {
    font-size: 0.8rem;
}

/* Menu links */
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-weight: 500;
}

/* Hover / Active */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Sticky animation */
.navbar.sticky-top {
    top: -100px;
    transition: 0.5s;
}

/* Mobile View */
@media (max-width: 991.98px) {

    .logo-img {
        width: 45px;
    }

    .tamil-title {
        font-size: 0.9rem;
    }

    .tamil-subtitle {
        font-size: 0.75rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 0.95rem;
    }
}

/* Desktop dropdown support */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        top: 110%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        top: 100%;
    }
}


/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
   /*  background: url(../img/bg-header-top.png) center center repeat-x; */
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
   /* background: url(../img/bg-header-bottom.png) center center repeat-x; */
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: auto; /* or remove it if not needed */
        height: auto;
    }

    .header-carousel .owl-carousel-item img {
        position: static;       /* allow normal flow */
        width: 100%;            /* full width of screen */
        height: auto;           /* auto height keeps aspect ratio */
        object-fit: contain;    /* or 'cover' if cropping is okay */
        display: block;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}


.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}



.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url(../images/p71.jpeg) center center no-repeat;
    background-size: cover;
    height: 400px; /* default height for desktops */
    width: 100%;
}

/* Tablets (width < 992px) */
@media (max-width: 991px) {
    .page-header {
        height: 300px;
        background-position: center top;
    }
}

/* Mobile devices (width < 768px) */
@media (max-width: 767px) {
    .page-header {
        height: 200px;
        background-position: top;
    }
}

/* Small mobile devices (width < 480px) */
@media (max-width: 479px) {
    .page-header {
        height: 150px;
        background-position: top;
    }
}


.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/* page  header1   */

.page-header1 {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url(../images/P21.jpeg) center center no-repeat;
    background-size: cover;
    height: 400px; /* default height for desktops */
    width: 100%;
}

/* Tablets (width < 992px) */
@media (max-width: 991px) {
    .page-header1 {
        height: 300px;
        background-position: center top;
    }
}

/* Mobile devices (width < 768px) */
@media (max-width: 767px) {
    .page-header1 {
        height: 200px;
        background-position:center top;
    }
}

/* Small mobile devices (width < 480px) */
@media (max-width: 479px) {
    .page-header1 {
        height: 150px;
        background-position: center top;
    }
}
/*   page header1 end  */

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.justify-text {
    text-align: justify;
}
.uniform-img1 {
    width: 500px;
    height:200px;
    object-fit: cover;
    border-radius: 8px;
  }


  .service-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  .service-icon {
    font-size: 36px;
    color: #ff6600;
  } 

    /* Gallery Style     */
  .gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #2c3e50;
  }

  .gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    cursor: pointer;
    background-color: #fff;
  }

  .gallery-card:hover {
    transform: scale(1.02);
  }

  .gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    display: block;
  }

  /* Responsive adjustment */
  @media (max-width: 576px) {
    .gallery-img {
      height: 160px;
    }
  }

  .modal-content {
    background-color: transparent;
    border: none;
  }

  .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-img {
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s ease-in-out;
  }

  @keyframes zoomIn {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    background: white;
    border: 10px;
    color: black;
    z-index: 10;
  }

  .modal-close-btn:hover {
    color: #f00;
  }

  /* GAllery style ends.. */
  /* Logo */
.logo-img {
    height: 60px;
    width: auto;
}

/* Tamil Text */
.brand-text {
    line-height: 1.2;
}

.tamil-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b0000;
}

.tamil-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b0000;
}
.tamil-subtitle1 {
    font-size: 1.0rem;
    font-weight: 300;
    color: #8b0000;
}

/* Menu Styling */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #000 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #b30000 !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .logo-img {
        height: 50px;
    }

    .tamil-title {
        font-size: 1rem;
    }

    .tamil-subtitle {
        font-size: 0.85rem;
    }

    .navbar-nav {
        padding-top: 10px;
    }
}

/* Carousel container height */
.header-carousel .owl-carousel-item {
    position: relative;
    width: 100%;
    height: 80vh; /* Desktop height */
    overflow: hidden;
}

/* Image uniform sizing */
.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio */
}

/* Tablet view */
@media (max-width: 992px) {
    .header-carousel .owl-carousel-item {
        height: 60vh;
    }
}

/* Mobile view */
@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        height: 45vh;
    }
}


  /* Responsive bullet points */
  .bullet-points {
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* proper indentation for bullets */
    line-height: 1.8;
    font-size: 1rem;
  }

  /* Optional: make text justify */
  .bullet-points li {
    text-align: justify;
    margin-bottom: 0.8rem;
  }

  /* For smaller screens */
  @media (max-width: 768px) {
    .bullet-points {
      font-size: 0.95rem;
      padding-left: 1rem;
    }
  }

  
.poster{
    max-width:1100px;
    margin:30px auto;
    background:#ffffff;
    padding:30px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.header{
    text-align:center;
    border-bottom:4px solid #8b0000;
    padding-bottom:15px;
    margin-bottom:25px;
}

.header h1{
    color:#8b0000;
    font-size:32px;
    margin:0;
}

.header h2{
    font-size:18px;
    margin:6px 0;
    color:#333;
}

.header p{
    font-size:14px;
    color:#555;
}

table{
    width:100%;
    border-collapse:collapse;
    font-size:15px;
}

thead{
    background:#8b0000;
    color:#fff;
}

th, td{
    padding:10px;
    text-align:center;
    border:1px solid #ddd;
}

tbody tr:nth-child(even){
    background:#f9f9f9;
}

.special{
    color:#b30000;
    font-weight:600;
}



@media(max-width:768px){
    .header h1{
        font-size:24px;
    }
    table{
        font-size:13px;
    }
}

