:root {
    --container: 1200px;
    --hover-color: #62c3d7; /* Define your blue color for hover */
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
.navbar {
    position: fixed;
}
.navbar, .footer-wrapper {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar-content, .footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar img {
    height: 50px;
}
.menu-btn {
    font-size: 24px;
    cursor: pointer;
    display: none;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0px;
    position: relative;
}
.navbar ul li {
    display: inline;
    position: relative;
}
.navbar ul li a {
    border-radius: 5px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 10px;
    display: block;
    transition: background-color 0.3s;
}
.navbar ul li a:hover {
    background-color: var(--hover-color);
    color: white; /* Optional: Change text color on hover */
}
.navbar ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.navbar ul li ul li {
    width: 160px;
}
.navbar ul li:hover ul {
    display: block;
}
.navbar ul li:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-arrow {
    margin-left: -3px;
    transition: transform 0.3s;
}
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000; /* Ensure sidebar is above everything else */
}
.sidebar.active {
    transform: translateX(0);
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 20px 0;
    position: relative;
}
.sidebar ul li a {
    border-radius: 5px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: block;
    transition: background-color 0.3s;
    padding: 5px;
}
.sidebar ul li a:hover {
    background-color: var(--hover-color);
    color: white; /* Optional: Change text color on hover */
}
.sidebar ul li ul {
    display: none;
    list-style: none;
    padding-left: 20px;
}
.sidebar ul li.active ul {
    display: block;
}
.close-btn {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.main-section {
    background: url('/static/img/sky-art-classes-home.jpg') no-repeat center center/cover;
    padding: 250px 20px;
    text-align: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
}
.content-section {
    background-color: #f0f0f0;
}
.main-section .inner-container, .content-section .inner-container, .register-section .inner-container, .gallery-section .inner-container, .profile-section .inner-container{
    max-width: var(--container);
    margin: 0 auto;
}
.main-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: black;
}
.main-section p {
    font-size: 1.2em;
    margin: 0px;
    color: black;
}
.content-wrapper {
    display: flex;
    align-items: center;
    padding: 100px 0;
    border-radius: 5px;
}
.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.content-wrapper .text-content {
    max-width: 600px;
    margin-left: 20px;
}
.button-container {
    margin-top: 40px;
}
.button-container a {
    background-color: #ffc107;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ffc107;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s, color 0.3s;
}
.button-container a:hover {
    background-color: black;
    color: #ffc107;
}

.features {
    display: flex;
    justify-content: space-between;
    padding: 50px 0;
    gap: 20px;
}
.feature-item {
    text-align: center;
    flex: 1;
}
.feature-item img {
    width: 40px;
    height: 40px;
}
.feature-item h3 {
    margin-bottom: 10px;
}

.footer-wrapper {
    background-color: #b9e2e9;
    color: black;
    padding: 20px 0;
}
.footer-content {
    text-align: center; /* Center text in footer */
}
.footer-content div {
    padding: 10px;
}
.footer-content a {
    text-decoration: none;
    color: black;
}
.footer-content ul {
    list-style: none;
    padding: 0;
}
.footer-content ul li {
    margin-bottom: 12px;
}
.footer-bottom {
    background-color: #62c3d7;
    color: black;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    padding: 50px 20px;
}

.contact-item {
    padding: 0 50px;
    margin-bottom: 0;
    flex: 1;
}

.contact-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.contact-item h3 {
    margin: 10px 0;
    font-size: 24px;
}

.contact-item p {
    font-size: 16px;
    color: #333;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .navbar ul {
        display: none;
    }
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .content-wrapper .text-content, .content-wrapper .register-form {
        margin-left: 0;
        margin-top: 20px;
    }

    .content-wrapper.reverse-order .text-content {
        margin: -40px 0 40px;
    }

    .content-section, .profile-section {
        padding: 0 10px;
    }

    .content-wrapper .register-form, .content-wrapper .policy {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    .contact-item {
        margin-bottom: 40px;
    }
}

@media (min-width: 769px) {
    .footer-content {
        display: flex;
        justify-content: center; /* Center content horizontally */
        align-items: center; /* vertically center content */
        text-align: center; /* Align text left as default */
    }
    .footer-content div {
        flex: 1;
    }
}


/* Form CSS */
        .register-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px;
            background-color: #fff;
        }
        .register-section img {
            max-width: 100%;
            height: auto;
            border-radius: 5px;
        }
        .register-form {
            width: 100%;
            margin-left: 20px;
        }
        .register-form form {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        .form-group {
            flex: 1 1 calc(50% - 20px);
            display: flex;
            flex-direction: column;
        }
        .form-group.full-width {
            flex-basis: 100%;
        }
        .form-group input, .form-group select {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }
        .form-group label {
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input[type="checkbox"] {
            width: auto;
            margin-right: 10px;
        }
        .form-footer {
            display: flex;
            align-items: left;
            justify-content: space-between;
            width: 100%;
        }
        .form-footer div,
        .form-footer .form-group {
            flex: 1;
        }
        .form-footer .form-group {
            margin-right: 20px;
        }
        .submit-btn {
            background-color: var(--hover-color);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            flex-basis: auto;
        }

        .form-group.full-width a {
            text-align: center;
            text-decoration: none;
        }

/*        .submit-btn:hover {
            background-color: #0056b3;
        }
*/
/* Gallery Styles */
.gallery-section {
    padding: 40px 20px;
    background-color: #f0f0f0;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}
.gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}


.form-errors {
    color: #d9534f; /* Bootstrap Danger Color */
    background-color: #f2dede; /* Optional: Light red background */
    padding: 2px 5px; /* Optional: Add padding to the error box */
    border-radius: 5px; /* Optional: Rounded corners */
}

.form-errors ul {
    margin: 0;
    list-style-type: none; /* Remove the default bullets */
    padding: 0; /* Remove the default padding */
}

.form-errors li {
    margin-bottom: 5px; /* Space out the error messages */
}

.form-errors li:last-child {
    margin-bottom: 0; /* Remove margin from the last item */
}

.profile-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.profile-section table {
    width: 100%;
    border-collapse: collapse;
}

.profile-section th, .profile-section td {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.profile-section th {
    background-color: #62c3d7; /* Match your header color */
    color: white;
}

.profile-section tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.profile-section td .present-status {
    color: green;
    font-size: 16px;
}

.profile-section td .absent-status {
    color: red;
    font-size: 16px;
}

.attendance-table{
    overflow-x: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 0;
}

.pagination a, .pagination .current {
    margin: 0 5px;
    padding: 8px 0px;
    text-decoration: none;
    color: #007bff;
}

.pagination .current {
    font-weight: bold;
    color: #333;
}

.pagination a:hover {
    text-decoration: underline;
}


/* Blog Posts Listing Styles */
.blog-posts-listing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 120px 20px 30px;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}
/*
.post:hover {
    transform: translateY(-5px);
}
*/
.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.post-content h2 a {
    color: #333;
    text-decoration: none;
}

.post-content h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #888;
    font-size: 14px;
    margin: 10px 0;
}

.post-meta a {
    color: #ff9c00; /* Accent color */
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-content p {
    margin: 10px 0;
}

.post-content a {
    color: #ff9c00; /* Accent color */
    text-decoration: none;
    font-weight: bold;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Blog Post Styles */
.blog-post{
    background-color: #f0f0f0;
    padding: 120px 20px 30px;
}
.blog-post .inner-container {
    max-width: 800px;
    margin: 0px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post .post-content {
    padding: 20px;
}

.blog-post .post-content h1 {
    margin-top: 0;
    font-size: 28px;
    color: #333;
}

@media (max-width: 768px){
    .blog-posts-listing {
        padding-left: 0;
        padding-right: 0;
        grid-template-columns: 1fr;

    }
    .blog-post {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Truncation Styles */
.multi-line-truncate {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4; /* Number of lines to show */
    max-height: 6em; /* Should be line-height * number of lines */
    line-height: 1.5em; /* Line height should match max-height divided by number of lines */
}

.profile-section-sidebar {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: solid 1px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    background-color: #202020;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-right: 10px;
}

.profile-info .name {
    font-weight: bold;
}

.profile-info .phone {
    color: grey;
}
