/********** Template CSS **********/
:root {
    --primary: #FD5D14;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

/* Responsive logo styling (preserves original sizing) */
.responsive-logo {
    height: 130px;
    width: auto;
    max-height: 200px;
}

/* Navbar link spacing for better mobile experience */
.navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* Adjust brand image sizing on mobile devices */
.navbar-brand img {
    height: auto;
    max-width: 50%;
}



.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

/* CSS */


.stats-section-container {
    max-width: 960px;
    /* Adjust according to your layout preference */
    margin: 0 auto;
    /* Center align the container */
    padding: 20px;
    /* Adds padding for spacing */
    text-align: center;
    /* Aligns the text to the center */
}

.stats-section-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.stats-section {
    display: flex;
    justify-content: space-around;
    /* Adjusted for equal spacing */
    flex-wrap: wrap;
    /* Allows items to wrap on smaller screens */
    padding: 0 10px;
}

.stat {
    flex-basis: 18%;
    /* Adjusted width for each stat */
    margin: 5px 10px;
    /* Space between stats */
    text-align: center;
    /* Centering text inside each stat block */
}

.stat h1 {
    font-size: 2rem;
    /* Larger font size for numbers */
}

.stat p {
    font-size: 1rem;
    /* Standard text size for descriptions */
}

.news-card.video-card iframe {
    width: 100%;
    /* Ensures the iframe takes the full width of the card */
    height: 200px;
    /* Fixed height for the video */
    border: none;
    /* Removes border around the iframe */
}
/* General styles for the news-section */
.news-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Adjust spacing between cards */
}

.news-card {
    flex: 1 0 100%;
    /* Make each card take full width on small screens */
    margin: 15px;
    /* Spacing between cards */
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .news-card {
        flex: 1 0 calc(50% - 30px);
        /* two cards per row on medium devices, minus margin */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .news-card {
        flex: 1 0 calc(33.333% - 30px);
        /* three cards per row on large devices, minus margin */
    }
}

/* Extra styling for iframe responsiveness */
iframe {
    width: 100%;
    /* Ensures iframe takes full width of the card */
    height: 240px;
    /* Fixed height for consistency */
}

/* Ensure text and other elements are responsive within the card */
.news-card .p-4 {
    padding: 20px;
    /* Consistent padding */
}

.news-card h4,
.news-card a {
    margin-top: 10px;
    text-align: center;
    /* Center align the text for better readability */
}

.footer .col-md-6 {
    margin-bottom: 20px;
    /* Adds space between sections */
}

.footer .link-list {
    display: flex;
    flex-direction: column;
    /* Aligns links vertically */
}

.footer a {
    display: block;
    /* Ensures each link is on a new line */
}

/* General Styles for the Our Work Section */
.bg-light {
    background-color: #f8f9fa;
}

/* Teacher Training Section Styles */
.techsparque-teacher-training {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.techsparque-teacher-training img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    /* Ensure there's no margin pushing them apart vertically */
}

/* Ensuring images are side by side with appropriate spacing */
.techsparque-image-row {
    display: flex;
    flex-wrap: nowrap;
    /* Prevents the images from wrapping */
    justify-content: space-between;
    /* Distributes space between and around items */
    align-items: center;
    /* Aligns items vertically in the center */
}

.techsparque-image-row .col-md-6 {
    flex: 1 1 48%;
    /* Adjust this value to control the space each image takes */
    max-width: 48%;
    /* Ensures that each column does not exceed 48% width */
    padding: 0 15px;
    /* Provides space between the images */
}

/* Ensures that there is no extra margin or padding */
.techsparque-image-row .col-md-6 img {
    margin-bottom: 0;
    /* Removes margin below images if unnecessary */
}

@media (max-width: 768px) {
    .techsparque-image-row .col-md-6 {
        flex: 0 0 100%;
        /* Full width on smaller screens to stack images vertically */
        max-width: 100%;
        padding: 0;
        /* No padding between images on small screens */
    }
}

.school-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Ensures all cards are the same height */
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
}

