/* ==========================================================================
   1. CORE VARIABLES & RESET (Synced to Deep blue Theme)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Inter:wght@400;500;700&family=Hind:wght@400;600&display=swap");

:root {
  /* Synced Color Palette */
  --primary-blue: #1e3a8a;
  --accent-gold: #f59e0b;
  --light-bg: #f8fafc;
  --text-dark: #1f2937;
  --dark-color: #212529;
  --white: #ffffff;

  /* Font Stacks */
  --font-heading: "Poppins", sans-serif;
  --font-hindi: "Hind", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Defaults */
  --transition-base: all 0.3s ease;
}
.text-gold{
    color: var(--accent-gold);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  transition: var(--transition-base);
}

/* Premium Preloader Styles */
#preloader {
    position: fixed;
    inset: 0;
    background: #0f172a; /* Extra Dark Blue for professional look */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* SVG Circle Drawing Animation */
.svg-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.svg-container svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.base-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.drawing-circle {
    fill: none;
    stroke: #f59e0b; /* Gold */
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.logo-initial {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Text Animation */
.loading-content {
    text-align: center;
}

.loader-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 15px;
    animation: blurFade 1.5s ease-in-out infinite alternate;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    width: 40%;
    height: 100%;
    background: #f59e0b;
    border-radius: 10px;
    animation: progressMove 1.5s ease-in-out infinite;
}

.loader-status {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes drawCircle {
    0% { stroke-dashoffset: 283; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -283; }
}

@keyframes blurFade {
    0% { filter: blur(0px); opacity: 1; }
    100% { filter: blur(4px); opacity: 0.5; }
}

@keyframes progressMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Smooth Out Transition */
.preloader-hide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
/* ==========================================================================
   2. TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
.h1,
h2,
.h2,
h3,
.h3 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.header-hindi {
  font-family: var(--font-hindi);
  font-weight: 600;
  color: var(--dark-color);
}

.display-3 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.gold {
  color: var(--accent-gold) !important;
}
.bg-gold {
  background-color: var(--accent-gold) !important;
}
.bg-blue {
  background-color: var(--primary-blue) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 10px;
}
.sub-btn{
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition-base);
}
.sub-btn:hover{
  background-color: var(--primary-blue);
}

/* Texture Background Utility */
.bg-texture {
    /* Isme ek halka sa pattern use kiya gaya hai */
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                      url('/IMG/bg1.jpg'); /* Aapka image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Sabhi devices ke liye fixed texture effect */
    background-attachment: fixed;
    position: relative;
}

/* Agar aap chahte hain ki texture mobile par fixed na rahe (Performance ke liye) */
@media (max-width: 991px) {
    .bg-texture {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Reference Style)
   ========================================================================== */
/* top nav sections */
.topnav {
  background-color: var(--primary-blue);
}
/* Top White Branding Section */
header {
  border-bottom: 1px solid #eee;
}

.brand-text-main {
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
}

/* Main blue Navbar */
.navbar-custom {
  background-color: var(--primary-blue);
  padding: 0;
  z-index: 1050;
}

.navbar-custom .nav-link {
  color: var(--white) !important;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1rem 1.1rem !important;
  transition: var(--transition-base);
}

/* Simple Hover Effect (Background Tint) */
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--accent-gold) !important;
}

/* White Vertical Dividers for Desktop */
@media (min-width: 992px) {
  .border-end-custom {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }
}

/* ==========================================================================
   4. DROPDOWNS (Full Width Mobile)
   ========================================================================== */

.dropdown-menu {
  background-color: var(--primary-blue);
  border-radius: 0;
  border: none;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: var(--white) !important;
  font-size: 0.85rem;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.dropdown-item:hover {
  background-color: var(--white);
  color: var(--primary-blue) !important;
  padding-left: 25px;
}

/* Toggle Hover on Desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ==========================================================================
   5. HERO & SWIPER SECTION
   ========================================================================== */
.hero-slide {
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.news-ticker {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 10;
  background: var(--white);
  border-top: 2px solid var(--accent-gold);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
  color: white;
}

.swiper-pagination-bullet-active {
  background: var(--accent-gold) !important;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991px) {

  /* Navbar Collapse Styling */
  .navbar-nav {
    text-align: center;
    background-color: var(--primary-blue);
    padding: 10px 0;
  }

  .navbar-nav .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Full-width Mobile Dropdown */
  .navbar-nav .dropdown-menu {
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    float: none;
  }

  .dropdown-item {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .display-3 {
    font-size: 2.2rem;
  }

  .hero-slide {
    height: 60vh;
  }
}

@media (max-width: 576px) {
  .brand-text-main {
    font-size: 1rem;
  }

  .navbar-brand img {
    height: 65px;
  }
}
.hero-slide .slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}
.btn-gold{
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transition: var(--transition-base);
}
.btn-gold:hover{
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}
/* about section */
/* Blue Theme Button */
.btn-primary-blue-fill {
    background-color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: var(--white);
    transition: var(--transition-base);
}

.btn-primary-blue-fill:hover {
    background-color: white;
    /* color: var(--primary-blue); */
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

/* Border sync for the about boxes */
.border-gold {
    border-color: var(--accent-gold) !important;
}

.border-primary-blue {
    border-color: var(--primary-blue) !important;
}

/* Principal Photo Artistic Tilt */
.img-frame {
    width: 200px;
    height: 220px;
    margin-bottom: 20px !important;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    /* transform: rotate(-2deg);  */
    transition: transform 0.3s ease;
}
.img-frame img {
    display: block; /* Inline whitespace hatane ke liye */
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
}

.principal-card .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Quote Icon color sync */
.text-primary-blue {
    color: var(--primary-blue) !important;
}
/* Fallback if AOS fails to initialize */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Re-enable animations only if AOS class is present on body */
.aos-init[data-aos] {
    opacity: 0;
}
.aos-animate[data-aos] {
    opacity: 1;
}
/* Modern Section Heading Styling */
.section-title-block {
    position: relative;
    overflow: hidden;
}

/* Watermark Background Text */
.back-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(30, 58, 138, 0.04); /* Very faint Blue */
    white-space: nowrap;
    letter-spacing: 10px;
    z-index: 0;
    user-select: none;
}

/* Animated Underline with Dot */
.heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
}

.line-left, .line-right {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-blue));
    flex-grow: 1;
}

