@import url('https://fonts.googleapis.com/css2?family=Jost&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body {
  font-family: "Segoe UI", sans-serif;
}

@font-face {
  font-family: "MyTamilFont";
  src: url("../fonts/TAMIL-UNI015.ttf") format("truetype");
} 

.tamil-font {
  font-family: "MyTamilFont";
  font-size: 40px;
  font-weight: 600;
}
.arvo-regular {
  font-family: "Arvo", serif;
  font-weight: 400;
  font-style: normal;
}

.arvo-bold {
  font-family: "Arvo", serif;
  font-weight: 700;
  font-style: normal;
}

.arvo-regular-italic {
  font-family: "Arvo", serif;
  font-weight: 400;
  font-style: italic;
}

.arvo-bold-italic {
  font-family: "Arvo", serif;
  font-weight: 700;
  font-style: italic;
}

h2 {
  font-size: 2.2rem;
}
p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #333;
  text-align: justify;
  text-indent: 30px;
}
.navbar-custom {
  background-color: #1c78bd;
}
.navbar-brand {
  height: 80px;
}
.bg-color {
  background-color: #4b6cb7;
  color: white;
}
.bgcolor {
  background-color: #1c78bd;
  color: white;
}

.text-blue {
  color: #4b6cb7;
}

.border-red {
  border: #4b6cb7;
}

.border-red-solid {
  border: 1px solid #4b6cb7;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: white;
}

.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-item:hover {
  color: #ffffff;
}

.dropdown-item {
  color: white;
}
.dropdown-menu {
  background-color: #1c78bd;
  padding: 18px;
  line-height: 2.95rem;
}

.college-header {
  text-align: center;
  padding: 1rem;
  font-family:"Jost", sans-serif ;
}

.college-header h1 {
  font-size: 40px;
  font-weight: bold;
}

/* .college-header h2 {
  font-size: 26px;
  color: #333;
} */

.college-header p {
  font-size: 26px;
  margin: 0;
  color: #555;
  text-align: center;
}

.logo-left,
.logo-right {
  max-height: 150px;
}

.header-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.header-logos img {
  width: 125px;
  height: 125px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-item:hover {
  color: #ffffff;
}
.dropdown-item:focus,
.dropdown-item:hover {
  color: #ffffff;
  background-color: #182848;
}

.list-unstyled ul li {
  color: white;
}

.transition-card a {
  font-size: 1.25rem;
}
/* caurosel styles */
.carousel-indicators button.thumbnail {
  width: 100px;
}
.carousel-indicators button.thumbnail:not(.active) {
  opacity: 0.7;
}
.carousel-indicators {
  position: static;
}

.carousel-item img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.index-about {
  font-size: 24px;
  margin-top: 30px;
}
.transition-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.transition-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(238, 35, 28, 0.12),
    0 0.125rem 0.25rem rgba(34, 48, 74, 0.08);
  transform: translateY(-4px) scale(1.02);
}
.hover-bg:hover {
  background: #f5f7fa;
  color: #4a3422 !important;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

/* Default for large devices */
.submenus {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
}

/* Responsive override for small devices */
@media (max-width: 768px) {
  .submenus {
    left: auto;
    right: auto;
    margin-left: 80px; /* Adjust as needed */
    top: 0;
  }
}

@media screen and (max-width: 768px) {
  .header-logos {
    flex-direction: column;
    align-items: center;
  }
  .header-logos img {
    width: 120px;
    height: 120px;
  }
  .logo-left,
  .logo-right {
    margin-bottom: 1rem;
  }
  .logo-left {
    display: none;
  }
  .college-header h1 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.7 !important;
  }
.tamil-font {
  font-family: 'MyTamilFont';
  font-size: 22px;
}
  /* .college-header h2 {
    font-size: 18px;
    color: #333;
    line-height: 1.5 !important;
  } */
  /* .college-header p {
    display: none;
  } */
  .college-header p {
    font-size: 15px;
    color: #333;
    line-height: 1.5 !important;
  }
  .index-about {
    font-size: 20px;
    margin-top: 35px;
  }
  h2 {
    font-size: 1.3rem;
  }
  p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    text-indent: 30px;
  }
  .transition-card a {
    font-size: 1rem;
  }

  .dropdown-menu {
    background-color: #1c78bd;
    padding: 15px;
    line-height: 2.5rem;
  }
}

@media screen and (min-width: 992px) {
  .carousel {
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 100px;
  }
}

/* @media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
        margin-left: 150px;
    }
} */
@media (min-width: 991px) and (max-width: 1260px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    gap: 25px;
  }
  .nav-link {
    font-size: 19px;
    font-weight: bold;
  }
  .dropdown-item {
    font-size: 19px;
  }
  .college-header h1 {
    font-size: 30px;
    font-weight: bold;
    line-height: 1 !important;
  }
.tamil-font {
  font-family: 'MyTamilFont';
  font-size: 30px;
}
  /* .college-header h2 {
    font-size: 24px;
    color: #333;
    line-height: 1 !important;
  } */

  .college-header p {
    font-size: 24px;
    margin: 0;
    color: #555;
    line-height: 1.5 !important;
  }
  .index-about {
    font-size: 24px;
    margin-top: 30px;
  }
  h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 1261px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    gap: 50px;
  }
  .nav-link {
    font-size: 20px;
    font-weight: bold;
  }
  .dropdown-item {
    font-size: 20px;
  }
}

