/* Reset default styles */
body, header, nav, ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-animation {
    animation-name: spin, run, flash;
    animation-duration: 3s, 5s, 1s;
    animation-timing-function: linear, ease-in-out, linear;
    animation-delay: 0s, 0s, 2s;
    animation-iteration-count: infinite;
}

.marquee {
  position: absolute;
  white-space: nowrap;
  animation: marquee 10s linear infinite; /* Adjust the animation duration as needed */
}

/* Define the keyframes for the animation */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  
  100% {
    transform: translateX(-100%);
  }
}

/* Apply the animation only on mobile screens */
@media screen and (max-width: 600px) {
  .marquee {
    animation: marquee-mobile 6s linear infinite; /* Adjust the animation duration as needed */
  }
  
  @keyframes marquee-mobile {
    0% {
      transform: translateX(100%);
    }
    
    100% {
      transform: translateX(-100%);
    }
  }
}

/* Disable the animation on desktop screens */
@media screen and (min-width: 601px) {
  .marquee {
    animation: none;
  }
}

@keyframes flash {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        .text-flash {
            animation: flash 1s infinite;
            color: #FF0000;
        }
        
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes run {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes flash {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.header-top {
  overflow: hidden;
  position: fixed;
  background-color: ivory;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex; /* Add flex display */
  justify-content: center; /* Horizontally center the content */
  align-items: center; /* Vertically center the content */
  padding: 0;
  height: 30px;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .header-top {
    display: none;
  }
}




/* Fixed header styles */
.fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #EFF5BB;
  transition: height 0.3s ease;
  z-index: 999;
}

.content {
  margin-top: 40px; /* Adjust this value to match the height of your fixed header */
  /* Rest of your content styles */
}


@media only screen and (max-width: 768px) {
  .fixed-header h4 {
    display: none;
  }
}


.logo img {
  height: 50px;
  margin-left: 10px;
}

.heading {
  margin: auto;
  margin-left: 10px;
  color: slateblue;
  margin-top: 1px;
  margin-bottom: 0;
}

.menu-bar {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  margin: 5px 10px;
  background-color: red;
}

.menu-bar-active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-bar-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-bar-active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* New styles for left pane */
.left-pane {
  position: fixed;
  top: 60px;
  left: 0;
  width: 18%;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  padding: 20px;
  box-sizing: border-box;
}

.left-pane-active {
  display: block;
}

.left-pane ul {
  display: flex;
  flex-direction: column;
  text-align: right;
  
}

.left-pane li {
  padding: 15px;
  margin-bottom: 8px;
  border-bottom: 1px solid black;
}

.left-pane li:hover {
  background-color: #f4f6f6;
}

.left-pane li a {
  text-decoration: none;
}

.left-pane .sub-links {
  display: none;
  border-top-right-radius: 10px; /* Rounded top-right corner */
  border-bottom-right-radius: 10px; /* Rounded bottom-right corner */
}

.left-pane li:hover .sub-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 90%;
  padding: 15px;
  background-color: #FFFFFF;
}

.left-pane .sub-links a {
  display: block;
  padding-right: 16px;
  position: relative;
}

.left-pane li.has-sub-links > a::after {
  content: '\2192';
  position: relative;
  top: 50%;
  right: 0;
  margin-left: 5px;
  transform: translateY(-50%);
}

.left-pane .sub-links a::after {
  content: '';
}


.dots {
  position: fixed;
  top: 0;
  left: 20px; /* adjust this value as needed */
  width: 25px;
  height: 25vh;
  z-index: 9999;
  display: flex;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: red;
  margin-right: 4px;
}

.dots:hover ~ .left-pane {
  display: block;
}

/* Menu styles */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: lightblue;
  font-size: 17px;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2);
  z-index: 9998;
}

.menu-items {
  display: flex;
  justify-content: center;
  padding: 4px 20px;
}

.menu-items li {
  margin: 1px 0;
  position: relative;
  display: inline-block;
}

.menu-items li a {
  display: flex;
  position: relative;
  color: blue;
  text-align: left;
  padding: 5px 15px;
  text-decoration: none;
}

.menu-items li a:hover {
  background-color: yellow;
}

.has-dropdown .dropdown-arrow {
  position: absolute;
  top: 19px;
  right: 1px;
  transform: translateY(-50%) rotate(90deg);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px;
  border-color: transparent transparent transparent blue;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #00FFFF;
  border-bottom: 3px solid white;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  white-space: nowrap; /* Added property */
  overflow-x: auto; /* Added property */
 
}

