/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 {
    color: #2C3E50;
}

.hero h2{
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar Styles */

header{
    position: sticky;
    top: 0;
    width: 100%;
}

nav{
    background-color: #2C3E50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
}

nav img{
    width: 55px;
}

nav ul{
    color: white;
    display: flex;
    list-style: none;
    gap: 35px;
}

nav > :nth-child(3){
    display: flex;
    flex-direction: column;
    gap: 7px;
}

nav > :nth-child(3) span{
    background-color: white;
    width: 22px;
    height: 4px;

}

nav ul li:hover{
    /* text-decoration: underline; */
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.5s ease-in-out;
    color: #2C3E50;
    background-color: #ecf0f1;
    padding: 5px;
    border-radius: 4px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

.d-block{
    display: block;
}

@media (min-width: 769px){
    nav > :nth-child(3){
        display: none;
    }

    nav{
        padding: 8px 20px;
    }

}


/* Hero Section */
.hero {
    background-image: url('herra_pic_1.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    color: white;
    text-align: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -6px;
}

.hero h2 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.5rem;
}

.cta-btn button{
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-top: 20px;
    height: 35px;
    border-width: 0;
}

.cta-btn:hover {
    background-color: #2980b9;
}

/* Carousel */
.carousel-container {
    width: 100%;              /* Set the width of the carousel */
    margin: 0 auto;          /* Center the carousel */
    overflow: hidden;        /* Hide overflow (for slides out of view) */
}

/* Carousel styles */
.carousel {
    display: flex;
    opacity: 1;           /* Display items in a row */
    transition: transform 0.5s ease; /* Smooth sliding transition */
}

/* Carousel item styles */
.carousel-item {
    min-width: 100%;         /* Each item takes up 100% of the container width */
    max-width: 100%;
}

.carousel-item img {
    width: 100%;             /* Ensure images take full width of their container */
    display: block;          /* Remove any gaps below images */
}

/* Make the carousel responsive */
@media (max-width: 768px) {
    .carousel-container {
        width: 100%;         /* Make carousel take full width on smaller screens */
    }
    .carousel-item img {
        height: auto;        /* Make images adjust height accordingly */
    }
}

@media (max-width: 480px) {
    .carousel-container {
        width: 100%;         /* Full width on very small screens */
    }
}


/* Sections */
section {
    padding: 40px 20px;
    text-align: center;
    /* margin-top: 50px; */
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

section a {
    font-size: 1.2rem;
    color: #3498db;
    text-decoration: none;
}

/* About Page */
.about-content ul {
    list-style-type: none;
    margin-top: 5px;
}

.about-content li {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #2C3E50;
    color: white;
    padding: 30px 20px;
    text-align: center;
    /* display: flex; */
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    /* display: flex; */
}

footer .footer-links ul {
    list-style: none;
}

footer .footer-links li {
    margin: 5px 0;
}

/* Contact Header */
.contact-header {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.contact-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contact Container */
.contact-container {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: #f4f4f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.cta-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #2980b9;
}

/* Contact Details */
.contact-details {
    flex: 1;
    min-width: 300px;
    background-color: #f4f4f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-details h3 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Map Section */
.map-section {
    padding: 40px 20px;
    background-color: #ecf0f1;
    text-align: center;
}

.map-section h3 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.map-container {
    /* position: relative; */
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form-container,
    .contact-details {
        min-width: 100%;
    }
}

.activities-pic{
    gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

.pic-box{
    width: 250px;
    height: 200px;
    box-shadow: 4px 4px 10px 4px;
    border-radius: 10px;
    margin-bottom: 10px;
    /* margin: 20px auto; */
    
}

.activity-pic{
    width: 100%;
    height: 100%;
}

.pic-box:hover{
    transform: scale(1.1);
    transition: transform 0.7s ease;

}


@media (min-width: 768px){
    .activities-pic{
        display: flex;
        justify-content: center;
        gap: 15px;
    }
}

.admissions-info ul{
    list-style: none;
}
.admissions-info ul li{
    margin-top: 12px;
}

.footer{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.admissions-info > :nth-child(3){
    margin-bottom: 25px;
}

aside ul{
    background-color: #2C3E50;
    color: white;
    font-family: sans-serif;
}

aside div{
    text-align: center;
}

aside div ul li{
    margin-bottom: 8px;
}

@keyframes animateBurger{
    from{

    }
    to{
        transform: translateY(20px);
        transition: all 1s ease-out;
    }
}

.animation-1{
    animation-name: animateBurger;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

aside
{
    display: none;
}

.hamburger:hover{
    cursor: pointer;
}

@media screen and (min-width:768px){
    .bg-box{
        background: url("herra_diff_pic_1.jpg") no-repeat top left;
        min-height: 463px;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
        font-size: 40px;
    }

    .bg-box h3:hover, .bg-box p:hover{
        color: rgb(149, 77, 131);
        cursor: pointer;
        transform: scale(1.2);
        transition: all 1s ease-out;
    }
}


@media screen and (max-width:768px){
    .bg-box{
        background: url("herra_diff_pic_1.jpg") top;
        min-height: 463px;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
        font-size: 32px;
    }

    .bg-box h3:hover, .bg-box p:hover{
        color: rgb(44, 150, 104);
        cursor: pointer;
        transform: scale(1.2);
        transition: all 1s ease-out;
    }
}

.bg-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.bg-box h3{
    color: white;
    font-weight: bolder;
}

.bg-box p{
    color: white;
    font-weight: bolder;
}

.hm-words{
    min-height: 200vh;
}

.founder-pic{
    width: fit-content;
    overflow: hidden;
    /* height: 250px; */
    margin: 4px auto;
}

.founder-pic img{
    width: 280px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.7s ease-in;
    
}

.founder-pic img:hover{
   transform: scale(1.1);
   cursor: ne-resize;
}


#openModal{
    display: none;
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    object-fit: cover;
  }


  @media screen and (max-width: 500px) {
    .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 25px;
        border: 1px solid #888;
        min-width: 250px;
        max-width: 300px;
        text-align: center;
        border-radius: 8px;
        background-image: url('pop_up_pic.png');
        background-size: cover;
        height: 330px;
        /* overflow-y: scroll; */
      }
  }

  @media screen and (min-width: 500px) {
    .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 25px;
        border: 1px solid #888;
        max-width: 520px;
        text-align: center;
        border-radius: 8px;
        background-image: url('pop_up_pic.png');
        background-size: cover;
        height: 110%;
      }
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .admission-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
  }

  .admission-btn:hover {
    background-color: #45a049;
  }

  h2 { color: #d32f2f; }

#popUpPic{
    width: 100%;
    height: 100%;
    margin-top: -19px;
}

.news{
    margin-top: 20px;
    color: #d32f2f;
}

.founder-info{
    border-radius: 20px;
    /* width: 300px; */
    /* height: 300px; */
    max-width: 300px;
    text-align: center;
    background-color: #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5px;
    font-family: "Bree Serif";
    color: #333;
}

.founder-pic{
    width: 80%;
    margin-top: 15px;
}


@media screen and (min-width : 300px) {
    .founder-sec{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

}

.founder-info h4{
    line-height: 1.4;
}