.contact-section {
  position: relative;
  z-index: 1;
  background: #fff !important;
}
.contact-section:before {
  display: none !important;
}
.contact-section > .container {
  position: relative;
  z-index: 1;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #4b6cb7;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.form-control:focus {
  box-shadow: none;
  border-color: #4b6cb7;
}
.text-black {
  color: #222 !important;
}
.contact-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4b6cb7 60%, #182848 100%);
  border-radius: 2px;
  margin: 12px auto 10px auto;
}
/* Responsive Fixes */
@media (max-width: 991.98px) {
  .contact-section .row.justify-content-center.align-items-center {
    flex-direction: column;
  }
  .contact-section .col-lg-5,
  .contact-section .col-lg-6,
  .contact-section .offset-lg-1 {
    max-width: 100%;
    flex: 0 0 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .contact-section .col-lg-6.offset-lg-1 {
    margin-top: 2rem;
  }
  .contact-section .bg-white.shadow.p-4.p-md-5.border {
    padding: 1.5rem !important;
  }
  .contact-section p {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .contact-section {
    padding: 1.5rem 0 !important;
  }
  .contact-section .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .contact-section .bg-white.shadow.p-4.p-md-5.border {
    padding: 1rem !important;
  }
  .contact-section .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .contact-section .row.mt-5 {
    margin-top: 2rem !important;
  }
  .contact-section iframe {
    min-height: 200px !important;
    height: 200px !important;
  }
}
/* .container {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
} */

/* Centered and Stylish Department Title */
.dept-title {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 32px;
}
.dept-title h2 {
  color: #4b6cb7;
  letter-spacing: 1px;
  font-weight: 700;
}
.dept-title .title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4b6cb7 60%, #182848 100%);
  border-radius: 2px;
  margin: 12px auto 10px auto;
}
.dept-title p {
  color: #34495e;
  font-size: 1.25rem;
  margin-bottom: 0;
  text-align: center;
}

/* Content Section */
.content-section {
  margin-top: 20px;
  padding: 32px 24px 24px 24px;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(75, 108, 183, 0.07);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* Text Box */
.text-box {
  margin-bottom: 30px;
}
.text-box-content {
  text-align: justify;
  color: #2c3e50;
  line-height: 1.8;
  background: #fff;
  border-radius: 10px;
  padding: 28px 22px 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.text-box-content h4 {
  color: #4b6cb7;
  margin-top: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}
.text-box-content ul {
  margin-left: 40px;
  color: #333;
  margin-bottom: 0;
}
.text-box-content ul li {
  margin-bottom: 8px;
  font-size: 1.25em;
}

/* Tabs Section */
.mytabs {
  margin: 30px 0;
}
.mytabs input[type="radio"] {
  display: none;
}
.mytabs ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  flex-wrap: wrap;
}
.mytabs ul li {
  margin: 0 8px 10px;
}
.mytabs ul li label {
  cursor: pointer;
  text-align: center;
  display: block;
  padding: 12px 20px;
  border: 1px solid #e1e7f0;
  border-radius: 30px;
  background: #f5f7fa;
  color: #5a6a85;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  min-width: 250px;
}
.mytabs ul li label i {
  font-size: 1.3em;
  margin-bottom: 3px;
  color: #4b6cb7;
}
.mytabs ul li label span {
  font-size: 1em;
  font-weight: 500;
  color: #34495e;
}
.mytabs ul li label:hover,
.mytabs input[type="radio"]:checked + label {
  background: linear-gradient(135deg, #4b6cb7, #182848);
  color: #fff !important;
  border-color: #4b6cb7;
}
.mytabs ul li label:hover i,
.mytabs input[type="radio"]:checked + label i {
  color: #fff;
}
.mytabs ul li label:hover span,
.mytabs input[type="radio"]:checked + label span {
  color: #fff;
}

/* Tab Content */
.tab-section {
  display: none;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#tab1:checked ~ .tabs-content #content1,
#tab2:checked ~ .tabs-content #content2,
#tab3:checked ~ .tabs-content #content3 {
  display: block;
}

/* Faculty Section */
.faculty-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.faculty-card {
  text-align: center;
  background: lightsteelblue;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.faculty-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 32px rgba(75, 108, 183, 0.13);
}
.faculty-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
  border: 3px solid #f0f4f9;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.faculty-card h5 {
  margin: 10px 0 5px;
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
}
.faculty-card p {
  color: #7f8c8d;
  font-size: 0.9em;
  margin-bottom: 15px;
  text-align: center;
  text-indent: 0px;
}
.btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #4b6cb7, #182848);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
/* .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 108, 183, 0.3);
} */

/* Content Styling */
.tab-section h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}
.tab-section p {
  color: #34495e;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .content-section {
    padding: 18px 5px;
  }
}
@media (max-width: 768px) {
  .mytabs ul li {
    margin: 0 5px 8px;
  }
  .mytabs ul li label {
    padding: 10px 15px;
    min-width: 200px;
    font-size: 0.9em;
  }
  .tab-section {
    padding: 20px 15px;
  }
  .faculty-container {
    grid-template-columns: 1fr;
  }
  .text-box-content ul li {
    margin-bottom: 8px;
    font-size: 1em;
  }
  .dept-title p {
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  .content-section {
    padding: 8px 2px;
  }
  .faculty-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* .mytabs ul {
    justify-content: flex-start;
  } */
  .mytabs ul li {
    margin: 0 15px 18px 0;
  }
  .mytabs ul li label {
    padding: 8px 12px;
    min-width: 290px;
    font-size: 0.85em;
  }
}

/* Hover dropdown styles */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    left: 100%;
    top: 0;
    margin-left: 0.125rem;
  }
  .dropdown-menu {
    margin: 0;
  }
}
/* Adjust submenu positioning */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}
