/* For English text */
html[lang="en"] body {
  font-family: 'Ubuntu', sans-serif;
  color:#000;
}
h6[lang="en"], p[lang="en"]{
  font-size: 12px;
  font-family: 'Ubuntu', sans-serif;
  color:#000;
}
h5[lang="en"]{
  font-size: 13px;
  font-family: 'Ubuntu', sans-serif;
}
h2[lang="en"]{
  font-size: 14px;
  font-family: 'Ubuntu', sans-serif;
  color:#232F50;
}
h3[lang="en"]{
  font-family: 'Ubuntu', sans-serif;
  color:#232F50;
}
/* For Malayalam text */
html[lang="ml"] body {
  font-family: 'Noto Sans Malayalam', sans-serif;
  color:#000;
}
h6[lang="ml"], p[lang="ml"]{
  font-size: 14px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  color:#000;
}
h5[lang="ml"]{
  font-size: 15px;
  font-family: 'Noto Sans Malayalam', sans-serif;
}
h2[lang="ml"]{
  font-size: 16px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  color:#232F50;
}
h3[lang="ml"]{
  font-family: 'Noto Sans Malayalam', sans-serif;
  color:#232F50;
}
a{
  color:#3F357A;
}

.lang-block a,.about-link{
  color:#04A5DA;
}
.top-bar span{
  color:#0B2B82;
}
.lang-block ul{
  margin-top: 10px;
}
.menu_item_font{
  color: #000;
  font-weight: 550;
  line-height: 20px; /* 90.909% */
  letter-spacing: 0.22px;
}
.dropdown-menu{
  font-size: 14px;
  color:#000;
}

.full-container{
  background: #fff;
}
.region-content{
  min-height:600px;
}
.header{
  background: #fff;
  display: flex;
  align-items: center;
  height:90px;
}
.website-sitelogo-container .site-name h1{
  color: #0B2B82;
  font-size: 20px;
  letter-spacing: 0.18px;
  align-items: flex-end;
}
.website-sitelogo-container .logo{
  width: 76.181px;
  height: 60px;
}
.website-sitelogo-container{
 align-items: flex-end;
}
.side-alignment{
  padding:0px 50px;
}
.basic-block{
  background: #F7F6FF;
  height:50px;
}
.basic-block .language-switcher-language-url ul{
  list-style-type: none;
  display: flex;
  gap: 10%;
}
.logo-block {
  display: flex;
  align-items: center;
}

.logo-block img {
  height: 50px; /* Adjust as needed */
  margin-right: 10px;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px; /* Adjust size */
  width: auto;
}
.site-name h1 {
  font-size: 1.5rem;
  color: #000;
}
.nav-menu {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}
/*---Update section starts--*/
.fixed-card {
  /* Fixed width */
    overflow: hidden;
    background: #FFF;
    margin:0 0.5rem 1rem 0.5rem;
}
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.update-icon{
  height: 50px;
  margin: 15px 5px 5px 0px;
  width:50px;
}
.update-title{
 color:#fff;
}
.update-title,
.update-desc {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.color{
  background-color:#E82C78;
  color:#fff;
}
/*---Update section ends--*/
/*......Governing body section -----*/
.card-img-top{
  width: 300px !important;
  height: 320px !important;
  border-radius: 12px !important;
  margin: 0 auto;
}

.small-member-card {
  width: 100%;
  max-width: 220px;
}
.small-member-card img {
  border-radius: 0.75rem 0.75rem 0 0;
  height: auto;
}
.member-img-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem 0.5rem 0 0;
}
.member-title{
  color:#0B2B82;
}
/*---Governing body ends--*/
/*---About Us---------*/
.card-about{
  height: 250px; /* Fixed height */
  overflow: hidden;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0px 8px 14px 0px #E3DFFF;
}
/*---About Us ends---------*/

/*------------History section-------*/
.history-container {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0.67) 100%), url(/themes/custom/lsgdgrama/images/history.webp) lightgray 50% / cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 500px; /* Ensures height on smaller screens */
  overflow: hidden;
  padding: 4rem 1rem;
}   
.history-row {
  min-height: 100%; /* Makes card stretch vertically */
}

/*---------History end----------*/
/*---------services------------*/
.services-title{
  color:#0B2B82;
  padding-left: 15px;
}
/*--------services end---------*/
/*------gallery------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 1.5rem;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.highlight {
  grid-row: span 2;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-text {
  text-align: center;
}
/*------gallery end-----*/
.footer-section {
  background: #291E68;
}
.custom-fixed-card {
  height: 300px;
  overflow: hidden;
}
.custom-fixed-card .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-fixed-card img {
  object-fit: cover;
  height: 100%;
}
.footer-sub{
  color: #6980BD;
  background-color: #1D125C;
}

.full-content-margin{
  margin-top:141px;
}
.user-login-form{
  padding:100px;
}
.user-login-form .form-item-name, .user-login-form .form-item-pass{
  padding:10px;color: #0B2B82;
}
.user-login-form .edit-name, .user-login-form .edit-pass{
  margin-left:5px;color: #0B2B82;
}
.user-login-form #edit-submit{
  margin:10px;
  border-radius: 8px;
  width: 100px;
}

.search-form .search-help-link{
  display:none;
}
.top-bar{
 color: #3F357A;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-right: 7rem;
}
.pagination a, 
.pagination span {
  border: 2px solid #eee;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 16px;
}

.pagination a:hover {
  background-color: lavender;
}

.page-item.active .page-link {
  background-color: #7a5ff5; /* Purple background */
  color: white;
  border-color: #7a5ff5;
  cursor: default;
}

