 body {
   font-family: "Inter", sans-serif !important;
   margin: 0;
   background: #fff;
 }

 /* ---------- Top Header ---------- */
 .top-header {
   background-color: #ffffff;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   position: relative;
   z-index: 10;
 }

 .logo {
   height: 80px;
   margin-right: 10px;
 }

 .institute-name {
   color: #002147;
   font-size: 14px;
   line-height: 1.2;
 }

 /* Right Blue Section with Angle */
 /* Right Blue Section with Angle */
 .header-right {
   background-color: #003d5a;
   padding: 20px 40px;
   color: white;
   display: flex;
   align-items: center;
   justify-content: flex-end;
   width: auto;
   /* allow flexible width */
   max-width: 55%;
   /* for large screens */
   clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
   box-sizing: border-box;
   flex-wrap: wrap;
   /* allow content to wrap */
 }

 /* Inner flex container */
 .header-right .header-content {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   flex-wrap: wrap;
   /* content can break on small screens */
   gap: 1px;
 }

 /* GST Text */
 .header-right .gst-text {
   font-size: 13px;
   font-weight: 500;
   white-space: nowrap;
   color: #ffffff;
 }

 /* Language links */
 .header-right .language-switch a {
   font-size: 13px;
   text-decoration: none;
   color: #ffd700;
   margin: 0 3px;
   transition: color 0.2s ease-in-out;
 }

 .header-right .language-switch a:hover {
   color: #ffffff;
 }

 .header-right .language-switch a:last-child {
   color: #ffffff;
 }

 .navbar {
   background-color: #ffffff;

 }

 .nav-link {
   color: black !important;
   font-weight: 500;
   padding-right: 1rem;
   padding-left: 1rem;
   font-weight: bold !important;
   font-size: 15px !important;
 }

 .nav-link:hover,
 .dropdown-item:hover {
   color: #003d5a !important;
 }

 /* Dropdown menu styling */
 .dropdown-menu {
   border-radius: 0;
   border-top: 3px solid #002147;
 }

 /* Search Bar Styling */

 .search-bar input::placeholder {
   color: #e0e0e0;
 }

 .search-bar button {
   background-color: #003d5a;
   border: none;
   border-radius: 100%;
   color: white;
 }

 /* Accessibility Buttons */
 .accessibility-box {
   margin-left: 150px;

 }

 .accessibility-box button {
   border: none;
   border-radius: 4px;
   font-size: 12px;
   padding: 4px 6px;
   margin-right: 20px;
   cursor: pointer;
 }

 .accessibility-box .btn-light {
   background-color: #f2f2f2;
   color: #003d5a;
   font-size: 20px;
   margin: 0px;
   padding: 4px 12px;
 }

 .accessibility-box .btn-warning {
   background-color: #d25501;
   color: #003d5a;
   font-size: 20px;
   margin: 0px 10px;
   padding: 4px 12px;
 }

 .accessibility-box .btn-info {
   background-color: #f2f2f2;
   color: #003d5a;
   font-weight: 500;
   font-size: 20px;
   margin: 0px;
   padding: 4px 12px;
   margin: 0px 10px;
 }

 .btn-info:hover {
   background: #d3d4d5 !important;

 }

 /* ===== Responsive Header & Navbar Adjustments ===== */

 /* Top Header */
 @media (max-width: 992px) {
   .header-right {
     max-width: 70%;
     /* smaller screens */
     padding: 15px 20px;
   }

   .header-right .gst-text,
   .header-right .language-switch a {
     font-size: 12px;
   }
 }

 /* Small screens (mobile) */
 @media (max-width: 576px) {

   /* Stack the top header content */
   .top-header .container-fluid {
     flex-direction: column;
     align-items: flex-start;
     gap: 10px;
   }

   .header-right {
     width: 100%;
     /* full width */
     padding: 10px 15px;
     clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
     /* remove angle */
     justify-content: center;
   }

   .header-right .header-content {
     flex-direction: column;
     /* stack GST + Language vertically */
     align-items: center;
     gap: 5px;
   }

   .header-right .gst-text,
   .header-right .language-switch a {
     font-size: 12px;
     text-align: center;
     white-space: normal;
   }

   /* Navbar adjustments */
   .navbar-nav {
     flex-direction: column;
     /* stack menu items vertically */
     gap: 30px;
     font-size: 20px !important;
   }

   /* Search Bar */
   .search-bar {
     width: 100%;
     justify-content: flex-start;
     margin: 10px 0;
   }

   .search-bar button {
     width: 35px;
     height: 35px;
   }

   /* Accessibility buttons */
   .accessibility-box {
     width: 100%;
     display: flex;
     justify-content: flex-start;
     flex-wrap: wrap;
     gap: 5px;
     margin-left: 0;
     /* remove fixed left margin */
     margin-top: 10px;
   }

   .accessibility-box button {
     margin-right: 0;
   }
 }

 /* Mega Menu Styling */
 .mega-menu {
   width: 300px;
   left: 0;
   right: 0;
   margin: auto;
   background-color: #000 !important;
   color: white;
   border-top: 3px solid #003d5a;
 }

 .mega-menu a {
   color: #ddd;
   text-decoration: none;
 }

 .mega-menu a:hover {
   color: #fff;
   text-decoration: underline;
 }

 .mega-menu h6,
 .mega-menu h5 {
   color: #000000;
   font-size: 24px;
 }

 .mega-menu .dropdown-item {
   padding: 5px 0;
   background: transparent;
   border: none;
 }

 .navbar .dropdown:hover>.mega-menu {
   display: block;
 }

 .mega-dropdown {
   position: static !important;
 }

 /* ------------------------------
   MAIN BANNER STYLING
--------------------------------*/
 .hero-banner {
   position: relative;
   background-image: url('img/banner.webp');
   /* Replace with your image */
   background-size: cover;
   background-position: center;
   height: 520px;
   width: 100%;
   display: flex;
   align-items: flex-end;
   justify-content: flex-end;
   border-top: 2px solid #003d5a;
   border-bottom: 2px solid #003d5a;
   overflow: hidden;
 }

 /* Add dark overlay gradient for text readability */
 .hero-banner::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
 }

 /* Banner Text and Button */
 .banner-content {
   position: relative;
   z-index: 2;
   text-align: right;
   padding: 20px 40px;
   color: #fff;
   font-size: 15px;
   display: flex;
   align-items: center;
   gap: 10px;
   flex-wrap: wrap;
   margin: 0px;
 }

 .apply-btn {
   display: inline-block;
   background: #fff;
   color: #007bad;
   padding: 8px 18px;
   border-radius: 25px;
   font-weight: 600;
   font-size: 14px;
   text-decoration: none;
   transition: all 0.3s ease;
 }

 .apply-btn:hover {
   background: #007bad;
   color: #fff;
   text-decoration: none;
 }

 .apply-btn span {
   margin-left: 5px;
   font-weight: bold;
 }

 /* ------------------------------
   RESPONSIVE DESIGN
--------------------------------*/

 /* Tablets */
 @media (max-width: 992px) {
   .hero-banner {
     height: 280px;
   }

   .banner-content {
     padding: 15px 25px;
     font-size: 14px;
   }

   .apply-btn {
     padding: 7px 16px;
     font-size: 13px;
   }
 }

 /* Mobile Devices */
 @media (max-width: 576px) {
   .hero-banner {
     height: 220px;
     background-position: top center;
   }

   .banner-content {
     text-align: center;
     justify-content: center;
     flex-direction: column;
     padding: 10px 15px;
   }

   .apply-btn {
     margin-top: 8px;
     width: auto;
     font-size: 13px;
   }
 }


 /* Section styling */
 /* ===== Featured News Section ===== */
 .featured-news {
   background-color: #f8f9fa;
   overflow: hidden;
 }

 .featured-news h2 {
   font-weight: 700;
   color: #004b75;
   ;
 }

 .featured-news p {
   color: #555;
 }

 /* News Cards */
 .news-card {
   height: 100%;
   display: flex;
   flex-direction: row;
   border-radius: 10px;
   overflow: hidden;
   background-color: #fff;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease;
   width: 100%;
 }

 .news-card:hover {
   transform: translateY(-5px);
 }

 .news-img {
   flex: 1;
   min-width: 35%;
   max-width: 35%;
 }

 .news-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

 .news-content {
   flex: 1;
   background: #004172;
   color: #fff;
   padding: 20px;
   display: flex;
   flex-direction: column;
   justify-content: center;

 }

 .news-content h6 {
   font-size: 13px;
   font-weight: 500;
   opacity: 0.9;
 }

 .news-content h5 {
   font-size: 16px;
   font-weight: 600;
   margin: 8px 0;
   line-height: 1.4;
 }

 .news-content span {
   font-size: 13px;
   opacity: 0.9;
 }

 /* Hide Bootstrap controls (no arrows) */
 .carousel-control-prev,
 .carousel-control-next {
   display: none !important;
 }

 /* Responsive */
 @media (max-width: 768px) {
   .news-card {
     flex-direction: column;
   }

   .news-img,
   .news-content {
     min-width: 100%;
     max-width: 100%;
   }

   .news-content {
     padding: 15px;
   }

   .news-content h5 {
     font-size: 15px;
   }
 }

 @media (max-width: 576px) {
   .featured-news h2 {
     font-size: 22px;
   }

   .featured-news p {
     font-size: 14px;
   }
 }

 /* Custom Slider */
 .news-slider {
   display: flex;
   transition: transform 0.8s ease-in-out;
 }

 .news-slide {
   flex: 0 0 50%;
   /* 2 cards visible */
   padding: 10px;
   box-sizing: border-box;
   height: 300px;
 }

 @media (max-width: 768px) {
   .news-slide {
     flex: 0 0 100%;
     /* 1 card per view on mobile */
   }
 }

 /* Section Styles */

 .departments-section h2 {
   color: #003d5a;
   font-weight: 700;
 }

 .departments-section p {
   color: #555;
 }

 /* Masonry Grid Layout */
 .grid-container {
   display: flex;
   justify-content: center;
   gap: 15px;
   flex-wrap: wrap;
 }

 .column {
   display: flex;
   flex-direction: column;
   gap: 15px;
 }

 /* Column width balance */
 .column-1,
 .column-3 {
   flex: 1 1 30%;
 }

 .column-2 {
   flex: 1 1 35%;
 }

 /* Department Card */
 .department-card {
   position: relative;
   overflow: hidden;
   cursor: pointer;
   border: 2px solid #d25501;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .department-card img {
   width: 100%;
   object-fit: cover;
   display: block;
   transition: transform 0.4s ease;
 }

 /* Different heights */
 .department-card.tall img {
   height: 555px;
 }

 .department-card.short img {
   height: 280px;
 }

 .department-card.equal img {
   height: 272px;
 }

 /* Overlay */
 .department-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   color: #fff;
   padding: 15px 20px;
   text-align: left;
   transition: background 0.3s ease;
 }

 .department-overlay h4 {
   margin: 0;
   font-size: 30px;
   font-weight: 600;
 }

 .department-card:hover img {
   transform: scale(1.08);
 }

 .department-card:hover .department-overlay {
   color: #004b75;
 }

 /* Responsive Design */
 @media (max-width: 992px) {
   .grid-container {
     flex-direction: column;
   }

   .column {
     width: 100%;
   }

   .department-card img {
     height: 280px !important;
   }
 }

 /* General Section Styling */
 /* Section */
 .milestone {
   padding: 60px 20px;
   /* added 20px for mobile padding */
   background: #fff;
 }

 .milestone-heading {
   font-weight: 700;
   color: #003d5a;
   margin-bottom: 10px;
   text-align: center;
 }

 .milestone-description {
   color: #555;
   max-width: 700px;
   margin: 0 auto 40px;
   text-align: center;
 }

 /* Layout */
 .milestone-content {
   display: flex;
   align-items: flex-start;
   justify-content: center;
   gap: 50px;
   flex-wrap: wrap;
 }

 /* Timeline Container */
 .timeline {
   position: relative;
   width: 260px;
 }

 /* Dotted vertical line */
 .timeline::before {
   content: "";
   position: absolute;
   left: 20px;
   top: 0;
   bottom: 0;
   width: 3px;
   background-image: linear-gradient(to bottom, #003d5a 25%, transparent 25%);
   background-size: 8px 16px;
   background-repeat: repeat-y;
   z-index: 0;
   height: 88%;
 }

 .timeline-item {
   position: relative;
   display: flex;
   align-items: center;
   margin-bottom: 60px;
   cursor: pointer;
   z-index: 1;
 }

 .timeline-dot {
   position: absolute;
   left: 12px;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   margin-top: -48px;
   background: #fff;
   border: 3px solid #003d5a;
   z-index: 2;
   transition: background 0.3s ease, transform 0.3s ease;
 }

 .timeline-item.active .timeline-dot {
   background: #003d5a;
   transform: scale(1.1);
 }

 .timeline-img {
   width: 70px;
   height: 70px;
   object-fit: cover;
   border-radius: 6px;
   margin-left: 50px;
   border: 2px solid #e5e5e5;
   transition: transform 0.3s ease, border-color 0.3s ease;
 }

 .timeline-item.active .timeline-img {
   border-color: #003d5a;
   transform: scale(1.05);
 }

 .timeline-year {
   font-weight: 600;
   color: #000;
   margin-left: 15px;
   font-size: 1.1rem;
 }

 /* Right side image */
 .milestone-image-box {
   text-align: center;
   flex: 1;
   min-width: 300px;
   max-width: 100%;
 }

 .main-image {
   width: 100%;
   border-radius: 10px 10px 0 0;
   object-fit: cover;
   transition: opacity 0.4s ease;
   border: 5px solid #007bad;
   height: 420px;
 }

 .milestone-caption {
   background: #007bad;
   color: #fff;
   padding: 15px 5px;
   border-radius: 0 0 10px 10px;
   font-size: 1rem;
   margin-top: -8px;
   text-align: center;
   font-weight: 500;
   line-height: 1.4;
   width: 100%;
 }

 /* Solid line */
 .solid-line {
   position: absolute;
   left: 260px;
   top: 0;
   bottom: 0;
   width: 4px;
   background-color: #007bad;
   z-index: 0;
   height: 90%;
 }

 /* Responsive adjustments */
 @media (max-width: 992px) {
   .milestone-content {
     flex-direction: column;
     align-items: center;
   }

   .timeline {
     width: 100%;
     max-width: 400px;
     padding-left: 30px;
     margin-bottom: 40px;
   }

   .timeline-item {
     flex-direction: row;
     align-items: center;
   }

   .timeline-img {
     width: 60px;
     height: 60px;
     margin-left: 40px;
   }

   .timeline-year {
     font-size: 1rem;
   }

   .solid-line {
     left: 20px;
     /* Adjust solid line position for mobile */
   }
 }

 @media (max-width: 576px) {
   .timeline-img {
     width: 50px;
     height: 50px;
     margin-left: 35px;
   }

   .milestone-caption {
     font-size: 0.9rem;
     padding: 10px 5px;
   }

   .timeline-year {
     font-size: 0.9rem;
   }
 }

 /* ===== Administration Section ===== */
 .administration-section {
   background-color: #fff;
 }

 .administration-section h3 {
   color: #003d5a;
   font-weight: 700;
 }

 .administration-section p {
   font-size: 15px;
   max-width: 700px;
   margin: 0 auto 30px;
 }

 .admin-btn {
   border: 1.5px solid #003d5a;
   color: #003d5a;
   border-radius: 30px;
   padding: 10px 15px;
   font-weight: 500;
   transition: 0.3s;
   text-decoration: none;
 }

 .admin-btn:hover {
   background-color: #003d5a;
   color: #fff;
   transform: translateY(-3px);
 }

 /* Responsive spacing */
 @media (max-width: 768px) {
   .admin-btn {
     margin-bottom: 10px;
   }
 }

 /* morder  */
 .modern {
   position: relative;
   background-image: url('img/morden.jpg');
   background-size: cover;
   background-position: center;
   color: white;
   padding: 50px 0;
   text-align: left;
 }

 .modern .overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 61, 90, 0.7);
   z-index: 1;
 }

 .modern .content {
   position: relative;
   z-index: 2;

 }

 .modern h2 {
   font-size: 30px;
   margin-bottom: 20px;
   font-weight: 800;

 }

 .modern p {
   font-size: 1.2rem;
   line-height: 1.6;
 }

 .highlight {
   background-color: #f8a42e;
   color: white;
   padding: 5px 10px;
   font-weight: bold;
 }

 .degree-certificate {
   padding: 0px 0px;
 }

 .degree-certificate .left-col {
   background-color: #003d5a;
   color: white;
   min-height: 200px;
   padding: 40px 20px;
 }


 .degree-certificate .right-col {
   background-color: white;
   color: black;
   min-height: 200px;
   padding: 40px 20px;
   border-left: 2px solid #003d5a;
   /* optional, thoda separation ke liye */
 }

 .degree-certificate h3 {
   margin: 0;
   font-size: 1.8rem;
 }

 .right-col {
   background-color: white;
   color: black;
   min-height: 300px;
   padding: 40px 20px;
   border-left: 2px solid #003d5a;
   /* optional separation from left column */
 }

 .right-col .main-heading {
   font-size: 1.8rem;
   font-weight: bold;
   margin-bottom: 15px;
 }

 .right-col .description {
   font-size: 1rem;
   line-height: 1.6;
   margin-bottom: 25px;
 }

 /* Inner Rows */
 .right-col .row {
   margin-top: 20px;
 }

 /* Program Columns */
 .right-col .row>.col-12.col-md-6 {
   display: flex;
   flex-direction: column;
   /* icon, heading, paragraph vertically stacked */
   align-items: flex-start;
   /* left align */
   padding: 15px;



 }

 .right-col .icon {
   font-size: 2rem;
   margin-bottom: 10px;
 }

 .right-col .sub-heading {
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 5px;
 }

 .right-col p {
   font-size: 0.95rem;
   line-height: 1.5;
   margin: 0;
 }

 .icon-color {
   color: rgba(0, 120, 176, 1) !important;
 }

 /* Responsive adjustments */
 @media (max-width: 767px) {
   .right-col .row>.col-12.col-md-6 {
     margin-bottom: 15px;
   }
 }


 /* Footer Styles */
 .footer_section {
   position: relative;
   background-image: url("img/footer.png");
   background-position: center;
   background-size: cover;
   width: 100%;
   height: auto;
   color: white;
   overflow: hidden;
 }

 /* black overlay */
 .footer_section::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, rgb(0 28 64 / 69%) 35%, rgb(47 166 223 / 69%) 100%);
   z-index: 1;
 }

 /* make sure content stays above the overlay */
 .footer_section * {
   position: relative;
   z-index: 2;
 }

 .footer h5,
 .footer h6 {
   color: #ffffff;
   font-size: 25px;
 }

 .footer p {
   color: #ffffff;
   padding: 10px 4px;
 }

 .footer .footer-link {
   color: #ffffff;
   transition: color 0.3s;
   font-size: 16px;

 }

 .footer .footer-link-new {
   color: #ffffff;
   transition: color 0.3s;


 }

 .footer .footer-link:hover {
   color: #ffffff;
 }

 .footer .social-icons a {
   color: #ffffff;
   font-size: 1.0rem;
   transition: 0.3s;
   background-color: rgba(255, 255, 255, 0.2);
   padding: 10px 10px;
   border-radius: 50px;
 }

 .list-unstyled li {
   margin: 5px 30px;
 }

 .footer .social-icons a:hover {
   color: #00aaff;
 }

 /* Accessibility buttons */
 .accessibility button {
   margin-right: 5px;
 }

 /* Scroll to top button */
 .scroll-top {
   position: absolute;
   bottom: 20px;
   right: 25px;
   border: 1px solid #ffffff;
   color: #ffffff;
   border-radius: 50%;
   padding: 4px 12px;
   font-size: 18px;
   transition: 0.3s;
 }

 .scroll-top:hover {
   background: #00aaff;
   color: #fff;
 }

 /* Responsive adjustments */
 @media (max-width: 767px) {
   .footer {
     text-align: center;
   }

   .footer .social-icons a {
     margin: 0 8px;
   }
 }