* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/newback.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-section img {
    width: 100px;
    height: auto;
}

.logo-section p {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000000;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none;
}

.text-box {
    width: 90%;
    color:#cbbd1b;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 20px 0 40px;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

.movingTextWrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.movingText {
    display: inline-block;
    padding-left: 100%; /* Push text out initially */
    white-space: nowrap;
    font-size: 20px;
    color: #ffcc00;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px #000;
    animation: moveText 15s linear infinite;
}

@keyframes moveText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}


.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 1s;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
}

/* Responsive CSS */
@media(max-width: 700px) {
    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.5s;
    }

    .nav-links ul {
        padding: 30px;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .text-box {
        width: 100%;
        padding: 0 15px;
    }

    .text-box h1 {
        font-size: 24px;
    }

    .text-box p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .logo-section {
        align-items: flex-start;
        padding-left: 10px;
        margin-top: 5px;
    }

    .logo-section img {
        width: 80px;
    }

    .logo-section p {
        font-size: 10px;
    }
}


/*---------- course --------*/

.course {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: #555;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    padding: 8px 0;
    text-align: left;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.course-col {
    flex: 1 1 calc(33.33% - 20px);
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 20px;
    box-sizing: border-box;
    transition: 0.5s;
    text-align: left;
    min-width: 250px;
}

.course-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
    font-size: 20px;
}

.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

.course-col ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.course-col li {
    margin-bottom: 8px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #333;
}