.dropdown-menu li {
  display: none;
  text-align: left;
  text-decoration: none;
  padding: 12px 16px;
  
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  cursor: pointer;
  background-color: red;
}

.dropdown-menu a:hover {
  background-color: #FFFF00;
}
.dropdown-menu a {
  padding: 15px;
  border-bottom: 2px solid white;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}


.dropdown-menu-active {
  display: inline-block;
}

@media (max-width: 768px) {
  .header {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .dropdown-menu {
    position: relative;
    top: 100%;
    left: 0;
    max-width: 300px;
  

  }
}


/* Media query for small screens */
@media (max-width: 768px) {
  .fixed-header {
    flex-wrap: wrap;
    top: 25px;
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
    position: fixed;
    left: auto;
    padding: 7px;
  }

  .menu-bar {
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
    margin-right: 10px;
    
  }

  .menu {
    display: none;
    margin-top: 35px;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: ivory;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9998;
  }

  .menu-active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
  }

  .menu-items {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-items li {
    margin: 10px 0;
  }

  .menu-bar-active + .menu .dropdown-menu {
    display: none;
  }
  
  .left-pane {
   width: 50%;
   top: 87px;
  }
  
  .dots {
  position: fixed;
  top: 20px;
  left: 170px;
}

  .heading {
    margin-bottom: 0; /* Add this line to remove space after h4 */
  }
}

/* Additional styles for large screens */
@media (min-width: 769px) {
  .menu {
    position: fixed;
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .menu-items {
    justify-content: center;
  }
  
   .hh {
    font-size: 36px;
  }
}

.president-section {
  padding: 20px;
  display: flex;
  align-items: center;
}

.president-text {
  flex: 1 1 auto;
  margin-left: 20px;
  margin-right: 20px;
  text-align: justify;
}

.president-image {
  flex: 0 0 auto;
  border: 20px solid #F1C40F;
  box-shadow: 0 0 0 10px #F7DC6F inset;
  margin-left: 20px;
}

.president-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .president-section {
    flex-direction: column;
    align-items: center;
  }
  
  .president-image img {
  display: block;
  width: 100%;
  height: auto;
}

  .president-image {
    order: -1;
  }
}
.footer {
  position: relative;
  width: 100%;
  padding: 20px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.47);
  background-image: url('footerimage.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: hidden;
  box-sizing: border-box;
}

.footer ul {
  list-style-type: disc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer ul li {
  margin-bottom: 20px;
  width: 50%;
}

.footer a {
  color: #fff;
  text-decoration: none;
  opacity: 1;
  padding: 15px;
}

.footer .facebook-icon {
  position: relative;
  float: right;
  clear: both;
  width: 20px;
  height: 20px;
  background-image: url('Facebook-logo.png');
  background-size: cover;
  animation: logoAnimation 3s infinite;
}

@keyframes logoAnimation {
  0% {
    transform: translate(-10px, -10px) scale(1);
    box-shadow: 0 0 5px rgba(59, 89, 152, 0.5);
  }
  50% {
    transform: translate(-10px, -10px) scale(1.2);
    box-shadow: 0 0 10px rgba(59, 89, 152, 0.7);
  }
  100% {
    transform: translate(-10px, -10px) scale(1);
    box-shadow: 0 0 5px rgba(59, 89, 152, 0.5);
  }
}

@media (max-width: 600px) {
  .footer ul li {
    width: 100%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .footer ul {
    flex-direction: column;
  }
}

.content {
  display: flex;
  flex-wrap: wrap;
  padding: 2px;
}

.content .photo,
.content .text {
  width: 33.33%;
  padding: 10px;
  text-align: justify;
  box-sizing: border-box;
  border: 15px solid #ADBBC9; /* Add a border to the photo and text boxes */
}

.content .photo {
  background-image: url('backimage3.jpg');
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
}

.content .photo img {
  max-width: calc(100% - 30px); /* Subtract the total padding (15px on each side) from the max-width */
  max-height: calc(100% - 30px); /* Subtract the total padding (15px on each side) from the max-height */
  height: auto;
  display: block;
}
.content .text {
  background-image: url('vidya-back.jpg');
  color: white;
}
.vidya  {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
}
.vidya .text1 {
  width: 50%;
  padding: 10px;
  text-align: justify;
  box-sizing: border-box;
  border: 15px solid #ADBBC9; /* Add a border to the photo and text boxes */
}
.vidya .text1 {
  background-color: ivory;
  color: blue;
}

@media screen and (max-width: 768px) {
  .vidya .text1 {
    width: 100%;
    display: block;
    padding: 10px;
    text-align: justify;
    box-sizing: border-box;
    
  }
}

@media (max-width: 768px) {
  .content {
    margin-top: 57px;
  }

  .content .photo,
  .content .text {
    width: 100%;
  }
}


  box-sizing: border-box;
}

/* Create three equal columns that floats next to each other */
.column {
  flex: 1;
  min-width: 0;
  padding-left: 15px;
  margin: 0;
  height: auto; /* Should be removed. Only for demonstration */
  text-decoration: none;
}
  .links {
    display: flex;
    padding: 19px;
    margin: 5px;
    background-color: lightblue;
    text-decoration: none;
}

.row {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create three equal columns that are displayed in a single row on desktop view */
@media screen and (min-width: 600px) {
  .row {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
  }

  .column {
    flex: 1;
    min-width: 0;
    padding-left: 15px;
    margin: 0;
    height: auto; /* Should be removed. Only for demonstration */
  }
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other on small screens */
@media screen and (max-width: 600px) {
  .row {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  
  .column {
    border: 1px solid black;
    margin: 0 10px;
  }
}

.links {
    display: flex;
    padding: 19px;
    margin: 5px;
    background-color: lightblue;
    text-decoration: none;
}

.principal-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2px;
}

.principal-photo {
  flex: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-image: url('texture.jpg');
  border: 15px solid #ADBBC9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principal-photo img {
  width: 60%;
  max-height: 350px;
  border-radius: 10px;
  margin-top: 1px;
}

.principal-message {
  flex: 100%;
  box-sizing: border-box;
  border: 15px solid #ADBBC9;
  padding: 10px;
  text-align: justify;
  padding: 20px;
}

@media (max-width: 768px) {
  .principal-section {
    flex-wrap: wrap;
  }

  .principal-photo,
  .principal-message {
    width: 50%;
    height: auto;
    padding-right: 5px;
  }
}

.principal-message h3,
.principal-message p {
  margin: 0;
}


.principal-message p {
  animation: typing-animation 5s steps(40,end) forwards;
  overflow: hidden;
}

@keyframes typing-animation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
  
@media (min-width: 1200px) {
  .principal-section {
    display: flex;
    align-items: center;
  }
}
  .principal-photo {
    flex: 0 0 calc(50% - 30px);
  }

  .principal-message {
    flex: 0 0 calc(50% - 30px);
  }
  .form-label {
  font-weight: bold;
}

.form-input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.form-button {
  padding: 10px 20px;
  background-color: #337ab7;
  color: #fff;
  border: none;
  border-radius: 3px;
}

/* category styles */
.category-section {
  background-color: #370548;
  background-size: cover;
  padding: 50px;
  color: white;
  width: 100%;
  height: auto;
  border: 20px solid #12A0CA;
  box-shadow: 0 0 0 10px #12A0CA inset !important;
  z-index: 1;
}

.category-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 20px;
}

.category-column {
  display: flex;
  flex-direction: column;
}

  .category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }

.category-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.category-links li {
  margin-bottom: 20px;
}

.category-links a {
  color: white;
  text-decoration: none;
  padding: 30px;
  display: inline;
}

/* Mobile view styles */
@media screen and (max-width: 768px) {
  .category-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .category-column:not(:last-child) {
    margin-bottom: 20px;
  }

  .category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
  }

.category-heading::after {
  content: '+';
  margin-left: 5px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.category-heading.active::after {
  content: '-';
  margin-left: 5px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}


  .category-column {
    display: block;
  }

  .category-column:not(:last-child) {
    border-bottom: 1px solid white;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .category-links {
  height: 0;
  padding: 1px;
  justify-content: space-between;
  margin: 0;
  opacity: 0;
  display: block;
  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

  .category-links.active {
  height: auto;
  opacity: 1;
  visibility: visible;
  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
}
/* Desktop view styles */
@media screen and (min-width: 769px) {
  .category-links {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .category-links {
    display: none;
  }

  .category-section .grid:nth-child(5) {
    display: flex;
    justify-content: flex-end;
  }
}

.flag {
  position: relative;
  display: inline-block;
}

.flag::before {
  content: 'NEW';
  position: absolute;
  top: -8px; /* Adjust this value to position the flag */
  left: 4px; /* Adjust this value to position the flag */
  padding: 2px 6px; /* Adjust this value to change the flag size */
  background-color: #f00; /* Replace with your desired flag background color */
  color: #fff; /* Replace with your desired flag text color */
  font-weight: bold;
  animation: flagAnimation 1s infinite;
}

@keyframes flagAnimation {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}


.highlight {
  background-color: yellow;
  font-weight: bold;
}


