﻿/*=============================================================
    Authour URI: www.binarytheme.com
    License: Commons Attribution 3.0

    http://creativecommons.org/licenses/by/3.0/

    100% To use For Personal And Commercial Use.
    IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
   
    ========================================================  */


/*=======================================
    GENERAL STYLES
==================================================*/

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
}


.text-center {
    text-align: center;
}

h2 {
    line-height: 50px;
    color: #E91C1C;
}

h3 {
    line-height: 30px;
    padding-bottom: 20px;
}

h4 {
    padding-top: 0px;
    line-height: 40px;
    padding-bottom: 0px;
    font-size: 22px;
    font-weight: 900;

}

p {
    font-weight: 500;
    line-height: 30px;
    padding-bottom: 5px;
}

.space-free {
    height: 100px;
}

section {
    padding-top: 10px;
    margin-top: 0px;
}

.g-pad-bottom {
    padding-bottom: 10px;
}

.form-control {
    background-color: rgba(255, 255, 255, 0);
}

.label-danger {
    font-size: 18px;
}


/*=======================================
   ABOUT US SECTION STYLES
==================================================*/

#about-us-sec {
    height: 60vh; /* Full viewport height */
    display: flex; /* Center content using flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    
    margin: 0; /* Remove any default margins */
    background-color: #f8f9fa; /* Optional: Set a background color */
    width: 100vw; /* Ensure full viewport width */
    box-sizing: border-box; /* Include padding and border in size */
}

#about-us-sec .container {
    width: 100%; /* Span full width */
    /*max-width: 1200px; /* Optional: Limit max-width for large screens */
    margin: 0; /* Center container */
    padding: 0; /* Remove padding */
}

#about-us-sec .alert {
    /* width: 100%; Full width of the parent container */
   /* max-width: 900px; /* Optional: Limit width for readability */
    padding: 40px; /* Add padding for spacing */
    box-sizing: border-box; /* Include padding in width calculations */
    text-align: center; /* Center the text inside the alert */
    background-color: #d1ecf1; /* Optional: Set a background color for the alert */
    border: none; /* Remove the border around the alert */
}

#about-us-sec h4 {
    font-size: 4rem; /* Adjust font size for header */
    font-weight: bold;
    margin-bottom: 20px; /* Space below the header */
}

#about-us-sec p {
    font-size: 1.425rem; /* Adjust font size for paragraph */
    line-height: 1.6; /* Adjust line height for readability */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Optional: Add responsive styles for smaller screens */
@media (max-width: 888px) {
    #about-us-sec .alert {
        width: 90%; /* Slightly reduce width on small screens */
    }

    #about-us-sec h4 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
    }

    #about-us-sec p {
        font-size: 1rem; /* Reduce paragraph font size for smaller screens */
    }
}

#home-sec {
    background: url(../gurukoolimg/gurukoolBG.png) no-repeat center center;
    background-attachment: auto ;
    -webkit-background-size: cover;
    -moz-background-size: auto;
    -o-background-size: auto;
    background-size: cover;
    width: 100%;
    display: block;
    height: auto;
    padding-top: 190px;
    min-height: 650px;
    color: #322fdd;
}

.head-main {
    font-size: 60px;
    font-weight: 900;
    border: 5px outset #fff;
    padding: 15px;
    /* text-transform: uppercase; */
    text-shadow: 2px 2px 5px rgb(247, 248, 243);
    /* Adding a shadow for more boldness */


    /* Remove the border */
    border: none;
    /* No border around the text */
}

.head-last {
    margin-top: 70px;
    font-size: 18px;
    font-weight: 900;
    padding: 5px 20px 20px 20px;
    border: 1px dotted #fff;
    padding: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    /* Adding a shadow here too */
}

/* Responsive Navbar Header */
.navbar-header img {
    max-width: 100%;
    height: auto;
}

/* ===========================================================
   NAVBAR CHANGES   
   ============================================================*/
.navbar {
    font-size: 18px;
    padding-right: 3%;
}