/* Tablet View */
@media (max-width: 1024px) {
    .course-col {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile View */
@media (max-width: 700px) {
    .row {
        flex-direction: column;
    }

    .course-col {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 28px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .course {
        padding-top: 60px;
    }
}



/*---------------- campus ----------------*/

.campus {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.campus-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.campus-col {
    flex: 1 1 calc(33.33% - 20px);
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.campus-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(226, 0, 0, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
    text-align: center;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* Tablet View */
@media (max-width: 1024px) {
    .campus-col {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile View */
@media (max-width: 700px) {
    .campus-row {
        flex-direction: column;
    }

    .campus-col {
        flex: 1 1 100%;
    }

    .layer h3 {
        font-size: 22px;
    }
}


/*-------------- Facilities ----------------*/

.facility {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facility-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.facility-col {
    flex: 1 1 calc(33.33% - 20px);
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: left;
    min-width: 250px;
}

.facility-col img {
    width: 100%;
    border-radius: 10px;
    height: auto;
    display: block;
}

.facility-col p {
    padding: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.facility-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
}

/* Tablet View */
@media (max-width: 1024px) {
    .facility-col {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile View */
@media (max-width: 700px) {
    .facility-row {
        flex-direction: column;
    }

    .facility-col {
        flex: 1 1 100%;
    }

    .facility-col h3 {
        font-size: 18px;
    }

    .facility-col p {
        font-size: 14px;
    }
}


/*---------------- testimonials ------------------*/




/*-------- Call To Action ----------*/


.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/collegenewp5.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #fff;
    margin-bottom: 40px; 
    padding: 0; 
}

@media(max-width:700px){
    .cta h1{
        font-size: 24px;
    }
}

/*--------------Footer---------------*/
.footer {
    width: 100%;
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

.footer h4 {
    font-weight: 600;
    font-size: 22px;
    color: #222;
    margin-bottom: 20px;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
    margin: 0 auto 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
}

.footer-contact li {
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-icons a {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons .fb { color: #3b5998; }
.social-icons .yt { color: #FF0000; }
.social-icons .insta { color: #E1306C; }

.footer-copy {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .footer h4 {
        font-size: 20px;
    }

    .footer-contact,
    .footer-copy {
        font-size: 13px;
        padding: 0 10px;
    }

    .social-icons a {
        font-size: 18px;
    }
}




/*--------------- About Us Page --------------*/


.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/collegenewp5.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-header h1 {
    margin: 0;
    font-size: 3vw;
}

.about-us {
    width: 90%;
    margin: auto;
    padding: 60px 0;
}

.about-col {
    flex-basis: 48%;
    padding: 30px 2px;
}

.about-col h1 {
    padding-top: 0;
}

.about-col p {
    padding: 15px 0 25px;
}

.hero-btn.red-btn {
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.hero-btn.red-btn:hover {
    background: #f44336;
    color: #fff;
}

.hero-btn.red-btn::after,
.hero-btn.red-btn::before {
    background: #f44336;
}

.content-image {
    flex-basis: 50%;
}

.about-col img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-section {
    width: 90%;
    margin: 60px auto;
    text-align: center;
    padding: 20px;
}

.gallery-section h2 {
    font-size: 30px;
    color: #222;
    margin-bottom: 10px;
}

.gallery-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.image-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
}

/* Message Section */
.message-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.message-card {
    position: relative;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    line-height: 1.6;
    font-size: 16px;
    max-width: 700px;
    width: 100%;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Top-right image */
.top-right-image {
    float: right;
    width: 150px;
    margin-left: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Signature styling */
.message-card .signature {
    margin-top: 20px;
    font-style: italic;
    text-align: left;
    font-weight: 500;
}

/* Typography */
.message-card h2 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
}

.message-card h4 {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
}

.message-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ✅ Responsive CSS */
@media (max-width: 768px) {
    .sub-header {
        height: 40vh;
    }

    .sub-header h1 {
        font-size: 24px;
        padding: 0 10px;
    }

    .top-right-image {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        width: 80%;
    }

    .message-card {
        font-size: 15px;
        padding: 15px;
    }

    .about-us {
        width: 95%;
        padding: 40px 0;
    }
   


    .about-col {
        flex-basis: 100%;
    }

    .gallery-section h2 {
        font-size: 24px;
    }

    .gallery-section p {
        font-size: 14px;
    }
}


/*-------about us-contribution section--------*/

/* Contribution Section Styling */
.contribution-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

/* Row setup for Flexbox */
.contribution-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

/* Individual message/contribution card */
.message-card-col {
  flex: 1 1 45%;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease;
}

/* Card hover effect */
.message-card-col:hover {
  transform: translateY(-5px);
}

/* Responsive image styling */
.top-right-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  float: right;
  margin-left: 15px;
  border-radius: 50%;
  border: 3px solid #ccc;
}

/* Typography */
.message-card-col h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.message-card-col h4 {
  font-size: 18px;
  color: #34495e;
  margin-bottom: 15px;
}

.message-card-col h5 {
  margin-top: 20px;
  font-size: 17px;
  color: #2e7d32;
}

.message-card-col p,
.message-card-col ul {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Bullet points styling */
.message-card-col ul {
  padding-left: 20px;
  margin-top: 10px;
}

.message-card-col ul li {
  margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .message-card-col {
    flex: 1 1 100%;
  }

  .top-right-image {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
  }

  .message-card-col h2,
  .message-card-col h4 {
    text-align: center;
  }
}


/*---------- Blog Page -------------*/

.blog-content{
    width: 80%;
    margin: auto;
    padding: 60px 0;
}
.blog-left{
    flex-basis: 65%;
}
.blog-right{
    flex-basis: 32%;
}
.blog-left img{
    width: 100%;
}
.blog-left h2{
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}
.blog-left p{
    color: #999;
    padding: 0;
}

.blog-right h3{
    background: #f44336;
    color: #fff;
    padding: 7px 0;
    font-size: 16px;
    margin-bottom: 20px;
}
.blog-right div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    padding: 8px;
    box-sizing: border-box;
}

.comment-box{
    border: 1px solid #ccc;
    margin: 50px 0;
    padding: 10px 20px;
}

.comment-box h3{
    text-align: left;
}
.comment-form input, .comment-form textarea{
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f0f0f0;
}
.comment-form button{
    margin: 10px 0;
}


@media (max-width:700px){
    .sub-header h1{
        font-size: 24px;
    }
} 


/*------- Contact Us Page ------------*/

/* Location Section */
.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.location iframe {
  width: 100%;
}

/* Contact Section */
.contact-us {
  width: 80%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.contact-col {
  flex: 1 1 48%;
  min-width: 280px;
  margin-bottom: 30px;
}

.contact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.contact-col div .fa {
  font-size: 28px;
  color: #f44336;
  margin: 10px;
  margin-right: 30px;
}

.contact-col div p {
  padding: 0;
}

.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 400;
}

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
}

.footer-link {
  text-decoration: none;
  color: #777;
}

/* Faculty Section */
.faculty {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.faculty h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.faculty > p {
  color: #555;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.faculty-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.faculty-col {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.faculty-col:hover {
  transform: translateY(-8px);
}

.faculty-col img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.faculty-col h3 {
  margin-bottom: 8px;
  color: #222;
  font-size: 20px;
}

.faculty-col p {
  color: #666;
  font-size: 15px;
  text-align: center;
  margin: 0;
}

/* Responsive Queries */
@media (max-width: 768px) {
  .contact-us {
    flex-direction: column;
    gap: 0;
  }

  .contact-col {
    flex: 1 1 100%;
  }

  .faculty h1 {
    font-size: 28px;
  }

  .faculty > p {
    font-size: 16px;
  }

  .faculty-col {
    width: 100%;
    max-width: 90%;
    margin: auto;
  }

  .location {
    width: 90%;
    padding: 40px 0;
  }
}


/*      video      */
.video-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.video-container {
  flex: 1 1 45%;
  min-width: 300px;
}

.video-container iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.video-description {
  flex: 1 1 45%;
  min-width: 300px;
}

.video-description h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #222;
}

.video-description p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Small screen responsive styles */
@media (max-width: 768px) {
  .video-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-description h2 {
    font-size: 24px;
  }

  .video-description p {
    font-size: 15px;
  }

  .video-container iframe {
    height: 250px;
  }
}

