/* Hero Banner */
.hero {
    background: #ffffff; /* Keep background white */
    height: 130px; /* Further reduce height */
    display: flex;
    align-items: center;
    padding: 0 30px; /* Reduce padding */
    border-bottom: 2px solid #ddd; /* Subtle border for separation */
    position: relative;
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* School Logo */
.hero .logo {
    width: 90px; /* Slightly smaller for better alignment */
    height: auto;
}

.cisce-logo {
    width: 120px;
    height: auto;
}

/* Hero Text */
.hero .text {
    flex-grow: 1;
    text-align: center;
}

.hero .text h1 {
    font-size: 50px; /* Slightly reduced font for better balance */
    font-weight: bold;
    color: #003366;
    margin: 0;
}

.hero .text p {
    font-size: 20px; /* Reduce subtitle size slightly */
    color: #666;
    margin: 2px 0 0; /* Adjust margin for spacing */
}

/* Sticky Navigation Bar */
.hero nav {
    width: 100%;
    background: #003366;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: fixed; /* Makes it stick to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays above other content */
    transition: background 0.3s ease-in-out;
}

/* Add space below hero section so content isn't hidden */
body {
    padding-top: 60px; /* Adjust this if the navbar overlaps content */
}

/* General Text Styles */
body {
    font-size: 16px; /* Base font size */
    line-height: 1.6; /* Better spacing */
    font-family: Arial, sans-serif; /* Ensures good readability */
}

/* Headings */
h1 {
    font-size: 36px;
    font-weight: bold;
    color: #003366;
}

h2 {
    font-size: 30px;
    font-weight: bold;
    color: #003366;
}

h3 {
    font-size: 24px;
    color: #003366;
}

/* Paragraphs */
p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* Mobile-Specific Font Scaling */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller text for mobile */
        line-height: 1.5;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }
}



/* Navigation Links */
.hero nav a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 17px; /* Slightly smaller for better fit */
    font-weight: 500;
}

.hero nav a:hover {
    background: rgba(255, 255, 255, 0.2); /* Soft hover effect */
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero .logo {
        width: 80px; /* Adjust logo size for smaller screens */
        margin-bottom: 10px;
    }
    .hero .text h1 {
        font-size: 40px; /* Reduce title size for mobile */
    }
    .hero .text p {
        font-size: 18px;
    }
    .hero nav {
        position: static;
        padding: 10px;
        flex-wrap: wrap;
    }
    .hero nav a {
        padding: 8px 15px;
        font-size: 16px;
    }

    .cisce-logo {
        width: 120px;
        margin-left: 10px;
        margin-top: 10px;
    }
}

/* Carousel Section */
.carousel {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

/* Ensure only one image is visible at a time */
.carousel-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Each slide takes the full width of the container */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Ensure images fill their respective slides */
.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Core Values Section */
.core-values {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa; /* Light gray background */
}

.core-values h2 {
    font-size: 32px;
    color: #003366;
    margin-bottom: 20px;
    position: relative;
}

.values-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.value-card {
    background: #2980b9; /* Blue background */
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.value-card img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 16px;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* School Introduction Section */
.school-intro {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
}

/* Flexbox for text and image layout */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Styling for text block */
.intro-text {
    flex: 1;
    text-align: center;
}

.intro-text h2 {
    font-size: 36px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.underline {
    width: 50px;
    height: 4px;
    background-color: #008000;
    margin: 10px 0 20px;
    border-radius: 2px;
}

.intro-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Image styling */
.intro-image {
    flex: 1;
    text-align: right;
}

.intro-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px; /* Slight rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        text-align: center;
    }

    .intro-image img {
        max-width: 100%;
    }
}
/* Help Section */
.help-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.help-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

/* Image Styling */
.help-image {
    flex: 1;
}

.help-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Text Box */
.help-text {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.help-text h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 10px;
}

.help-text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

/* Button Styling */
.btn {
    background: #d9534f; /* Red button */
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}

.btn:hover {
    background: #c9302c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-container {
        flex-direction: column;
        text-align: center;
    }

    .help-text {
        padding: 20px;
    }
}

/* Child's Journey Section */
.child-journey {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section Heading */
.child-journey h2 {
    font-size: 32px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Underline Design */
.underline {
    width: 50px;
    height: 4px;
    background-color: #008000;
    margin: 10px auto 20px;
    border-radius: 2px;
}

/* Section Introduction Text */
.child-journey p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

/* Journey Container */
.journey-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* Centers all elements consistently */
}

/* Each Journey Item */
.journey-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures alignment */
    gap: 20px;
    width: 100%;
    max-width: 900px;
    text-align: left;
    flex-direction: row !important; /* Ensures consistent layout */
}

/* Remove Alternating Layout */
.journey-item:nth-child(even),
.journey-item:nth-child(odd) {
    flex-direction: row !important; /* Forces all elements to be left-right */
}

/* Image Styling */
.journey-item img {
    width: 40%; /* Adjusted to maintain proportional alignment */
    max-width: 250px; /* Prevents images from stretching */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Text Block */
.journey-text {
    width: 55%;
    text-align: left;
}

/* Headings and Paragraphs */
.journey-text h3 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 10px;
    text-align: left;
}

.journey-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

/* 🔽 Mobile Optimization */
@media (max-width: 768px) {
    .journey-item {
        flex-direction: column !important; /* Stack items on mobile */
        text-align: center;
        max-width: 80%;
    }

    .journey-item img {
        width: 80%; /* Adjust image size for mobile */
        max-width: 100%;
    }

    .journey-text {
        width: 90%;
        text-align: center;
    }

    .journey-text h3, 
    .journey-text p {
        text-align: center;
    }
}


/* Social Media Section */
.social-media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
    background-color: #f8f9fa;
    max-width: 1100px;
    margin: 0 auto;
}

.social-text {
    flex: 1;
    text-align: left;
    padding-right: 30px;
}

.social-text h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 10px;
}

