/*endregion  */
/* .index--section {
  width: 100%;
  position: relative;
  z-index: 1;
} */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* HERO SECTION */


/* =========================
   HERO CONTAINER
========================= */
/* .hero-container{
  margin-top:60px;
  width:100%;
  height:90vh;
  padding:80px 8% 40px;
  position:relative; 

  background:
  linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)),
  url('/images/rmmcnewimage.webp');

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  display:flex;
  flex-direction:column;
  justify-content:center;
} */

.hero-container{
  margin-top:60px;
  width:100%;
  height:85vh;
  padding:80px 8% 40px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

/* .hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.4);
  z-index:1;
} */

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.2)
  );
}


/* =========================
   HERO CONTENT (LEFT)
========================= */
/* .hero-content{
  max-width:650px;
  color:white;
  z-index:2;
  animation:heroFadeUp 1s ease forwards;
}

@keyframes heroFadeUp{
  from{opacity:0; transform:translateY(40px);}
  to{opacity:1; transform:translateY(0);}
} */

.hero-content{
  position:absolute;
  top:45%;
  left:8%;
  transform:translateY(-50%);
  color:white;
  max-width:650px;
  animation:heroFade 1s ease forwards;
}

@keyframes heroFade{
  from{
    opacity:0;
    transform:translate(-30px,-50%);
  }
  to{
    opacity:1;
    transform:translate(0,-50%);
  }
}

.hero-title{
  font-size:50px;
  font-weight:700;
  /* line-height:1.2; */
  margin-bottom:15px;
}

.hero-subtitle{
  font-size:20px;
  line-height:1.6;
  margin-bottom:30px;
}

.hero-buttons{
  display:flex;
  gap:15px;
  /* flex-wrap:wrap; */
}

.hero-btn{
  padding:12px 28px;
  border-radius:6px;
  font-weight:600;
  text-decoration:none;
  transition:0.3s;
}

.hero-btn.primary{
  background:#1556b8;
  color:white;
}

.hero-btn.primary:hover{
  background:white;
  color:#0b2c5f;
}

.hero-btn.secondary{
  border:2px solid white;
  color:white;
}

.hero-btn.secondary:hover{
  background:white;
  color:#0b2c5f;
}

/* =========================
   HERO STATS
========================= */
/* .hero-stats{
  margin-top:40px;
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.stat-card{
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,0.15);
  border-radius:10px;
  padding:12px 18px;
  color:white;
  text-align:center;
  min-width:110px;
} */

.hero-stats{
  position:absolute;
  bottom:20px;
  left:8%;
  display:flex;
  gap:15px;
  z-index:2;
}

.stat-card{
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,0.12);
  border-radius:8px;
  padding:10px 14px;
  color:white;
  min-width:100px;
  text-align:center;
  transition:transform 0.3s, background 0.3s;
}

.stat-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,0.22);
}

.stat-card h3{
  font-size:20px;
  font-weight:700;
  margin-bottom:4px;
}

.stat-card p{
  font-size:11px;
  margin:0;
  text-transform:uppercase;
  letter-spacing:0.5px;
}



/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

/* Tablets */
@media (max-width:1024px){

  .hero-container{
    min-height:65vh;
  }

  .hero-title{
    font-size:40px;
  }

  .hero-subtitle{
    font-size:18px;
  }

  .hero-content{
    left:5%;
    max-width:550px;
  }

  .hero-btn{
    padding:10px 22px;
  }

  .hero-stats{
    gap:12px;
  }

  .stat-card{
    min-width:90px;
    padding:8px 12px;
  }

  .stat-card h3{
    font-size:18px;
  }

  .stat-card p{
    font-size:10px;
  }

}


/* Small Tablets / Large Phones */
@media (max-width:768px){

  .hero-container{
    min-height:60vh;
  }

  .hero-title{
    font-size:32px;
  }

  .hero-subtitle{
    font-size:16px;
  }

  .hero-content{
    left:5%;
    max-width:90%;
    top:40%;
  }

  .hero-buttons{
    flex-direction:column;
    gap:10px;
  }

  .hero-stats{
    bottom:15px;
  }

  .stat-card{
    min-width:80px;
    padding:6px 10px;
  }

  .stat-card h3{
    font-size:16px;
  }

  .stat-card p{
    font-size:9px;
  }

}


/* Phones */
@media (max-width:480px){

  .hero-container{
    min-height:50vh;
  }

  .hero-title{
    font-size:24px;
    margin-top:20px;
  }

  .hero-subtitle{
    font-size:14px;
  }

  .hero-content{
    top:35%;
    left:5%;
  }

  .hero-buttons{
    flex-direction:column;
    gap:8px;
  }

  .hero-btn{
    font-size:14px;
    padding:8px 16px;
    width:60%;
  }

  .hero-stats{
    bottom:10px;
    gap:8px;
    left:5%;
  }

  .stat-card{
    min-width:70px;
    padding:5px 8px;
  }

  .stat-card h3{
    font-size:14px;
  }

  .stat-card p{
    font-size:8px;
  }

}

