﻿.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

/* Default grid layout for desktop (6 cards per row) */
@media (min-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 courses per row on desktop */
    }
}

/* Mobile view (2 cards per row) */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr); /* 4 courses per row on larger screens */
    }
}

.details-container {
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px; /* Added margin between cards */
    border-radius: 10px;
}

    .details-container:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .details-container img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 1px; /* Reduced the margin to make the gap smaller */
        border-radius: 10px;
    }

    .details-container h1 {
        margin: 15px;
        font-size: 20px;
    }

    .details-container p {
        margin: 15px;
        font-size: 14px;
        color: #555;
    }


.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
   
}





.containerg {
    width: 100%;
    justify-content: center;
    
}

.cardg {
    background-color: #eeeed0; /* Light grey background */
    border: 1px solid #dee2e6; /* Border for the card */
    border-radius: 10px; /* Rounded corners */

    margin: 20px auto; /* Center align and space between cards */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 90%;
    flex-direction: row;
    overflow-y: auto; /* Scroll if content exceeds max-height */
    display: flex; /* Flex for alignment */
    flex-direction: column; /* Vertical stacking */
    justify-content: space-between; /* Distribute space */
}
.headerg {
    background-color: #0f419b;
    color: white;
    padding: 15px;
    text-align: center;
}
.footerg {
    background-color: #0f419b;
    color: white;
    padding: 5px;
    text-align: center;
}

.contentg {
    padding: 15px;
}

@media (max-width: 600px) {
    .containerg {
        width: 100%;
        padding: 10px;
    }
}












.card {
    display: flex;
    flex-direction: row;
    width: 90%; /* Default width for desktop */
    height: 400px; /* Fixed height */
  
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .card img {
        width: 30%;
        height: 100%; /* Ensures the image fills half the card */
        object-fit: cover;
    }

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%; /* Content takes up half the card */
}

    .card-content h2 {
        margin: 0;
        font-size: 1.5em;
        color: #333;
        line-height: 1.2em;
        word-wrap: break-word;
    }

    .card-content p {
        margin: 10px 0;
        color: #555;
        font-size: 1em;
        line-height: 1.5em;
        word-wrap: break-word;
    }

    .card-content .read-more {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
        margin-top: auto;
    }

        .card-content .read-more:hover {
            text-decoration: underline;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%; /* Full width on mobile */
        height: auto; /* Allow the card to adjust its height */
    }

        .card img {
            width: 100%; /* Full width image on mobile */
            height: 200px; /* Adjust image height for mobile */
        }

    .card-content {
        width: 100%; /* Full width content on mobile */
    }

        .card-content h2 {
            font-size: 1.2em; /* Slightly smaller font size for mobile */
        }

        .card-content p {
            font-size: 0.9em;
        }
}

/* Hover Effect for Details Container */
.details-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f0f8ff; /* Light blue background on hover */
}

/* Hover Effect for Cards */
.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f0f8ff; /* Light blue background on hover */
}

/* Hover Effect for Read More Links */
.card-content .read-more:hover {
    text-decoration: underline;
    color: #0056b3; /* Darker blue on hover */
}


/* Wrapper for the entire courses section */
.courses-wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

    /* Title */
    .courses-wrapper h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

/* Grid container for course cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    border-radius: 10px;
}

/* Mobile view: 2 columns */
@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 courses per row on larger screens */
    }
}

/* Desktop view: 6 columns */
@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 courses per row on desktop */
    }
}

/* Individual course item styling */
.course-item {
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px; /* Added margin between cards */
    border-radius: 10px;
}

    .course-item:hover {
        transform: translateY(-8px); /* Hover effect to move the card up */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Increased shadow on hover */
    }

    .course-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 1px; /* Reduced the margin to make the gap smaller */
        border-radius: 10px;
    }

/* Image and text layout adjustment */
.course-item-body {
    padding-top: 1px; /* Adjusted padding to reduce space between image and text */
}

.course-item-title {
    font-size: 1.5rem;
    margin-bottom: 2px; /* Reduced the margin to only 1 line gap */
}

.course-item-duration {
    font-size: 1rem;
    margin-bottom: 16px;
}

.course-item-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.course-item .btn-container {
    text-align: center; /* Center the button */
    margin-top: 20px; /* Add space above the button */
}
.course-item .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

    .course-item .btn:hover {
        background-color: #0056b3;
    }
