*{
	margin: 0;
	padding: 0;
}
.header{
	min-height: 100vh;
	width: 100%;
	background-image: linear-gradient(rgb(4,9,30,0.7)),url(/images/gate.jpg);
	background-position: center;
	background-size: cover;
	position: relative;
}
nav{
	display: flex;
	padding: 2% 6%;
	justify-content: space-between;
	align-items: center;
}
nav img{
	width: 150px;
}
.nav-links{
	flex: 1;
	text-align: right;
}
.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;
}
.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: 90%;
	color: #fff;
	position: absolute;
	top: 50%;
	transform: (-50%,-50%);
	text-align: center;
}
.text-box h1{
	font-size: 50px;


}
.text-box p{
	margin: 10px 0 40px;
	font-size:30px ;
	color: #fff;
}
.hero-btn{
	display: inline-block;
	text-decoration: none;
	color: #fff;
	border: 1px solid #fff;
	padding: 12px 34px;
	font-size: 13px;
	background: transparent;
	position: relative;
	cursor: pointer;

}
.hero-btn:hover{
	border: 1px solid #f44336;
	background: #f44336;
	transition: 1s;

}
nav .fa{
	display: none;
}


@media(max-width: 700px){
	.text-box h1{
	font-size: 20px;

}
.nav-links ul li{
	display: block;

}
.nav-links{
	position: absolute;
	background: #f44336;
	height: 100vh;
	width: 200px;
	top: 0;
	right: -200px;
	text-align: left;
	z-index: 2;
	transition: 1s;
}


nav .fa{
	display: block;
	color: #fff;
	margin: 10px;
	font-size: 22px;
	cursor: pointer;
}
.nav-links ul{
	padding: 30px;
}
}
h1{
	font-size: 30px;
	font-weight: 600;
	text-align: center;
	padding-top: 20px;
}
.course-col{
	flex-basis: 31%;
	background: #fff3f3;
	border-radius: 10px;
	margin-bottom: 5%;
	padding: 20px 12px;
	box-sizing: border-box;
	text-align: center;
	transition: 0.5s;
	
}
p{
	color: #777;
	font-size: 14px;
	font-weight: 300px;
	line-height: 22px;
	padding: 10px;
	text-align: center;

}
.row{
	margin-top: 5%;
	display: flex;
	justify-content: space-between;


}
h3{
	text-align: center;
	font-size: 600;
	margin: 10px 0;
}
.course-col:hover{
	box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);

}
@media(max-width:700px){
	.row{
		flex-direction: column;

	}
}
.activities-col{
	flex-basis: 31%;
	border-radius: 10px;
	margin-bottom: 5%;
	text-align: left;
}
.activities-col img{
	width: 100%;
	border-radius: 10px;
}
.activities-col p{
	padding: 0;
}
.activities-col h3{
	margin-top: 16px;
	margin-bottom: 15px;
	text-align: left;
}
/*------ testimonials ------*/
.testimonials{
	width: 80%;
	margin: auto;
	padding-top: 100px;
	text-align: center;
}
.testimonial-col{
	flex-basis: 31%;
	border-radius: 10px;
	margin-bottom: 5%;
	text-align: center;
	background: #fff3f3;
	padding: 25px;
	cursor: pointer;
	display: flex;
}
.testimonial-col img{
	height: 150px;
	margin-left: 5px;
	margin-right: 30px;
}


/*----- call to acton ------*/
.call{
	background-image: linear-gradient(rgba(0, 0, 0, 0.7),rgba(0, 0, 0, 0.7)),url(/images/com.jpg);
	background-position: center;
	background-size: cover;
	border-radius: 10px;
	text-align: center;
	padding: 100px 0;
}
.call h1{
	color: #fff;
	margin-bottom: 40px;
	padding: 0;

}
@media(max-width: 700px){
	.call h1{
		font-size: 24px;
	}


}


/*----- footer ------*/
.footer{
	width: 100%;
	text-align: center;
	padding: 30px 0;
}
.footer h4{
	margin-bottom: 25px;
	margin-top: 20px;
	font-weight: 600;
}
.icons img{
	width: 3%;
	border-radius: 5px;
	height: 20px;
	margin-left: 5px;
	margin-right: 30px;
}



/*-------- about us page ----------*/
.sub-header{
	height: 50vh;
	width: 100%;
	background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(/images/view.jpg);
	background-position: center;
	background-size: cover;
	text-align: center;
	color: #fff;
}