/* =========================
   HERO NEWS (RIGHT SIDE FIXED)
========================= */
.hero-news{
  position:absolute !important;
  top:20% !important;
  left:45% !important;
  padding:20px;
  border:2px solid rgba(255,255,255,0.3);

  width:900px !important;
  height:600px !important;

  border-radius:20px;
  /* overflow:hidden; */
  z-index:5;


}

/* SWIPER FIX */
.hero-news,
.hero-news .swiper,
.hero-news .swiper-wrapper,
.hero-news .swiper-slide{
  width:100%;
  height:100% ;
}

/* IMAGE */
.news-image{
  width:100%;
  height:100% !important;
  object-fit:cover;
  display:block;
}

/* OVERLAY TEXT INSIDE IMAGE */
.news-content{
  position:absolute;
  inset:0;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  padding:30px;
  color:#fff;

  background:linear-gradient(
    to top,
    rgba(0,0,0,0.90),
    rgba(0,0,0,0.40),
    transparent
  );
}

.news-badge{
  position:absolute;
  top:30px;
  left:30px;  
  background:#f59e0b;
  color:#111;
  font-size:18px;
  font-weight:700;
  padding:10px 15px;
  border-radius:20px;
  width:max-content;
  margin-bottom:10px;
}

.news-content h3{
  font-size:1.8rem;
  font-weight:700;
  margin:500px 0 10px;
  display:inline-block;
}


.news-btn{
  display:inline-block;
  padding:12px 18px;
  background:#f59e0b;
  color:#111;
  font-weight:700;
  border-radius:10px;
  text-decoration:none;
  width:max-content;
  transition:0.3s;
}

.news-btn:hover{
  background:#ffb020;
  transform:translateY(-3px);
}



/* mvc - section */
.mvc-section{
    padding:30px 5%;
    /* background:#f4f7ff; */
    background: #f9fafc;

    text-align:left;
}

.mvc-section h2{
    font-size:38px;
    color:#0b3d91;
    margin-bottom:30px;
    text-align:center;
}

/* Grid */
.mvc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:30px;
}

/* Card */
.mvc-card{
    background:white;
    padding:40px 30px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,0.06);
    transition:0.4s ease;
}

.mvc-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.core-box {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #004080;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  line-height: 35px;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  margin: 3px 0;
}
.mvc-card p{
    text-align: justify;   /* ✅ This justifies the paragraph */
}

.mvc-card h3{
    color:#0b3d91;
    margin-bottom:15px;
    font-size:22px;
}

.mvc-card p{
    color:#555;
    line-height:1.8;
    font-size:16px;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media (max-width:414px){

/* CARD */
.mvc-section{
  top: 0%;
}
.mvc-card{
  padding:10px 20px;
  /* border-radius:16px; */
}

/* TITLE */

.mvc-card h3{
  font-size:19px;
  margin-bottom:12px;
}

/* PARAGRAPH */

.mvc-card p{
  font-size:14px;
  line-height:1.7;
}

/* CORE VALUE BOX */

.core-box{
  width:30px;
  height:30px;
  line-height:30px;
  font-size:0.95rem;
  margin-right:10px;
}

}


/* quality policy */
/* SECTION */
.quality-policy{
  padding: 10px 20px;
  /* background: linear-gradient(135deg,#f5f7fb,#eef2f9); */
  /* background:#f4f7ff; */
  background: #f9fafc;
  font-family: 'Poppins', sans-serif;
}

/* CONTAINER */
.policy-container{
  max-width: 1200px;
  margin:auto;
  text-align:center;
}

/* TITLE */
.policy-title{
  font-size: 40px;
  font-weight: 700;
  color:#1e3a8a;
  margin-bottom:30px;
}

/* INTRO */
.policy-intro{
  max-width:1100px;
  margin:auto;
  font-size:18px;
  line-height:1.6;
  color:#444;
  margin-bottom:20px;
}

/* COMMITMENT TITLE */
.commit-title{
  font-size:26px;
  font-weight:600;
  margin-bottom:20px;
  color:#111;
}

/* GRID */
.policy-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
}

/* CARD */
.policy-card{
  background:white;
  padding:30px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:left;
  transition:0.3s;
  position:relative;
}

.policy-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* NUMBER BADGE */
.policy-number{
  width:45px;
  height:45px;
  border-radius:50%;
  background:#2563eb;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  margin-bottom:15px;
}

/* TEXT */
.policy-card p{
  color:#555;
  line-height:1.6;
  font-size:15px;
  text-align: justify;
}

