*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.header{
    min-height: 85vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/bg.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    
}
nav{
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* Make index page navigation match sub-header pages */
.header nav{
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.header nav .logo{
    margin-left: 6%;
}

.header .nav-links{
    margin-right: 0;
    padding-right: 0;
}

.header .nav-links ul li:last-child{
    margin-right: 0;
    padding-right: 0;
}

.header .nav-links ul{
    margin-right: 0;
    padding-right: 0;
}
nav img{
    width: 100px;
}
.nav-links{
    flex: 1;
    text-align: right;
    z-index: 1001;
    position: relative;
}
.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;
    cursor: pointer;
    display: block;
    padding: 8px 12px;
}
.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%;
}
.text-box{
    width: 100%;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    padding-top: 80px;
    z-index: 1;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #ffffff;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    margin: 0 auto;
    max-width: 800px;
}

@media(max-width: 700px) {
    .button-container {
        padding: 15px;
        gap: 10px;
    }
    
    .hero-btn {
        padding: 12px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

.hero-btn{
    color: #ffffff;
    display: inline-block;
    text-decoration: none;
    background: #17a2b8;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.hero-btn:hover{
    transform: translateY(-3px);
    background: #138496;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
    color: #ffffff;
}
.admission-btn{
    color: #ffffff;
    display: inline-block;
    text-decoration: none;
    background: #28a745;
    border: none;
    border-radius: 30px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
}

.admission-btn:hover{
    transform: translateY(-4px);
    background: #218838;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

nav .fa{
    display: none;
}


@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
    }
    .nav-links ul li{
        display: block;
        margin: 20px 0;
        width: 100%;
    }
    
    .nav-links ul li a{
        color: #ffffff !important;
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 10px 20px;
        box-sizing: border-box;
    }
    .nav-links{
        position: fixed;
        background: rgba(0,0,0,0.9);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
        border-radius: 0 0 0 20px;
        overflow-y: auto;
    }
    nav .fa{
        display: block;
        color: #ffffff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
        background: rgba(0,0,0,0.8);
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    nav .fa:hover{
        background: rgba(0,0,0,1);
        transform: scale(1.1);
    }
    .nav-links ul{
        padding: 20px 0;
        margin: 0;
        width: 100%;
    }
}

/*---- course -----*/

.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 20px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.edu{
    text-align: left;
    color: #777;
    font-size: 14px;
    padding: 0px 0px 0px 60px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: #ffffff;
    border: 0.5px solid gray;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.course-col:hover{
    background-color:#fff3f3 ;
    color: blue;
    box-shadow: 0 0 20px 0px blueviolet;
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

/*---- branches ------*/

.branches{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.branches-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.branches-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(226,0,0,0.7);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #ffffff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/*---- facilities -----*/

.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.facilities-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.facilities-col img{
    width: 100%;
    border-radius: 10px;
}
.facilities-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/*---- testimonials -----*/

.testimonials{
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}
.testimonials-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonials-col .fas{
    color: #f44336;
}
.testimonials-col .far{
    color: #f44336;
}
@media(max-width: 700px){
    .testimonials-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*---- 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));
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #ffffff;
    margin-bottom: 40px;
    padding: 0;
}
@media(max-width: 700px){
    .cta h1{
        font-size: 24px;
    }
}

/*---- footer -----*/

.footer{
    width: 100%;
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    position: relative;
}

.footer::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
}

/* Remove top line for other pages */
.footer.no-top-line::before{
    display: none;
}
.footer h5{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 400;
    color: #ffffff;
}

.footer p{
    color: #bdc3c7;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.icons .fab{
    color: #ffffff;
    margin: 0 15px;
    cursor: pointer;
    padding: 15px;
    font-size: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icons .fab:hover{
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.fa-heart{
    color: #f44336;
}

/*---- about us page -----*/
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
    text-align: justify;
}
.about-col{
    flex-basis: 48%;
    padding: 20px;
    box-sizing: border-box;
}
.about-col img{
    width: 100%;
    padding: 10px;
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px;
    line-height: 1.6;
}

.about-col .hero-btn{
    margin-top: 20px;
    display: inline-block;
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover{
    color: #ffffff;
}

/*--------blog-content------*/

.blog-content{
    width: 80%;
    margin: auto;
    padding: 60px 0;
}
.blog-left{
    flex-basis: 65%;
}
.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{
    flex-basis: 32%;
}
.blog-right h3{
    background: #f44336;
    color: #ffffff;
    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{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}
.location iframe{
    width: 100%;
}
.contact-us{
    width: 100%;
    margin: auto;
}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
    padding: 10px 10px 10px 10px;
}
.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.contact-col div .fas, .far{
    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;
    box-sizing: border-box;
}

/*--------Enhanced Sub-header Styling------*/
.sub-header{
    min-height: 25vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/bg.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.sub-header h1{
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.sub-header p{
    font-size: 16px;
    color: #ffffff;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

/*--------Sub-header Navigation Styling------*/
.sub-header nav{
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.sub-header .nav-links{
    flex: 1;
    text-align: right;
    z-index: 1001;
    position: relative;
}

.sub-header .nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.sub-header .nav-links ul li a{
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    display: block;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.sub-header .nav-links ul li a:hover{
    color: #0ba6ff !important;
}

.sub-header .nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #0ba6ff;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.sub-header .nav-links ul li:hover::after{
    width: 100%;
}

.sub-header .logo{
    width: 100px;
    margin-left: 6%;
}

.sub-header .nav-links{
    margin-right: 0;
    padding-right: 0;
}

.sub-header .nav-links ul{
    margin-right: 0;
    padding-right: 0;
}

/*--------Enhanced About Section------*/
.about-us{
    width: 80%;
    margin: auto;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-col{
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.about-col:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.about-col span{
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px 0;
}

.about-col p{
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.about-col ul{
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 15px 0;
    border-left: 4px solid #005253;
}

.about-col ul li{
    margin: 10px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.about-col ul li strong{
    color: #005253;
    font-weight: 600;
}

.about-col div{
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #005253;
    transition: all 0.3s ease;
}

.about-col div:hover{
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-col div p{
    margin: 10px 0;
    font-size: 15px;
}

.about-col div p strong{
    color: #005253;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.about-col .hero-btn{
    margin-top: 30px;
    display: inline-block;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    border: none;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,82,83,0.2);
}

.about-col .hero-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,82,83,0.3);
    background: linear-gradient(135deg, #0ba6ff 0%, #005253 100%);
}

/*--------Enhanced Course Section------*/
.course{
    width: 80%;
    margin: auto;
    padding: 40px 0;
    background: #ffffff;
}

.course h2{
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.course h2::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    border-radius: 2px;
}

.course-col{
    flex-basis: 31%;
    background: #ffffff;
    border: none;
    border-radius: 15px;
    margin-bottom: 3%;
    padding: 25px 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.course-col:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.course-col h3{
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0;
    color: #005253;
}

.course-col p{
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course hr{
    border: none;
    height: 2px;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    margin: 30px auto;
    width: 100px;
    border-radius: 1px;
}

/*--------Enhanced Facilities Section------*/
.facilities{
    width: 80%;
    margin: auto;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.facility-section {
    margin-bottom: 60px;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.facility-section h2 {
    font-size: 32px;
    color: #005253;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
}

.facility-section .section-desc {
    text-align: center;
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.facilities-col{
    flex-basis: 31%;
    border-radius: 15px;
    margin-bottom: 5%;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #ffffff;
}

.facilities-col:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.facilities-col img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.facilities-col:hover img{
    transform: scale(1.05);
}

.facilities-col h3 {
    color: #005253;
    font-size: 20px;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.facilities-col p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 15px 20px;
    margin: 0;
}

/*--------Enhanced Admission Content Section------*/
.admission-content{
    width: 80%;
    margin: auto;
    padding: 60px 0;
    background: #ffffff;
    text-align: center;
}

.admission-content h2{
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.admission-content h2::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    border-radius: 2px;
}

.admission-content p{
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/*--------Enhanced Contact Section------*/
.contact.us{
    width: 80%;
    margin: auto;
    padding: 80px 0;
    background: #ffffff;
}

.contact-col{
    flex-basis: 48%;
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-col:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-col h3{
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #005253;
    text-align: center;
}

.contact-col div{
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
}

.contact-col div:hover{
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-col div .fas, .contact-col div .far{
    font-size: 32px;
    color: #005253;
    margin-right: 20px;
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-col div h5{
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.contact-col div h5 a{
    color: #005253;
    transition: color 0.3s ease;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline-block;
    max-width: 100%;
}

.contact-col div h5 a:hover{
    color: #0ba6ff;
}

.contact-col div p{
    color: #666;
    font-size: 14px;
    margin: 0;
}

.contact-col form{
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    outline: none;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-col input:focus, .contact-col textarea:focus{
    border-color: #005253;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 82, 83, 0.1);
}

/* Specific styling for email input to prevent overflow */
.contact-col input[type="email"]{
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-col button{
    background: linear-gradient(135deg, #005253 0%, #0ba6ff 100%);
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-col button:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 82, 83, 0.3);
}

/*--------Animations------*/
@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------Responsive Design for Enhanced Sections------*/
@media(max-width: 700px){
    .sub-header h1{
        font-size: 28px;
    }
    
    .sub-header p{
        font-size: 14px;
    }
    
    .sub-header .nav-links{
        position: fixed;
        background: rgba(0,0,0,0.9);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
        border-radius: 0 0 0 20px;
        overflow-y: auto;
    }
    
    .sub-header .nav-links ul li{
        display: block;
        margin: 20px 0;
        width: 100%;
    }
    
    .sub-header .nav-links ul li a{
        color: #ffffff !important;
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 10px 20px;
        box-sizing: border-box;
    }
    
    .sub-header nav .fa{
        display: block;
        color: #ffffff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
        background: rgba(0,0,0,0.8);
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .sub-header nav .fa:hover{
        background: rgba(0,0,0,1);
        transform: scale(1.1);
    }
    
    .sub-header .nav-links ul{
        padding: 20px 0;
        margin: 0;
        width: 100%;
    }
    
    .about-col, .contact-col{
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .course-col, .facilities-col{
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .course h2, .about-col h1{
        font-size: 28px;
    }
    
    .contact-col{
        padding: 25px 20px;
    }
    
    .contact-col div h5 a{
        font-size: 14px;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .admission-content h2{
        font-size: 28px;
    }
    
    .admission-content p{
        font-size: 16px;
        padding: 0 20px;
    }
}

/* Responsive Design for Live Updates */
@media(max-width: 900px){
    .update-item{
        flex-direction: column;
        text-align: center;
    }
    
    .update-image{
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .updates-placeholder{
        grid-template-columns: 1fr;
    }
}

@media(max-width: 700px){
    .live-updates .container{
        width: 90%;
    }
    
    .update-item{
        padding: 20px;
    }
    
    .updates-header h2{
        font-size: 28px;
    }
    
    .update-text h3{
        font-size: 20px;
    }
}

/*--------Live Updates Section------*/
.live-updates{
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    z-index: 1;
}

.live-updates .container{
    width: 80%;
    margin: auto;
}

.updates-header h2{
    font-size: 36px;
    margin-bottom: 40px;
}

.updates-content{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.update-item{
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.update-item:hover{
    transform: translateY(-5px);
}

.update-image{
    flex: 0 0 400px;
}

.update-text{
    flex: 1;
}

.update-text h3{
    font-size: 24px;
    margin-bottom: 15px;
}

.update-text p{
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.update-meta{
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.updates-placeholder{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.placeholder-item{
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.placeholder-item h4{
    font-size: 20px;
    margin-bottom: 15px;
}

.placeholder-item p{
    color: #666;
    font-style: italic;
}

/* Upcoming Events stacked posters */
.upcoming-events-stack{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upcoming-events-stack img{
    width: 100%;
    max-width: 450px;
    height: auto;            /* keep full image without cropping */
    object-fit: contain;     /* ensure no part is cut on any screen */
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media(max-width: 700px){
    .upcoming-events-stack img{
        max-width: 100%;     /* use full mobile width, maintain aspect ratio */
    }
}

/*--------Founder Section------*/
.founder-section{
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333333;
    position: relative;
    z-index: 1;
}

.founder-section .container{
    width: 80%;
    margin: auto;
}

.founder-header h2{
    font-size: 36px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.founder-content{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admission-banner{
    text-align: center;
    margin-bottom: 20px;
}

.admission-banner marquee{
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.admission-banner marquee:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.founder-profile{
    display: flex;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.founder-profile:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.founder-image{
    flex: 0 0 300px;
    text-align: center;
}

.founder-img{
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #e9ecef;
}

.founder-img:hover{
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.founder-info{
    flex: 1;
    text-align: left;
}

.founder-name{
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    color: #005253;
    margin-bottom: 15px;
    text-shadow: none;
    font-weight: bold;
}

.founder-title{
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    color: #c70039;
    margin-bottom: 10px;
    text-shadow: none;
}

.founder-institution{
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    color: #c70039;
    margin-bottom: 20px;
    text-shadow: none;
}

.founder-description p{
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    text-shadow: none;
    font-style: italic;
}

/* Course Details Styling */
.course-details {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.course-content {
    max-width: 1000px;
    margin: 0 auto;
}

.course-program {
    margin-bottom: 60px;
}

.course-program:last-child {
    margin-bottom: 0;
}

.course-program h2 {
    color: #005253;
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.course-intro, .course-methodology {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.eligibility-section, .objectives-section, .highlights-section {
    margin: 30px 0;
}

.eligibility-section h3, .objectives-section h3, .highlights-section h3, .specialized-course h3 {
    color: #c70039;
    font-size: 24px;
    margin-bottom: 20px;
}

.content-list {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #005253;
    margin: 0;
}

.content-list p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    padding: 0;
    font-size: 15px;
}

.content-list p:first-child {
    margin-top: 0;
}

.content-list p:last-child {
    margin-bottom: 0;
}

.specialized-course {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #005253;
}

.specialized-course p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    .course-details {
        padding: 20px;
    }

    .course-program h2 {
        font-size: 28px;
    }

    .specialized-course {
        padding: 20px;
    }
}

/* Library Details Styling */
.library-details {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.library-content {
    max-width: 1000px;
    margin: 0 auto;
}

.library-content h2 {
    color: #005253;
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.library-intro {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.features-section {
    margin: 30px 0;
}

.features-section h3 {
    color: #c70039;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #005253;
}

.feature-item h4 {
    color: #005253;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.vision, .mission {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #005253;
}

.vision h3, .mission h3 {
    color: #c70039;
    font-size: 22px;
    margin-bottom: 15px;
}

.vision p, .mission p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

@media(max-width: 768px) {
    .library-details {
        padding: 20px;
    }

    .vision-mission {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

/* Staff Grid Styling */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* Fixed 4 columns */
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
    max-width: 1200px;  /* Maximum width to ensure proper sizing */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive handling for smaller screens */
@media(max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablets */
    }
}

@media(max-width: 600px) {
    .staff-grid {
        grid-template-columns: 1fr;  /* 1 column on mobile */
    }
}

.staff-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.staff-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;  /* This ensures the top (head) is always visible */
    border-bottom: 3px solid #005253;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border-bottom: 3px solid #005253;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-info {
    padding: 20px;
    text-align: center;
}

.staff-name {
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    color: #005253;
    margin-bottom: 5px;
    font-weight: 600;
}

.staff-qualification {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.staff-designation {
    color: #c70039;
    font-size: 16px;
    font-weight: 500;
}

@media(max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .staff-img {
        height: 250px;
    }

    .staff-info {
        padding: 15px;
    }

    .staff-name {
        font-size: 18px;
    }
}

/* Gallery Section Styles */
.gallery-section {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
}

.event-details {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.event-details h2 {
    color: #005253;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.event-meta p {
    color: #c70039;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta i {
    color: #005253;
}

.event-description {
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

.event-highlights {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid #005253;
}

.event-highlights h3 {
    color: #c70039;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.event-highlights ul {
    list-style: none;
    padding: 0;
}

.event-highlights li {
    margin: 15px 0;
    color: #555;
    text-align: left;
    padding-left: 15px;
}

.highlight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #005253;
    font-weight: 500;
}

.highlight-desc {
    padding-left: 34px;
    line-height: 1.6;
}

/* Inline images under Spiritual Gatherings */
.highlight-images{
    display: flex;
    gap: 12px;
    padding-left: 34px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Simple Highlight Slider (shows 3 items at once on desktop) */
.highlight-slider{ position: relative; padding-left: 34px; margin-top: 12px; }
.hs-viewport{ overflow: hidden; }
.hs-track{ display: flex; gap: 12px; transition: transform 0.3s ease; }
.hs-item{ flex: 0 0 calc((100% - 24px) / 3); }
.hs-item img{ width: 100%; height: 160px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.hs-arrow{ position: absolute; top: 50%; transform: translateY(-50%); background: #005253; color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.hs-prev{ left: 0; }
.hs-next{ right: 0; }

@media(max-width: 700px){
    .highlight-slider{ padding-left: 30px; }
    .hs-item{ flex: 0 0 calc((100% - 12px) / 2); }
    .hs-item img{ height: 140px; }
}

.highlight-images img{
    width: 240px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}

.highlight-images img:hover{
    transform: scale(1.02);
}

@media(max-width: 700px) {
    .event-details {
        padding: 15px;
    }
    
    .event-highlights {
        margin: 15px 0;
    }
    
    .highlight-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .highlight-title i {
        font-size: 14px;
        min-width: 20px;
    }
    
    .highlight-desc {
        padding-left: 30px;
        line-height: 1.4;
        font-size: 14px;
    }
    .highlight-images{ padding-left: 15px; gap: 10px; }
    .highlight-images img{ width: 100%; height: auto; max-width: 100%; }
}

.event-highlights li strong {
    white-space: nowrap;
    display: inline-block;
    margin-right: 5px;
}

.event-highlights li i {
    flex-shrink: 0;
}

.event-highlights i {
    color: #005253;
    font-size: 18px;
    margin-top: 3px;
}

.gratitude-message {
    background: #fff3cd;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid #ffeaa7;
}

.gratitude-message h3 {
    color: #c70039;
    font-size: 24px;
    margin-bottom: 15px;
}

.upcoming-events{
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.upcoming-events h3{
    color: #005253;
    margin-bottom: 10px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media(max-width: 768px) {
    .gallery-section {
        width: 90%;
        padding: 10px;
    }

    .event-details {
        padding: 20px;
    }

    .event-details h2 {
        font-size: 24px;
    }

    .event-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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

    .gallery-item img {
        height: 250px;
    }
}

/* Responsive Design for Founder Section */
@media(max-width: 900px){
    .founder-profile{
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .founder-image{
        flex: none;
    }
    
    .founder-info{
        text-align: center;
    }
}

@media(max-width: 700px){
    .founder-section .container{
        width: 90%;
    }
    
    .founder-profile{
        padding: 25px;
    }
    
    .founder-header h2{
        font-size: 28px;
    }
    
    .founder-name{
        font-size: 24px;
    }
    
    .founder-title, .founder-institution{
        font-size: 18px;
    }
    
    .founder-img{
        max-width: 250px;
    }
}
