/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation Bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
}

#logo img {
  margin-right: 10px;
}

.links {
  display: flex;
  align-items: center;
}

#hamburger {
  display: none;
}

label[for="hamburger"] {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #2c3e50;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

nav ul li a i {
  margin-right: 8px;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #3498db;
}

nav ul li a.active {
  color: #3498db;
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1;
  min-width: 180px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  padding: 0.5rem 0;
  display: block;
  white-space: nowrap;
}

/* Hero Section */
.orange-card {
  height: 10px;
  background-color: #e74c3c;
  margin-top: 70px;
}

.card {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.shared-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5%;
  color: white;
}

hr {
  border: none;
  height: 2px;
  background-color: #3498db;
  margin: 0;
}

/* Features Section */
/* Features Section - Colorful with Circular Icons */
.section {
  padding: 2rem 5%;
  background-color: #fff;
}

.fea-hd {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fea-txt {
  font-size: 35px;
  text-align: center;
  color: black;
  background-color: rgb(114, 175, 200);
  text-decoration: underline;
  padding: 10px 30px;
  border-radius: 0px 30px 0px 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  padding-bottom: 15px;
  gap: 15px;
}

.card-f1, .card-f2, .card-f3 {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: calc(20% - 30px);
  min-width: 200px;
  height: 220px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-f1 {
  background-color: rgb(142, 214, 233);
}

.card-f2 {
  background-color: rgb(226, 226, 133);
}

.card-f3 {
  background-color: rgb(229, 118, 234);
}

.card-f1 h2, .card-f2 h2, .card-f3 h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 4;
}

/* Hover Effects */
.card-f1:hover, .card-f2:hover, .card-f3:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Circular Icon Backgrounds */
.card-f1::before, .card-f2::before, .card-f3::before {
  content: "";
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.card-f1:hover::before, .card-f2:hover::before, .card-f3:hover::before {
  transform: scale(1.05);
}

/* Icons */
.card-f1::after, .card-f2::after, .card-f3::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
  transition: all 0.3s ease;
}

.card-f1:hover::after, .card-f2:hover::after, .card-f3:hover::after {
  transform: scale(1.1);
}

/* Individual Card Customizations */
.card-1::before {
  background-color: rgb(252, 212, 219);
}
.card-1::after {
  width: 120px;
  height: 120px;
  background-image: url('coverage/folder.png');
}

.card-2::before {
  background-color: rgb(181, 221, 231);
}
.card-2::after {
  width: 120px;
  height: 120px;
  background-image: url('coverage/teacher.png');
}

.card-3::before {
  background-color: rgb(233, 226, 147);
}
.card-3::after {
  width: 115px;
  height: 120px;
  background-image: url('coverage/file.png');
}

.card-4::before {
  background-color: rgb(160, 233, 147);
}
.card-4::after {
  width: 110px;
  height: 110px;
  background-image: url('coverage/graphic.png');
}

.card-5::before {
  background-color: rgb(167, 147, 233);
}
.card-5::after {
  width: 110px;
  height: 110px;
  background-image: url('coverage/data.png');
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .card-f1, .card-f2, .card-f3 {
    width: calc(25% - 20px);
  }
}

@media (max-width: 992px) {
  .card-f1, .card-f2, .card-f3 {
    width: calc(33% - 20px);
  }
}

@media (max-width: 768px) {
  .fea-txt {
    font-size: 28px;
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .card-f1, .card-f2, .card-f3 {
    width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .fea-txt {
    font-size: 24px;
    padding: 8px 20px;
  }
  
  .card-f1, .card-f2, .card-f3 {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  
  .card-f1::before, .card-f2::before, .card-f3::before {
    width: 140px;
    height: 140px;
  }
  
  .card-f1::after, .card-f2::after, .card-f3::after {
    width: 100px;
    height: 100px;
  }
}

/* About Section */
.container {
  padding: 4rem 5%;
  background-color: #f8f9fa;
}

.conhead {
  text-align: center;
  margin-bottom: 2rem;
}

.cn-head {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

.cn-head::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #3498db;
  border-radius: 2px;
}

.con-hed {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Updates Section */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  background-color: #fff;
}

.update, .resource {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.up-head, .re-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.up-head h2, .re-head h2 {
  color: #2c3e50;
  font-size: 1.8rem;
}

.alarm-icon {
  font-size: 1.5rem;
  color: #e74c3c;
}

.re-head img {
  height: 30px;
}

hr {
  margin: 1rem 0;
  background-color: #ddd;
  height: 1px;
}

.up-sec {
  height: 200px;
  overflow: hidden;
}

.marquee {
  animation: marquee 15s linear infinite;
  white-space: nowrap;
  font-weight: 500;
  color: #e74c3c;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.re-sec {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.re-sec1, .re-sec2 {
  flex: 1;
  min-width: 150px;
}

.re-sec li {
  list-style-type: none;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.re-sec li::before {
  content: '•';
  color: #3498db;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 3rem 5%;
  text-align: center;
}

.foot-head {
  margin-bottom: 2rem;
}

.foot-hd {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.foot-hd img {
  height: 40px;
  margin-right: 10px;
}

.foot-text {
  font-size: 1.8rem;
  font-weight: 600;
}

.foot-sec {
  color: #bdc3c7;
  font-size: 0.9rem;
}

.foot-icon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.foot-sec1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ecf0f1;
}

.visitor-counter {
  background-color: #34495e;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

#counter {
  font-weight: 600;
  color: #3498db;
  font-size: 1.2rem;
}

.visitor-counter a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.visitor-counter a:hover {
  color: #2980b9;
}

/* Responsive Design */
@media (max-width: 992px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  label[for="hamburger"] {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s;
  }

  #hamburger:checked ~ ul {
    left: 0;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    width: 100%;
    text-align: center;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  #hamburger:checked ~ ul .dropdown-menu {
    display: block;
  }

  .card {
    height: 50vh;
  }
}

@media (max-width: 576px) {
  .features {
    grid-template-columns: 1fr;
  }

  .news {
    grid-template-columns: 1fr;
  }

  .foot-icon {
    flex-direction: column;
    gap: 1rem;
  }

  .card-f1, .card-f2, .card-f3 {
    height: 150px;
  }

  .fea-txt, .cn-head {
    font-size: 2rem;
  }
}