/* Default styles for larger screens (desktops) */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

header {
    color: black; /* Added the missing semicolon */
    font-size: 28px;
}

header h1 {
    color: black;
    font-size: 28px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* Aligning the navigation to the right */
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 16px;
}

.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-size: 36px;
    margin: 0;
}

.hero-content p {
    font-size: 18px;
    margin-top: 0.5rem;
}

.main-section {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: #e9c46a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card img {
        width: 100%;  /* Image ko container ki width ke hisaab se adjust karega */
        height: auto; /* Image ki height ko aspect ratio ke hisaab se maintain karega */
        border-radius: 10px; /* Image ke corners ko thoda rounded banayega */
    }
    
.card h3 {
    margin-top: 1rem;
    color: #264653;
    font-size: 20px;
}

.contact {
    background-color: #e76f51;
    color: #fff;
    text-align: center;
    padding: 2rem;
}
/* Contact Section Styling */
.contact-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.submit-button {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}


footer {
    background-color: #2a9d8f;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 14px;
}

.blog-list .blog-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* General Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
}
.header-right img {
    max-height: 80px;

}
.header-left h1 {
    font-size: 24px;
    color: #333;

}

/* Blog Item Styles */
.blog-item {
    display: inline-block;
    width: 280px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    background: white;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.blog-item img {
    width: 100%;
    border-radius: 10px;
}

.blog-item h4 {
    margin: 10px 0;
    color: #0078d7;
}

/* Pop-up Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-in-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #0078d7;
    cursor: pointer;
}

.popup-content h2 {
    margin-top: 0;
    color: #333;
}

/* Social Media Styles */
.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
}

.social-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.2);
}

.share-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

#share-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#share-button:hover {
    background-color: #0056b3;
}

#social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#social-icons.hidden {
    display: none;
}

#social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

#social-icons a img:hover {
    transform: scale(1.2);
}
/* For screens smaller than 768px (tablet and below) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-section {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .card {
        width: 100%;
    }

    .blog-item {
        width: 100%;
        margin: 15px 0;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* For screens smaller than 480px (mobile) */
@media screen and (max-width: 480px) {
    header {
        padding: 10px;
    }

    .hero {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .main-section {
        padding: 1rem;
    }

    .card {
        width: 100%;
    }

    .blog-item {
        width: 100%;
    }

    footer {
        font-size: 12px;
    }
}
h3 {
    text-align: center;
  }
 /* Blog Section Styling */
.blog-section {
    padding: 20px;
    text-align: center;
}

.blog-list {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping to handle smaller screens */
    justify-content: space-between; /* Add space between items */
    gap: px; /* Space between blog items */
}

.blog-item {
    flex: 1 1 calc(33.333% - 20px); /* Make items take up 1/3 of the row */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow */
    border: 1px solid #ddd; /* Border for each blog item */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Clip content inside borders */
    background: #fff; /* White background */
    max-width: 350px; /* Limit the maximum width */
}

.blog-item img {
    width: 100%; /* Ensure images cover full width */
    height: 180px; /* Set a fixed height for images */
    object-fit: cover; /* Keep aspect ratio */
}

.blog-item h4 {
    font-size: 18px;
    margin: 10px 0;
    padding: 0 10px;
}

.blog-item p {
    font-size: 14px;
    padding: 0 10px;
    color: #555;
}

.blog-item .read-more {
    display: block;
    margin: 10px;
    padding: 10px;
    text-align: center;
    background: #007bff; /* Blue background for button */
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.blog-item .read-more:hover {
    background: #0056b3; /* Darker blue on hover */
}
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #f3f4f6, #e3e4e8);
    padding: 50px 20px;
}

.login-bar {
    width: 100%;
    background-color: #4caf50;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

.login-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.text-section {
    flex: 1;
    padding: 20px;
}

.text-section h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.text-section p {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
}

.image-section {
    display: flex;
    flex-direction: column; /* Vertical alignment for sections */
    gap: 20px; /* Space between student and instructor */
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speech-bubble {
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    max-width: 300px; /* Optional: Limit bubble width */
}

.speech-bubble.student {
    top: 10%;
    left: 10%;
}

.speech-bubble.instructor {
    bottom: 10%;
    right: 10%;
}
.person {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between image and bubble */
}
.person.reverse {
    flex-direction: row-reverse; /* Reverse the order for instructor */
}
.speech-bubble {
    background-color: #f3f4f6;
    border-radius: 15px;
    padding: 15px;
    max-width: 300px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    font-size: 1em;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0;
    border-color: #f3f4f6 transparent transparent;
}
header {  
    background-color: #0e4d92;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

nav ul li a:hover {
    color: #f3c13a;
    text-decoration: underline;
}

/* Benefits Section */
.benefits-section {
    padding: 50px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    max-width: 1200px;
    align-items: center;
    justify-content: flex-start; /* Ensure elements are aligned at the start */
}

.benefits-image {
    flex: 0 0 40%; /* Image takes 40% of the container width */
    padding-right: 0; /* Remove any right padding */
}

.benefits-image img {
    max-width: 40%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefits-content {
    flex: 0 0 60%; /* Text takes 60% of the container width */
    text-align: left;
    padding-left: 0; /* Remove any left padding */
}

.benefits-title {
    font-size: 28px;
    color: #0e4d92;
    margin-bottom: 20px;
    font-weight: bold;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
    color: #333;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.benefits-list li i {
    color: #2a9d8f;
    margin-right: 10px;
    font-size: 20px;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .benefits-container {
        flex-direction: column;
        text-align: center;
    }

    .benefits-content {
        text-align: center;
    }
}
body {
    font-family: 'Poppins', sans-serif;
}
.blog-page .blog-item {
    padding: 55px; /* Blog page ke liye padding zyada */
}
@media (max-width: 768px) {
    .blog-page .blog-item {
        padding: 8px; /* Mobile devices ke liye padding kam karein */
    }
}