.school-card img {
    width: 100%;
    height: 200px;
    /* Fixed height for all images */
    object-fit: cover;
    border-radius: 8px;
    /* Rounded corners for images */
}

.school-info {
    padding-top: 10px;
}

.techsparque-school-col {
    display: flex;
    flex: 1;
    margin-bottom: 20px;
}

.stats-section-container h2,
.additional-info h2,
.call-to-action h2 {
    color: #FD5D14;
    /* Primary color */
    margin-bottom: 1rem;
}

.stats-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    margin: 1rem;
    text-align: center;
}

.stat h1 {
    font-size: 2.5rem;
    /* Large font size for impact */
    color: #333;
    /* Dark color for emphasis */
}

.stat p {
    font-size: 1.2rem;
    color: #666;
    /* Lighter text for sub-info */
}

.techsparque-image-row {
    margin-top: 2rem;
}

.techsparque-image-row img {
    width: 100%;
    height: auto;
    padding: 0.5rem;
    /* Padding around images */
}

.additional-info,
.call-to-action {
    padding: 2rem 0;
}

.call-to-action a.btn {
    margin-top: 1rem;
}

/*** Team ***/
.team-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.team-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.team-item:hover img {
    transform: scale(1.05);
}

.team-item .text-center {
    padding: 20px;
}

.btn-sm-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-linkedin {
    font-size: 24px;
}

.btn-sm-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-linkedin {
    font-size: 24px;
}

.text-center {
    padding: 20px;
    text-align: center;
    /* Aligns the text to the center for better readability */
}

/* Latest News Section Styling */
.news-section {
    display: flex;
    flex-wrap: nowrap;
    /* Keeps items on one line without wrapping */
    overflow-x: auto;
    /* Enables horizontal scrolling */
    justify-content: flex-start;
    /* Aligns content to the start, removing center alignment */
    padding: 20px 10px;
    /* Adjusts padding for better spacing */
    background: #f8f9fa;
}

.news-card {
    flex: 0 0 auto;
    /* Prevents cards from shrinking and maintains set width */
    width: 320px;
    /* Increased width for better readability */
    margin: 0 15px;
    /* Space between cards */
    border: 1px solid #ddd;
    background: #fff;
    position: relative;
    /* Needed for positioning the date */
    display: flex;
    flex-direction: column;
    /* Stacks content vertically */
}

.news-card img {
    width: 100%;
    height: 200px;
    /* Increased height for better display */
    object-fit: cover;
}

.news-card .date {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 10px;
}

.news-card .content {
    padding: 10px;
    /* Adjusts internal spacing */
    flex-grow: 1;
    /* Allows content to fill available space */
}

.news-card .content h4 {
    margin-top: 0;
    /* Reduces space above the headline */
    font-size: 1.1em;
    /* Increases font size for headlines */
}


.container {
    width: 80%;
    /* or max-width to control site width */
    margin: 0 auto;
    /* Centers the container */
    padding: 20px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .stat {
        flex: 1 1 50%;
        /* Each stat takes up 50% of the container width on smaller screens */
    }
}

@media (max-width: 480px) {
    .stat {
        flex: 1 1 100%;
        /* Each stat takes up 100% of the container width on very small screens */
    }

    .stat h1 {
        font-size: 2em;
        /* Slightly smaller font size for very small screens */
    }

    .stat p {
        font-size: 1em;
    }
}

/* Hero Section Container */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 600px;
}

/* Background Image */
.hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Content Overlay */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

/* Inner Content Wrapper */
.hero-inner {
    max-width: 900px;
    padding: 15px;
}

/* Title Styling */
.hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Button Styling */
.hero-btn {
    padding: 1rem 2rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .hero-section,
    .hero-image,
    .hero-content {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    .hero-section,
    .hero-image,
    .hero-content {
        height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* For small phones, use full viewport height */
@media (max-width: 576px) {

    .hero-section,
    .hero-image,
    .hero-content {
        height: 100vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}