/* ================= ROOT & RESET ================= */
:root {
  --primary: #A71836;
  --primary-soft: rgba(167, 24, 54, 0.12);
  --dark: #1f2937;
   --bg-soft: #a718370d;
  --muted: #6b7280;
  --bg: #f4f7fb;
  --card-radius: 14px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* {
  font-family: "Inter", Arial, sans-serif;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-soft);
  
}

/* =========================
   HERO SECTION 
   ========================= */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gradient-overlay-v {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to right,
    rgba(69, 10, 10, 0.8) 0%,
    rgba(0, 0, 0, 0.75) 40%,
    rgba(69, 10, 10, 0.8) 100%
  );
    z-index: 1;
}

.z-3 { z-index: 3 !important; }

/* Typography */
.main-title {
    font-family: 'Arial', sans-serif;
    font-weight: 900;
   font-size: clamp(2.5rem, 8vw, 5rem);
        line-height: 1;
    background: linear-gradient(to bottom, #ffffff 30%, #ff1f1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -3px;
}

.main-description {
    max-width: 650px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-menu {
    background-color: transparent;
    color: #fff!important;
    border: 2px solid rgba(255, 255, 255, 0.8)!important;
    transition: all 0.4s ease-in-out!important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-menu:hover {
    background: linear-gradient(to bottom, #a71836 0%, #a71844 100%) !important;
    border-color: #a71836!important;
    color: #fff!important;
    box-shadow: 0 8px 15px rgba(230, 74, 25, 0.4);
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.con{
    padding: 10px ;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .heading{
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-align: center;
    transform-origin: center;

}
.desc{
  font-size: 20px;
  line-height: 1.7;
  max-width: 70vw;
  text-align: justify;
  margin-bottom: 50px;
}
.meet {
  position: relative;
  padding:20px 30px ;
  background: #e9e9e9;
   --b: 5px;  
  --s: 100px; 
  --g: 0px; 
  --c: var(--primary);
background-image:
    conic-gradient(from  90deg at top    var(--b) left  var(--b), #0000 25%, var(--c) 0),
    conic-gradient(from -90deg at bottom var(--b) right var(--b), #0000 25%, var(--c) 0);
  background-position:
    var(--_p, 0%) var(--_p, 0%),
    calc(100% - var(--_p, 0%)) calc(100% - var(--_p, 0%));
  background-size: var(--s) var(--s);
  background-repeat: no-repeat;
  transition: 
    background-position .3s var(--_i,.3s), 
    background-size .3s calc(.3s - var(--_i, .3s));
}
.meet:hover {
  background-size: calc(100% - var(--g)) calc(100% - var(--g));
  --_p: calc(var(--g) / 2);
  --_i: 0s;
}


  
  .faculty-grid {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
    max-width: 70vw;
    margin: 0 auto;
  }

    .faculty-card {
      /* background: url("https://paruluniversity.ac.in/wp-content/uploads/2025/10/DSC00480.jpg"); */
      border-radius: 12px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      
      /* width: 50%; */
      padding: 10px 15px ;
      display: flex;
      gap: 20px;
      align-items: center;
      transition: 0.3s;
      justify-content: space-evenly;
      opacity: 1;
      transform: translateY(15px);
      min-width: 0;
      img{
        border-radius: 12px;
        width: 200px;
        height: 250px;
        object-fit: cover;
    }
    }
    .faculty-card:hover{
      .icon{
     scale: 1.1;
      /* background-color: #ffffff; */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    }
    .faculty-details {
      display: flex;
      width: 70%;
      /* color: #fff; */
      flex-direction: column;
      justify-content: start;
      align-items: start;
      line-height: 0.6;
      min-width: 0;
      h4{
        font-size: 20px;
        text-align: center;
        margin-bottom: 5px;

      }
      .butt{
        padding: 8px 0px;
        width: fit-content;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        span{
            border-radius: 18px;
            background-color: #ffffffa2;
            color: #000;
            cursor: pointer;
            font-size: 15px;
            margin-left: 10px;
            padding: 10px 10px;
            transition: background-color 0.3s;

        }
      }
      .personal-details{
        margin-top: 10px;
        padding: 10px 0;
        font-size: 16px;
            margin-bottom: 15px;
        width: 100%;
        line-height: 1;
        text-align: justify;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        overflow-wrap: break-word;
      }
        a{
      padding: 10px 15px;
      border: 2px solid #A71836;
      width: fit-content;
      border-radius: 12px;
      background-color: rgba(207, 61, 92, 0.158);
      color: #A71836;
      text-decoration: none;
      cursor: pointer;
      font-size: 17px;
      transition:all 0.13s ease-in;  
      cursor: pointer;
      .fa-brands{
        margin-right: 8px;
      }
    }
    a:hover{
      background-color: #A71836;
      color: #fff;
      box-shadow: 0 4px 12px rgba(121, 23, 44, 0.829);
      scale:1.05;
      /* border-radius: 0; */
    }
      }
  
    .icon{
      width: 20px;
      height: 20px;
      color: var(--primary);
      margin-right: 8px;
      background-color: #ffffff65;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 15px;
    }
    
    .overlay{
      position: absolute;
      z-index: -1;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* background-color: rgba(0, 0, 0, 0.5); */
      border-radius: 12px;
      opacity: 0.6;
      transition: opacity 0.6s;
    }
    .faculty-card.show {
      opacity: 1;
      transform: translateY(0);
    }

    .faculty-card:hover {
      /* transform: translateY(-5px); */
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.404);
      
    }

          .dept-nav {
        z-index: 1000;
        top: 0;
      }
      .nav-link {
        color: var(--muted);
        border-radius: 8px !important;
        transition: all 0.3s;
      }
      .nav-link.active {
        background-color: var(--primary) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(167, 24, 54, 0.2);
      }
      .hover-up {
        transition: transform 0.3s;
      }
      .hover-up:hover {
        transform: translateY(-8px);
      }
      .gallery-img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        transition: transform 0.4s;
      }
      .gallery-img:hover {
        transform: scale(1.05);
      }
      .faculty-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 90vw;
        margin: 0 auto;
      }
      .faculty-card {
        width: 100% !important;
        max-width: none !important;
        padding: 20px !important;
      }
      .butt {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
        width: 100%;
        justify-content: flex-start;
      }
      .butt span {
        margin: 0 !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        background-color: rgba(167, 24, 54, 0.05) !important;
        color: var(--primary) !important;
        border: 1px solid rgba(167, 24, 54, 0.1) !important;
        border-radius: 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
        line-height: 1.3 !important;
        max-width: 100%;
        display: inline-block;
      }
  
/* =========================
   MOBILE IMPROVEMENTS
   ========================= */
      @media (max-width: 991px) {
        .faculty-grid {
          grid-template-columns: 1fr;
          max-width: 100%;
        }
        .faculty-card {
          flex-direction: column;
          text-align: center;
        }
        .faculty-card img {
          width: 200px !important;
          height: 250px !important;
          margin: 0 auto 20px auto;
        }
        .faculty-details {
          width: 100% !important;
          align-items: center !important;
        }
        .butt {
          justify-content: center !important;
        }
        .faculty-details h4 {
          text-align: center !important;
          width: 100%;
        }
        .personal-details {
          text-align: center !important;
        }
      }
      .tab-pane {
        animation: fadeIn 0.5s ease-in-out;
      }
      @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
      }
   @media (max-width:1024px){
   .meet{
    width:100%;
   }
   .faculty-card{
    flex-direction: column;
    width: 100%;
    padding: 10px;
    img{
      width: 100%;
    }
    .faculty-details{
      padding: 10px;
      width: 100%;
      h4{
        text-align: center;
      }
      .personal-details{
        padding-top: 10px;
      }
    }
   }
   }
   @media (max-width:768px){
   .meet{
    width:100%;
   }
   .faculty-card{
    flex-direction: column;
    width: 100%;
    padding: 10px;
    font-size: 15px;
    img{
      height: 80%;
    }
    .faculty-details{
      padding: 10px;
      width: 100%;
      h4{
        text-align: center;
      }
      .personal-details{
        font-size: 15px;
        padding-top: 10px;
      }
      .butt span{
        font-size:13px;
      }
    }
   }
   }
@media (max-width: 425px) {

    /* Hero Section */
    .hero-section {
        padding: 90px 15px 60px;
        min-height: auto;
        text-align: center;
    }

    .main-title {
        font-size: clamp(1.8rem, 9vw, 4rem);
        font-weight: 700;
        line-height: 0.95;
        letter-spacing: -1px;
        margin-bottom: 15px;
    }

    .main-description {
        font-size: 0.75rem!important;
        line-height: 1.6;
        padding: 0 10px;
        margin-bottom: 30px;
    }

     /* HERO BUTTON WRAPPER */
    .hero-section .d-flex {
        flex-direction: column;
        gap: 12px !important;
        padding: 0 12px;
    }

    /* HERO BUTTONS */
    .hero-section .btn-menu {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 14px 0;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .btn-menu {
        padding: 12px 28px!important;
        font-size: 0.75rem;
    }
    .con{
      width:100%;
      padding:10px 30px;
    }
    .desc{
      font-size:15px;
    }
    .heading{
      font-size:30px;
    }
    .faculty-grid{
      grid-template-columns: 1fr;
    }
}

@media (max-width:320px){
  .faculty-grid{
    margin-left: 0;
  }
}