.ddd{
    background-color: #ffffff;
}

.navbar-inverse {
    background: #ffffff;
    min-height: 60px;
    padding-top: 5px;
    padding-right: 0%;

}

.navbar-inverse .navbar-nav>.active>a {
    background: #ffffffbd;
}

.navbar-inverse .navbar-brand {
    color: #000;
    font-weight: bolder;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
}

.navbar-inverse {
    border-color: #D6D6D6;
}

.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
    border-color: #000;
}

.navbar-fixed-top{
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1030;
    padding-top: 0; 
    background: #ffffff00;
    background-color: transparent;
}

.navbar-toggle {
    background-color: rgb(0, 0, 0);
    cursor: pointer;
}

.icon-bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 5px auto;
    background-color: black;
    transition: all 0.3s;
} 

/* Transform to close (X) icon when clicked */
.navbar-toggle.toggled .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.toggled .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.toggled .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Optional: style the dropdown itself when toggled */
.navbar-collapse.collapse.show {
    display: block !important;
}

/* Add your custom logo image styling below */
.navbar-header img {
    max-height: 50px;
    /* Adjust the maximum height of the logo */
    width: auto;
    /* Automatically adjust the width based on the height */
    margin-top: 20px;
    /* Optional: Adjust top margin if needed */
    padding: 0;
    /* Remove any padding around the image */
    margin-left: 30px;
}

.navbar-header img.img-fluid {
    max-width: 100%;
    /* Ensure the image scales properly */
    height: auto;
    /* Maintain aspect ratio of the logo */
}


/*==========================================
    PORTFOLIO STYLES
    =====================================================*/

.portfolio-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-items {
    margin-right: -20px;
}

.portfolio-items>li {
    float: left;
    padding: 0;
    margin: 0;
}

.portfolio-items.col-3>li {
    width: 33%;
}

.portfolio-item .item-main {
    margin: 0 10px 10px 0;
    text-align: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #E8EAEE;

}

.portfolio-item img {
    width: 100%;
}

.portfolio-item .portfolio-image {
    position: relative;
}

.portfolio-item h5 {
    margin: 0;
    padding: 10px 0 10px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: #E91C1C;
    color: #fff;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
    vertical-align: middle;
    -webkit-transition: opacity 300ms;
    -moz-transition: opacity 300ms;
    -o-transition: opacity 300ms;
    transition: opacity 300ms;
}

.portfolio-item .overlay .preview {
    position: relative;
    top: 50%;
    display: inline-block;
    margin-top: -20px;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/*=======================================
    Contact STYLES
==================================================*/

.cnt {
    width: 100%;
    min-height: 350px;
    border: 1px solid #e1e1e1;
}


/*=======================================
    TESTIMONIAL STYLES
=======================================*/

/* Heading Styling */
h2 {
    text-align: center;
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-size: 24px;
    color: #31708f;
    margin-bottom: 20px;
}

/* Carousel Styling */
.carousel-inner {
    text-align: center;
    color: #ff3c00; /* Color change for names */
}

.item {
    padding: 20px;
}

/* Testimonial Text Styling */
.testimonial-text {
    font-style: italic;
    font-size: 24px;
    line-height: 1.3;
    color: #839402;
    margin: 10px 0;
    font-family: 'Georgia', serif;
    text-align: center;
}



/*=======================================
    FOOTER STYLES
==================================================*/

#footer {
    background-color: #ffffff;
    color: #000;
    padding: 40px 50px 10px 50px;
    text-align: right;
    border-top: 1px solid #d6d6d6;
}