.about-us{
	width: 80%;
	margin: auto;
	padding-top: 80px;
	padding-bottom: 50px;
}
.about-col{
	flex-basis: 48%;
	padding: 30px 2px;
}
.about-col img{
	width: 100%;
}
.about-col h1{
	padding-top: 0;

}
.about-col p{
	padding: 15px 0 25px;
}
.red-btn{
	border: 1px solid #f44336;
	background: transparent;
	color: #f44336;

}
.red-btn:hover{
	color: #fff;
}

table {
	margin: 50px 0;
	width: 50%;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;

}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    color: red;
}

th {
    background-color: red;
}

table {
    border: 2px solid #aaa; /* Style the outer table border */
}
tr:nth-child(odd) {
    background-color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: blue; /* Light green on hover */
    color: white; /* Dark green text on hover */
}
th {
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}

td {
    padding: 8px;
    text-align: left;
}
h2{
	text-align: center;
}

.menu-toggle{
	display: none; /* initially hide on larger screens */
	cursor: pointer;
	width: 15px;
	height: 25px;
	position: relative; /* for positioning the bars */
	margin-left: 5px;
}
.bar{
	display: block;
	height: 3px;
	width: 100%;
	background-color: #333; /* adjust color as needed */
	margin: 5px 0;
	transition: 0.3s; /* for smooth animation later */
}
.close-icon{
	display: none; /* initially hidden */
	cursor: pointer;
	font-size: 24px;
	font-weight: bold;
	/* add any other styling for the close icon */

}
/* media query for smaller screens(phones) */
@media(max-width:768px){
	.menu-toggle{
		display: block; /* show the hamburger menu */

	}
	.close-icon{
		display: block; /* show the close icon when the menu is open */
		position: absolute;
		top: 15px; /* adjust position as needed */
		right: 20px; /* adjust position as needed */

	}
}
/* optional: styles for when the menu is open */
.menu-open .menu-toggle .bar:nth-child(1){
	transform: translateY(10px) rotate(45deg);

}
.menu-open .menu-toggle .bar:nth-child(2){
	opacity: 0;
}
.menu-open .menu-toggle .bar:nth-child(3){
	transform: translateY(10px) rotate(-45deg);
}
.menu-open .nav-links{
	display: block !important; /* force the menu to show */

}
.menu-open .close-icon{
	display: block !important; /* ensure the close icon is visible */
}

/*--------blog-content-------*/
.blog-content{
	width: 80%;
	margin: auto;
	padding-top: 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: red;
	padding: 0;
}
.blog-right{
	flex-basis: 32%;

}
.blog-right h3{
	background: #f44336;
	color: #fff;
	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;
	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;
	
}

/*----------contact us page------*/
.location{
	width: 80%;
	margin: auto;
	padding: 80px 0;
}

.location iframe{
	width: 100%;
}

.contact-us{
	width: 80%;
	margin: auto;
}
.contact-col{
	flex-basis: 48%;
	margin-bottom: 30px;
}
.contact-col div{
	display: flex;
	align-items: center;
	margin-bottom: 40px;
}
.contact-col div p {
	padding: 0;
}

.contact-col div p 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;
}




main {
    padding: 40px 0;
}

.hero {
    background-color: red; /* Light blue-ish */
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.our-team {
    padding: 40px 0;
    text-align: center;
}

.our-team h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    background-color: floralwhite;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.team-member p {
    color: #777;
}

.our-values {
    background-color: blueviolet;
    padding: 40px 0;
}

.our-values h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.our-values ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.our-values li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.our-values li strong {
    font-weight: bold;
    color: red;
    display: block;
    margin-bottom: 5px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}







/* Main Content and Sidebar */
.blog-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Main content takes 3/4, sidebar 1/4 of the space */
    gap: 30px;
    margin-top: 30px;
}

.main-content {
    padding-right: 20px;
}

.blog-post {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-title {
    font-size: 2em;
    color: red;
    margin-bottom: 10px;
}

.post-meta {
    color: darkblue;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.moving-paragraph-container {
    overflow: hidden; /* Important for containing the movement */
}

.moving-paragraph {
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f8ff; /* Alice Blue */
    border-left: 5px solid #26a69a;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.read-more {
    display: inline-block;
    text-decoration: none;
    background-color: #26a69a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #00897b; /* Darker Teal */
}

/* Sidebar Styling */
.sidebar {
    padding-left: 20px;
}

.widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.widget h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.widget input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.widget button {
    background-color: #555;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget button:hover {
    background-color: #333;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #26a69a;
}

.social-links {
    display: flex;
    gap: 10px;
    font-size: 1.2em;
    margin-top: 10px;
}

.social-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #26a69a;
}

/* Footer Styling */
footer {
    background-color: papayawhip;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    margin-top: 40px;
}

footer .container {
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
    }

    .main-content {
        padding-right: 0;
    }

    .sidebar {
        padding-left: 0;
    }
}