.pagination span {
  border: none;
}
.custom-list li {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.custom-list li:hover {
  color: #0d6efd; /* Bootstrap primary color */
  transform: translateX(5px); /* subtle slide right */
}

/* Optional: animate icon too */
.custom-list li i {
  transition: transform 0.3s ease;
}

.custom-list li:hover i {
  transform: scale(1.2) rotate(5deg);
}
.quick-services-card:hover,
.card-about:hover{
  background-color: lavender;
}
.quick-services-card{
  border-radius: 16px;
  background: var(--Gray-2, #F7F6FA);
}
.bg-hover-zoom:hover img {
  transition: transform 0.3s ease;
  transform: scale(1.2);
}

.profile-card .profile-overlay {
  background-color: rgb(97 117 195 / 25%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-card:hover .profile-overlay {
  opacity: 1;
  visibility: visible;
  border-radius: 15px !important;
}
.content-container {
  overflow: hidden;
  min-height: auto;
}

/* Wrapper */
.user-login-form {
  max-width: 400px;
  margin: 30px auto;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: #f9f9ff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Labels */
.user-login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

/* Inputs */
.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-login-form input[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* CAPTCHA */
.captcha {
  text-align: center;
  margin-bottom: 1rem;
}

.captcha img {
  max-width: 100%;
  height: auto;
}

/* CAPTCHA Input Field */
.captcha-response input {
  width: 100%;
}

/* Submit Button */
.user-login-form input[type="submit"],
.user-pass input[type="submit"]{
  background-color: #4a69bd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.user-login-form input[type="submit"]:hover,
.user-pass input[type="submit"]:hover {
  background-color: #3451a1;
}

/* Hide all submenus by default */
.has-submenu > ul {
  display: none;
  transition: all 0.3s ease;
}

/* Show submenu when open */
.has-submenu.open > ul {
  display: block;
}
.menu_nav li.nav-item > a.nav-link:hover,
.menu_nav li.nav-item > a.nav-link.is-active {
  color: #E82C78;
}
.dropdown-item:hover {
  background-color: #f4f4f4;
  color: #0077ff;
}
.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #0077ff;
}
.responsive-img-container {
  width: 100%;           /* Will scale with parent width */
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.responsive-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Responsive image container */
.news-image-wrapper {
    /* Prevent it from getting too big */
  aspect-ratio: 1 / 1; 
       /* Keeps it square */
       width:100px;
       height:70px;
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
}
/* Make the image uniform and cropped */
.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
/* Text section */
.news-text {
  flex: 1;
  min-width: 200px;
}
 

  .search-help-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
  }

  .search-help-link:hover {
    text-decoration: underline;
  }

  h2 {
    font-size: 2rem;
    color: #002147;
    margin-bottom: 1.25rem;
  }

  .search-results ol {
    counter-reset: result;
    list-style: none;
    padding: 0;
  }

  .search-results li {
    background: #ffffff;
    border-left: 4px solid #0d6efd;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  }

  .search-results h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2a2a72;
    font-weight: 600;
  }

  .search-results h3 a {
    color: #0d6efd;
    text-decoration: none;
  }

  .search-results h3 a:hover {
    text-decoration: underline;
  }

  .search-results p {
    margin-top: 0.5rem;
    color: #333;
    font-size: 0.95rem;
  }

  .search-results li::before {
    counter-increment: result;
    content: counter(result) ". ";
    font-weight: bold;
    color: #6c757d;
    display: inline-block;
    margin-right: 0.5rem;
  }
  .content-image{
    object-fit: cover;
    border-radius: 8px;
    display: inline-block;
  }
 .bg-pink {
  background-color: #E45274;
  color: #fff;
}

.bg-orange {
  background-color: #CB971E;
  color: #fff;
}

.bg-green {
  background-color: #C3CB1E;
  color: #fff;
}

.bg-cyan {
  background-color: #40BDD1;
  color: #fff;
}
.about-us{
aspect-ratio: 692/767;
}
.about-us-section a{
  color: #0B2B82;
} 
.about-paragraphs{
  border-radius: 16px;
  background: var(--Gray-2, #F7F6FA);
}
.ksmart-app{
  background: url(/themes/custom/lsgdgrama/images/app_background.webp) lightgray 50% / cover no-repeat;
}
.app-icons{
 border-radius: 7.706px;
 border: 1.156px solid #A6A6A6;
 height: 50px;
}
.about-right-section{
   background: url(/themes/custom/lsgdgrama/images/about_background.webp);
   background-size: cover;     /* Fills container, maintains aspect ratio */
   background-position: center; /* Centers the image */
   background-repeat: no-repeat;
   width: 100%;
   height: 100%; /* or set a fixed height like 500px if needed */

}
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  width: 500px;
  height: 400px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.popup-body {
  overflow-y: auto;
  flex-grow: 1;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.news-ticker-wrapper {
  background: #0B2B82; /* Deep blue */
  padding: 4px 0;
  color: white;
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.news-ticker-alert {
  flex-shrink: 0;
  padding: 0 10px;
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
}

.news-ticker-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.news-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
  font-size: 15px;
  color: #ffffff;
  padding-left: 100%; /* makes it scroll from right */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* Feedback floating button */
.button-website-feedback {
  top: 40%;
  background-color: #4b2e83; /* Elegant purple */
  color: white;
  padding: 12px 20px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  text-decoration: none;
}

/* Hover effect */
.button-website-feedback:hover {
  background-color: #3b246a;
  transform: rotate(180deg) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