/* Pagination wrapper styling */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

    /* Pagination list styling */
    .pagination-wrapper .pagination {
        display: inline-block; /* Make it horizontal */
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

        /* Pagination items styling */
        .pagination-wrapper .pagination li {
            display: inline-block; /* Ensure buttons are side by side */
            margin: 0 5px; /* Add space between the buttons */
        }

        /* Pagination links styling */
        .pagination-wrapper .pagination a {
            text-decoration: none;
            padding: 8px 16px;
            color: #007bff;
            border: 1px solid #ddd;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }

        /* Active pagination link styling */
        .pagination-wrapper .pagination .active a {
            background-color: #007bff;
            color: white;
        }

        /* Hover effect on pagination links */
        .pagination-wrapper .pagination a:hover {
            background-color: #f0f0f0;
        }

/* Wrapper for the entire course details section */
.course-details-wrapper {
    width: 80%;
    margin: 0 auto;
    padding-top: 80px; /* Added top padding */
}

/* Course details layout */
.course-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    /* Left section - Course image */
    .course-details img {
        width: 500px;
        height: 400px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Right section - Course details */
    .course-details .details {
        max-width: 60%;
    }

        .course-details .details h3 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .course-details .details p {
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* Course Duration */
        .course-details .details .duration {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 20px;
        }

        /* Course Fees Section */
        .course-details .details .fees {
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

            .course-details .details .fees span {
                display: block;
                margin-bottom: 10px;
            }

    /* Button */
    .course-details .btn {
        background-color: #007bff;
        color: #fff;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        border-radius: 4px;
        font-size: 1rem;
        transition: background-color 0.3s ease;
    }

        .course-details .btn:hover {
            background-color: #0056b3;
        }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .course-details-wrapper {
        width: 90%; /* Adjust width on mobile */
        padding-top: 80px; /* Keep the top padding */
    }

    .course-details {
        flex-direction: column;
        align-items: center;
        padding: 10px; /* Reduced padding for mobile */
    }

        .course-details img {
            width: 100%;
            height: auto;
            margin-bottom: 16px;
        }

        .course-details .details {
            max-width: 100%;
            padding: 10px; /* Reduced padding for mobile */
        }

            .course-details .details h3 {
                font-size: 1.75rem; /* Adjusted font size for mobile */
            }

            .course-details .details p {
                font-size: 0.9rem; /* Adjusted font size for mobile */
            }

            .course-details .details .duration {
                font-size: 1.1rem;
            }

            .course-details .details .fees {
                font-size: 1rem;
            }

        .course-details .btn {
            font-size: 0.9rem;
            padding: 8px 16px;
        }
}


.vc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 10px;
}


.vc-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 45%; /* Adjust width for two cards side by side */
    height: 300px; /* Set fixed height for the card */
    box-sizing: border-box; /* Ensure padding does not affect the width */
    margin: 0 auto;
}

    .vc-card img {
        width: 300px;
        height: 300px;
        object-fit: cover;
    }

.vc-card-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto; /* Enables scrolling */
    max-height: 400px; /* Limit the scrollable area */
}

    .vc-card-content h2 {
        font-size: 20px;
        color: #d32f2f;
        margin-bottom: 10px;
    }

    .vc-card-content h4 {
        font-size: 16px;
        margin-top: 0;
        color: #555;
    }

    .vc-card-content p {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
        margin-bottom: 10px;
        text-align: justify;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 6; /* Limit to 6 lines */
        -webkit-box-orient: vertical;
    }

    .vc-card-content a {
        text-decoration: none;
        color: white;
        background-color: #d32f2f;
        padding: 10px 20px;
        border-radius: 5px;
        font-weight: bold;
        display: inline-block;
        margin-top: 10px;
    }

        .vc-card-content a:hover {
            background-color: #b71c1c;
        }

    .vc-card-content .department {
        border-bottom: 1px solid #ccc;
        padding: 10px 0;
    }

        .vc-card-content .department h3 {
            font-size: 20px;
            margin: 0;
            color: #333;
        }

        .vc-card-content .department p {
            font-size: 14px;
            color: #666;
            margin: 5px 0;
            text-align: justify;
            line-height: 1.5;
        }

.department {
    display: flex; /* Use flexbox to align the image and content side by side */
    align-items: center; /* Vertically align items */
    margin-bottom: 20px; /* Add spacing between rows */
    border-bottom: 1px solid #ccc; /* Optional, for separating rows */
    padding: 10px 0;
}

    .department img {
        width: 100px; /* Image width set to 100px */
        height: 100px; /* Image height set to 100px */
        object-fit: cover; /* Make sure the image covers the 100x100 box */
        margin-right: 15px; /* Space between image and content */
    }

.department-content {
    flex: 1; /* Make the content take up the remaining space */
}

.department h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.department p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: justify;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .vc-card {
        display: flex;
        flex-direction: row; /* Place image on the left and content on the right */
        width: 100%;
        margin-bottom: 10px;
    }

        .vc-card img {
            width: 100px; /* Image width set to 100px */
            height: auto;
            object-fit: cover; /* Ensure the image covers the space without distortion */
        }

    .vc-card-content {
        flex: 1; /* Content takes the remaining space */
        padding: 10px; /* Reduced padding for mobile view */
    }

        .vc-card-content h2 {
            font-size: 18px; /* Adjust font size for better readability on smaller screens */
        }

        .vc-card-content .department {
            padding: 10px 0; /* Adjust padding for department items */
        }

            .vc-card-content .department h3 {
                font-size: 16px; /* Adjust heading font size */
            }

            .vc-card-content .department p {
                font-size: 14px; /* Adjust paragraph font size */
            }
}

@media (min-width: 768px) {
    /* Adjust layout for two cards side by side */
    .vc-container {
        flex-wrap: wrap;
    }

    .vc-card {
        width: 45%; /* Each card takes up 45% of the container width */
    }
}