/* Hero Section */
.hero {
    background-color: royalblue; /* Very light blue */
    padding: 50px 0;
    margin-top: 20px;
    border-radius: 8px;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    color: whitesmoke;
    text-align: center;
    padding-right: 20px 0;
}

/* Subjects Section */
.subjects {
    padding: 40px 0;
    text-align: center;
}

.subjects h2 {
    font-size: 2em;
    color: #3f51b5;
    margin-bottom: 30px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.subject-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.subject-card h3 {
    font-size: 1.3em;
    color: red;
    margin-bottom: 10px;
}

.moving-paragraph-container {
    overflow: hidden;
    min-height: 40px; /* Ensure consistent height for layout */
}

.moving-paragraph {
    font-size: 0.95em;
    line-height: 1.5;
    color: blueviolet;
    padding: 10px;
    background-color: #f9fbe7; /* Light yellow */
    border-left: 4px solid #ffeb3b; /* Yellow accent */
    border-radius: 3px;
    transition: transform 0.2s ease-in-out;
}

/* Learning Environment Section */
.learning-environment {
    padding: 40px 0;
    background-color: palevioletred;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;

}

.learning-environment h2 {
    font-size: 2em;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.environment-details {
    padding: 20px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.environment-details .moving-paragraph-container {
    margin-bottom: 15px;
}

.environment-details .moving-paragraph {
    background-color: #e0f2f7; /* Light cyan */
    border-left-color: #03a9f4; /* Light blue accent */
}

/* Footer Styling */
footer {
    background-color: mistyrose;
    color: red;
    text-align:center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subject-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .environment-details {
        grid-template-columns: 1fr;
    }
}














/* Gallery Section Styles */
.gallery-section {
    padding: 50px 0;
    background-color: lightgoldenrodyellow; /* Light gray background */
    text-align: center;
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-section h2 {
    font-size: 2.5em;
    color: blue;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.gallery-item {
    overflow: hidden; /* To contain image scaling on hover */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block; /* Prevent extra space below image */
}

/* Optional: Add a lightbox effect (requires JavaScript) */
/* .gallery-item a {
    display: block;
} */

/* Optional: Add captions below images */
/* .gallery-item figcaption {
    padding: 10px;
    text-align: center;
    background-color: #eee;
    color: #555;
    font-size: 0.9em;
} */

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-section {
        padding: 30px 0;
    }

    .gallery-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
}











/* Hero Slideshow Section */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: slideshow 20s infinite; /* Adjust time for more or fewer images */
}

.slideshow-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeImage 20s infinite; /* Ensure this matches slideshow duration */
}

/* Adjust animation delays based on number of images */
.slideshow-container img:nth-child(1) { animation-delay: 0s; }
.slideshow-container img:nth-child(2) { animation-delay: 5s; } /* (Total duration / num images) */
.slideshow-container img:nth-child(3) { animation-delay: 10s; }
.slideshow-container img:nth-child(4) { animation-delay: 15s; }


@keyframes fadeImage {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); } /* Image visible */
    25% { opacity: 1; transform: scale(1); } /* Hold image */
    35% { opacity: 0; transform: scale(0.95); } /* Fade out */
    100% { opacity: 0; }
}

@keyframes slideshow {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    30% { transform: translateX(-100%); } /* Shift for next image */
    50% { transform: translateX(-100%); }
    55% { transform: translateX(-200%); }
    75% { transform: translateX(-200%); }
    80% { transform: translateX(-300%); }
    100% { transform: translateX(-300%); }
}


.hero-content {
    position: relative;
    z-index: 10;
    background-color: red;
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
}

.hero-content h2 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white;
}


/* Students Activities Grid */
.students-activities {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 15px;
}

.activity-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    padding: 0 15px;
}

.activity-card p {
    padding: 0 15px;
    font-size: 0.95em;
    color: var(--dark-gray);
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    font-style: italic;
    position: relative;
}

.testimonial-card p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.testimonial-card span {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}



/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    

    .hero-content h2 {
        font-size: 2em;
    }

    .activity-grid, .testimonial-cards {
        grid-template-columns: 1fr;
    }
}