.line-right {
    background: linear-gradient(to left, transparent, var(--primary-blue));
}

.line-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 10px;
    box-shadow: 0 0 10px var(--accent-gold);
}

/* Responsive adjustments for the watermark */
@media (max-width: 768px) {
    .back-text {
        font-size: 3rem;
        letter-spacing: 5px;
    }
}
/* Hero H1 size management */
.hero-title {
    font-size: 3rem; /* display-3 (4.5rem) se kam karke 3rem kiya */
    line-height: 1.1;
    letter-spacing: -1px;
}

/* For better alignment and spacing */
.hero-slide .container {
    padding-bottom: 50px; /* News ticker ke liye thodi jagah */
}

.hero-slide .lead {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Mobile Responsive adjustment */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem; /* Mobile par aur chota */
    }
    .hero-slide {
        text-align: center; /* Mobile par center alignment zyada acchi lagti hai */
    }
    .hero-slide .d-flex {
        justify-content: center;
    }
    .hero-slide .lead {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Mentor Card Grid Style */
.mentor-card {
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
}

.mentor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.15) !important;
}

.mentor-img-wrapper {
    height: 250px;
    background-color: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mentor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Images ko frame me set rakhega */
    transition: transform 0.5s ease;
}

.mentor-card:hover .mentor-img-wrapper img {
    transform: scale(1.05);
}

/* Specific styling for smaller headings in grid */
.mentor-card h6 {
    font-size: 1rem;
    line-height: 1.3;
}

/* principal massage */
/* Principal Message Specific Styles */
.principal-image-wrapper {
    z-index: 1;
}

.main-principal-img {
    position: relative;
    z-index: 2;
    border: 10px solid var(--white);
    transition: var(--transition-base);
}

.image-border-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-blue);
    border-radius: 1.5rem;
    z-index: 0;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    z-index: 3;
    min-width: 140px;
    text-align: center;
}

.message-text p {
    line-height: 1.8;
    text-align: justify;
}

/* Signature Styling */
.principal-signature {
    border-color: rgba(0,0,0,0.05) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .experience-badge {
        right: 10px;
        bottom: 10px;
    }
    .image-border-decoration {
        display: none;
    }
}
/* Department Card Styling */
.dept-card {
    transition: var(--transition-base);
    position: relative;
    top: 0;
}

.dept-card:hover {
    top: -10px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1) !important;
}

.dept-icon-box {
    width: 70px;
    height: 70px;
    transition: var(--transition-base);
}

.dept-card:hover .dept-icon-box {
    background-color: var(--primary-blue) !important;
}

.dept-card:hover .dept-icon-box i {
    color: var(--white) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}
.swiper-slide {
    display: flex;
    height: auto; /* Required for h-100 inside swiper */
}

.dept-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/* Facilities Grid Styling */
.facility-card {
    transition: var(--transition-base);
    cursor: pointer;
}

.tall-card {
    height: 520px;
}

.wide-card {
    height: 250px;
}

.square-card {
    height: 245px;
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.9) 0%, rgba(0,0,0,0) 70%);
    opacity: 1;
    transition: var(--transition-base);
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-card img {
    transition: transform 0.6s ease;
}

/* Specific styling for the Solid Color Bento Item */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .tall-card, .wide-card, .square-card {
        height: 300px;
    }
}
/* Gallery Masonry Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, var(--primary-blue));
    color: white;
    padding: 20px 15px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: bottom 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

/* For true masonry logic without JS gaps */
@media (min-width: 992px) {
    #masonry-grid {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Placement Section Styling */
.recruiter-logo {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto;
}

.recruiter-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.recruiter-slider-wrapper {
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 40px 20px;
}
/* Footer Custom Styling */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-social-link {
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.footer-social-link:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.border-warning {
    border-color: var(--accent-gold) !important;
}

/* history section css */
/* About Details Section Specifics */
#about-details .bg-primary-blue {
    background-color: #1e3a8a !important;
}

#about-details .border-start-4 {
    border-left-width: 4px !important;
}

/* Enhancing the primary text contrast */
#about-details p {
    line-height: 1.8;
}

#about-details i.gold {
    color: #f59e0b !important;
}