.social-text p {
    font-size: 18px;
    color: #555;
}

/* Social Container */
.social-container {
    display: flex;
    gap: 15px;
    flex: 2;
}

/* Social Tiles */
.social-tile {
    position: relative;
    width: 150px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.social-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Overlay Effect */
.social-tile .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px;
    transition: height 0.3s ease-in-out;
}

.social-tile .overlay p {
    font-size: 16px;
    margin: 0;
    color: white;
}

.social-tile .overlay img {
    width: 24px;
    height: 24px;
}

/* Hover Effects */
.social-tile:hover img {
    transform: scale(1.1);
}

.social-tile:hover .overlay {
    height: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-media {
        flex-direction: column;
        text-align: center;
    }

    .social-text {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .social-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-tile {
        width: 120px;
        height: 150px;
    }
}

/* Call to Action Section */
.cta-section {
    background-color: #0073a8; /* Blue Background */
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* CTA Heading & Text */
.cta-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Button Container */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* CTA Button */
.btn-primary {
    background: #d9534f;
    color: white;
    border: 2px solid #d9534f;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    display: inline-block; /* Ensures button takes only necessary width */
    width: auto; /* Prevents full-width issue */
    max-width: 250px; /* Limits button width */
    text-align: center;
}

/* Button Hover */
.btn-primary:hover {
    background: #c9302c;
}

/* 🔽 Mobile Optimization */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 15px; /* Reduce padding */
    }

    .cta-section h2 {
        font-size: 24px; /* Reduce heading size */
    }

    .cta-section p {
        font-size: 16px; /* Reduce text size */
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
    }

    .btn-primary {
        width: 80%; /* Makes it properly responsive */
        max-width: 250px; /* Prevents it from getting too large */
        font-size: 16px;
        padding: 10px 18px; /* Adjusts padding */
    }
}


/* News & Events Section */
.news-events {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    max-width: 1100px;
    margin: 0 auto;
}

.news-events h2 {
    font-size: 32px;
    color: #003366;
    margin-bottom: 10px;
}

.news-events p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* News Container */
.news-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.news-content .date {
    font-size: 14px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

/* Read More Link */
.read-more {
    display: inline-block;
    color: #0073a8;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Hover Effect */
.news-card:hover {
    transform: translateY(-5px);
}

/* View All Button */
.view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: #0073a8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.view-all:hover {
    background: #005f87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        align-items: center;
    }

    .news-card {
        width: 90%;
    }
}
/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 32px;
    color: #003366;
    margin-bottom: 10px;
}

.testimonials p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* Testimonial Container */
.testimonial-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 32px;
    color: #003366;
    margin-bottom: 10px;
}

.testimonials p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* Testimonial Container */
.testimonial-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonial Cards */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align content properly */
    min-height: 250px; /* Ensure uniform height */
}

/* Profile Image */
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 16px;
    color: #333;
    font-style: italic;
    margin-bottom: auto; /* Push text to take up space */
    min-height: 80px; /* Set a fixed height to align text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Name & Designation */
.testimonial-card h3 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 5px;
}

.testimonial-card span {
    font-size: 14px;
    color: #888;
}

/* Hover Effect */
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 90%;
    }
}

/* Footer Section */
.footer {
    background-color: #003366;
    color: white;
    padding: 40px 20px;
}

.footer h3, 
.footer h4, 
.footer p, 
.footer a, 
.footer strong {
    color: white !important;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allows content to wrap on smaller screens */
}

/* Footer Branding (Left Section) */
.footer-brand {
    flex: 1;
    text-align: left;
}

.footer-brand img {
    width: 100px;
    margin-bottom: 10px;
}

.footer-brand h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 14px;
    color: #ddd;
}

/* Quick Links (Middle Section) */
.footer-links {
    flex: 1;
    text-align: center;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

/* Contact Details (Right Section) */
.footer-contact {
    flex: 1;
    text-align: right;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Social Icons */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin-right: 10px;
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #555;
}

.footer-bottom p {
    font-size: 14px;
    color: #ddd;
}

/* 🔽 Mobile Optimization */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-contact p {
        font-size: 14px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
    }
}


/* Floating Contact Us Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #d9534f; /* Red Button */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
    z-index: 1000; /* Ensures it stays above other content */
}

/* Hover Effect */
.floating-contact:hover {
    background: #c9302c;
    transform: scale(1.1);
}

/* Responsive Fix */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 10000; /* Ensure it's above all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Prevents content from touching screen edges */
}

/* Popup Content */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image inside the Popup */
.popup-content img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Adjust width */
    max-height: 400px; /* Prevents oversized popups */
    border-radius: 10px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: black;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Close Button Hover */
.close-btn:hover {
    color: red;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .popup {
        padding: 10px;
    }

    .popup-content {
        width: 90%;
        max-width: 320px;
        max-height: 80vh; /* Prevents overflow on small screens */
        padding: 15px;
    }

    .popup-content img {
        max-width: 280px;
        max-height: 280px;
    }

    .close-btn {
        top: 5px;
        right: 5px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}

/* News Ticker Styles */
/* News Ticker Section */
.news-ticker {
    background-color: #003366;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid #0073a8;
    border-bottom: 2px solid #0073a8;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 500;
    position: relative;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scrollTicker 30s linear infinite;
    padding-left: 100%; /* Start from right */
}

/* Pause animation on hover */
.ticker-wrapper:hover .ticker {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