/* FOOTER TEXT */
.policy-footer{
  margin-top:30px;
  font-size:18px;
  color:#666;
  max-width:750px;
  margin-left:auto;
  margin-right:auto;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media (max-width:414px){

/* SECTION */
.quality-policy{
  padding:40px 18px;
}

/* TITLE */
.policy-title{
  font-size:28px;
  margin-bottom:15px;
}

/* INTRO TEXT */
.policy-intro{
  font-size:15px;
  line-height:1.6;
  margin-bottom:25px;
  text-align:justify;
}

/* COMMITMENT TITLE */
.commit-title{
  font-size:20px;
  margin-bottom:25px;
}

/* GRID → STACK CARDS */
.policy-grid{
  grid-template-columns:1fr;
  gap:18px;
}

/* CARD */
.policy-card{
  padding:22px;
  border-radius:12px;
}

/* NUMBER BADGE */
.policy-number{
  width:38px;
  height:38px;
  font-size:14px;
}

/* CARD TEXT */
.policy-card p{
  font-size:14px;
  line-height:1.6;
}

/* FOOTER */
.policy-footer{
  font-size:15px;
  margin-top:35px;
}

}

@media (max-width:768px){
  .policy-grid{
    grid-template-columns:repeat(1,1fr);
  }
  .policy-intro, .policy-footer{
  font-size:16px;
  line-height:1.6;
  /* margin-bottom:20px; */
  padding: 0 20px;
  text-align:justify;
}
}


/* 🌟 Academic Programs Section */
.academic-program {
  padding: 30px 20px;
  background: #f9fafc;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

/* Title and Description */
.acads_title-box h2 {
  font-size: 40px;
  font-weight: 700;
  color:#1e3a8a;
  margin-bottom:20px;
}


.acads_title-box p {
  color: #555;
  font-size: 18px;
  margin-bottom: 40px;
}

/* ✅ Grid layout: 4 columns on desktop, 2 on tablet, 1 on mobile */
.acads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* ✅ College Card */
.program {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}


.program .logo {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: linear-gradient(135deg, #126ef7 0%, #3a8ef8 100%);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(18, 110, 247, 0.3);
}


/* ✅ Text Container */
.inner-program {
  padding: 20px;
}

.inner-program h3 {
  color: #004080;
  font-size: 1.5rem;
  margin-bottom: 6px;
  font-weight: bold;
}

.inner-program span {
  display: block;
  font-size: 0.95rem;
  color: #555;
}

/* ✅ Links */
.inner-links {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ✅ Responsive behavior */
/* TABLETS */
@media (max-width: 900px){

.acads-grid{
  grid-template-columns: repeat(1,1fr);
  gap:20px;
}

.acads_title-box h2{
  font-size:32px;
}

.acads_title-box p{
  font-size:16px;
}

.program{
  max-width:100%;
}

}

/* PHONES */
@media (max-width:414px){

.academic-program{
  padding:40px 18px;
}

/* TITLE */

.acads_title-box h2{
  font-size:28px;
  margin-bottom:15px;
}

/* DESCRIPTION */

.acads_title-box p{
  font-size:15px;
  margin-bottom:30px;
}

/* GRID */

.acads-grid{
  grid-template-columns:1fr;
  gap:18px;
}

/* CARD */

.program{
  max-width:100%;
}

/* LOGO */

.program .logo{
  height:150px;
  padding:15px;
}

/* TEXT */

.inner-program{
  padding:18px;
}

.inner-program h3{
  font-size:1.3rem;
}

.inner-program span{
  font-size:0.9rem;
}

}



/* 🌟 News Section */
.news-section {
  padding: 30px 20px;
  background: #f9fafc;
  font-family: 'Arial', sans-serif;
}

.news-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 🌟 Header */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 3px solid #003366;
  padding-bottom: 10px;
}

.news-header h2 {
  font-size: 2.2rem;
  color: #003366;
  font-weight: 700;
  text-transform: uppercase;
}

.news-header h2 span {
  color: #007bff;
  font-weight: 500;
}

.news-header .view-all {
  font-size: 1rem;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.news-header .view-all:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 🌟 Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* 🌟 Individual News Card */
.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 🌟 Image */
.news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

/* 🌟 Content */
.news-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2a66;
  margin-bottom: 8px;
  border-left: 5px solid #007bff;
  padding-left: 8px;
  word-break: break-word; /* prevents overflow if very long word */
}

.news-title:hover {
  color: #007bff;
}

/* 🌟 Read More Button */
.news-btn {
  margin-top: auto;
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: background 0.3s ease, transform 0.2s ease;
}

.news-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* 🌟 No News Message */
.no-news {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-top: 40px;
}


.media-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.news-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* 🌟 Responsive Tweaks */
/* 📱 TABLET */
@media (max-width:900px){

.news-header{
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.news-header h2{
  font-size:1.8rem;
}

.news-header .view-all{
  font-size:0.95rem;
}

.news-image{
  height:200px;
}

.news-image img{
  height:200px;
}

}

/* 📱 PHONES */
@media (max-width:414px){

.news-section{
  padding:40px 18px;
}

/* HEADER */

.news-header{
  gap:8px;
}

.news-header h2{
  font-size:1.5rem;
}

.news-header .view-all{
  font-size:0.9rem;
}

/* GRID */

.news-grid{
  gap:18px;
}

/* CARD */

.news-card{
  border-radius:14px;
}

/* IMAGE */

.news-image{
  height:180px;
}

.news-image img{
  height:180px;
}

/* CONTENT */

.news-info{
  padding:14px;
}

.news-date{
  font-size:0.8rem;
}

.news-title{
  font-size:0.95rem;
}

/* BUTTON */

.news-btn{
  padding:8px 16px;
  font-size:0.9rem;
}

}