/*=======================================
    MEDIA QUERIES
    ==================================================*/

    @media (max-width: 767px) {
        #home-sec {
            background-attachment: scroll; /* Disable fixed background attachment for performance */
        background-size: auto 100%; /* Adjust the background size to fit the height of the container */
        background-position: top center; /* Position image towards the top */
        min-height: 400px; /* Smaller minimum height */
        padding-top: 120px; /* Adjust padding for mobile */
    
        }
    
        .head-main {
            font-size: 40px; /* Adjusting font size for mid-size screens */
        }
    }
   
    /* Media query for devices with widths between 640px and 381px */
    @media all and (max-width: 640px) and (min-width: 381px) {
        .head-main {
            font-size: 28px;
        }
    }
    
    /* Media query for devices with widths between 381px and 200px */
    @media all and (max-width: 381px) and (min-width: 200px) {
        .head-main {
            font-size: 24px;
        }
    }
    
    @media (max-width: 768px) {
        .carousel-item {
            width: calc(50% - 20px);
            /* Fit 2 items per row on smaller screens */
        }
    }
    
    @media (max-width: 480px) {
        .carousel-item {
            width: calc(100% - 20px);
            /* Fit 1 item per row on very small screens */
        }
    }
    
    /* Add more general responsive styles for other elements */
    
    /* Mobile devices */
    @media (max-width: 767px) {
        #home-sec {
         background-attachment: scroll; /* Disable fixed attachment for mobile to improve performance */
        background-size: auto 100%; /* Adjust the size to fit the height of the container */
        background-position: top center; /* Position the background image towards the top */
        }
    
        .head-main {
            font-size: 30px; /* Reduce font size for mobile */
            padding: 10px;
        }
    
        .head-last {
            font-size: 14px; /* Adjust font size for mobile */
            margin-top: 30px;
            padding: 5px 10px; /* Reduce padding */
        }
    }
    
    /* Tablets and larger mobile screens (portrait) */
    @media (max-width: 1024px) {
        .head-main {
            font-size: 27px;
            padding: 12px;
        }
    
        .head-last {
            font-size: 16px;
            margin-top: 50px;
            padding: 5px 15px;
        }
    }
    
    /* Larger screens (Desktops and larger tablets) */
    @media (min-width: 1025px) {
        #home-sec {
            padding-top: 190px;
            min-height: 650px;
        }
    
        .head-main {
            font-size: 60px;
            padding: 15px;
        }
    
        .head-last {
            font-size: 18px;
            margin-top: 70px;
            padding: 5px 20px;
        }
    }
    
    /* For smaller screens (e.g., mobile), adjust the logo size */
@media (max-width: 768px) {
    .navbar-header img {
        max-height: 25px; /* Slightly smaller logo */
        margin-left: 15px; /* Reduce left margin */
        margin-top: 8px; /* Adjust top margin */
    }
}

/* For very small screens (e.g., portrait mobile), further reduce logo size */
@media (max-width: 480px) {
    .navbar-header img {
        max-height: 40px; /* Even smaller logo */
        margin-left: 10px; /* Reduce left margin more */
        margin-top: 25px; /* Reduce top margin */
        margin-bottom: 15px;
    }
}




#myCarousel {
    position: relative;
}

.carousel-inner {
    position: relative; /* Ensures that the buttons are positioned relative to the carousel container */
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    padding: 10px 20px;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Adds a semi-transparent background */
    border-radius: 50%; /* Optional: Rounded corners for the buttons */
}

.carousel-control-prev {
    left: 10%;  /* Adjust this value to add space from the left side */
}

.carousel-control-next {
    right: 10%; /* Adjust this value to add space from the right side */
}

/* Fix for ensuring buttons stay in place */
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-navigation {
    text-align: center;
    margin-top: 20px;
}


/*  styking for testimony section */
        .testimonials-container {
            width: 50%;
            margin: 0 auto;
            text-align: center;
        }

        .testimonials-heading {
            font-weight: bold;
            color: #ff5733;
        }

        .testimonial-content {
            font-style: italic;
            margin: 20px 0;
        }

        .testimonial-author {
            font-weight: bold;
            font-size: 20px;
        }

        .buttons-container {
            display: flex;
            justify-content: space-between;
            width: 200px;
            margin: 0 auto;
        }

        button {
            padding: 10px 20px;
            background-color: #ff5733;
            color: white;
            border: none;
            cursor: pointer;
        }

        button:hover {
            background-color: #c14c28;
        }
