/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}

/* Adaptive Typography */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}
h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.site-name {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-family: 'Playfair Display', serif;
    color: var(--bs-primary);
}

.site-name-footer {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.8rem; /* ~28.8px */
    }
    h2 {
        font-size: 1.5rem; /* ~24px */
    }
    h3 {
        font-size: 1.25rem; /* ~20px */
    }
    .site-name {
        font-size: 1.25rem; /* ~20px */
    }
    .site-name-footer {
        font-size: 1rem; /* ~16px */
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 2rem;
    }
    .site-name {
        font-size: 1.8rem;
    }
    .site-name-footer {
        font-size: 1.25rem;
    }
}

/* Color Palette */
:root {
    --bs-primary: #0056b3; /* Darker Blue */
    --bs-secondary: #ffc107; /* Yellow */
    --bs-dark: #1a1a1a; /* Dark Blue/Black */
    --bs-light: #f8f9fa;
    --bs-body-color: #333;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}
.text-primary {
    color: var(--bs-primary) !important;
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #004085;
    border-color: #004085;
}
.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: var(--bs-dark);
}
.btn-secondary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease-in-out;
    z-index: 1030;
}
.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}
.navbar-brand .site-name {
    font-weight: 700;
}
.navbar-nav .nav-link {
    color: var(--bs-dark);
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}
.navbar-nav .nav-link:hover {
    color: var(--bs-primary);
}
.offcanvas-header {
    background-color: var(--bs-primary);
    color: #fff;
}
.offcanvas-title {
    color: #fff;
}
.offcanvas-body .nav-link {
    color: var(--bs-dark);
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.offcanvas-body .nav-link:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

/* Hero Section */
.hero-section {
    background-image: url('visuals/content/programming-background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    position: relative;
    color: #fff;
    padding-top: 100px; /* Offset for fixed header */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}
.hero-section h1, .hero-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Padding */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}
@media (min-width: 992px) {
    section {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* About Us Section */
.about-us-section .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-us-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.about-us-section .card-title {
    color: var(--bs-primary);
}
.about-us-section img {
    max-width: 100%;
    height: auto;
}

/* Courses Section */
.course-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.course-card img {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.course-card .card-body {
    padding: 1.5rem;
}
.course-card .card-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}
.course-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
}
.course-card .card-price {
    color: var(--bs-primary);
    margin-top: 1rem;
}
.course-card .btn {
    white-space: normal;
    word-break: break-word;
}

/* Learning Formats Section */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.learning-formats-section .card, .how-learning-works-section .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learning-formats-section .card:hover, .how-learning-works-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.learning-formats-section ul {
    padding-left: 0;
}
.learning-formats-section ul li {
    margin-bottom: 8px;
}

/* Instructors Section */
.instructor-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.instructor-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
}
.instructor-card .card-title {
    font-size: 1.5rem;
    margin-top: 1rem;
}
.instructor-card .card-subtitle {
    font-size: 1rem;
}
.instructor-card .card-text {
    font-size: 0.9rem;
    color: #555;
}

/* Student Projects Section */
.project-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.project-card img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.project-card .card-title {
    font-size: 1.35rem;
    color: var(--bs-dark);
}
.project-card .card-text strong {
    color: var(--bs-primary);
}

/* Reviews Section */
.reviews-section .carousel-item {
    padding: 20px;
}
.reviews-section .review-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--bs-secondary);
}
.reviews-section .lead {
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.reviews-section .carousel-control-prev-icon, .reviews-section .carousel-control-next-icon {
    background-color: var(--bs-secondary);
    border-radius: 50%;
    padding: 15px;
}

/* FAQ Section */
.accordion-button {
    font-weight: 600;
    color: var(--bs-dark);
    background-color: var(--bs-light);
    padding: 1rem 1.25rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}
.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-body {
    padding: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--bs-dark);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}
.contact-form-section form, .find-us-section .card {
    background-color: #fff;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--bs-dark) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}
.footer a {
    color: rgba(255, 255, 255, 0.6);
}
.footer a:hover {
    color: #fff;
}
.logo-img-footer {
    height: 30px;
    width: auto;
}

/* Modals */
.modal-header {
    background-color: var(--bs-primary);
    color: #fff;
}
.modal-title {
    color: #fff;
}
.modal-content {
    border-radius: 0.5rem;
}
.modal-body ul {
    list-style-type: none;
    padding-left: 0;
}
.modal-body ul li {
    margin-bottom: 0.5rem;
}
.modal-body ul li i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}
.modal-body .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
}
.modal-body .form-control:invalid:not(:placeholder-shown), .modal-body .form-check-input:invalid:not(:checked) {
    border-color: #dc3545;
}
.modal-body .form-control:invalid:not(:placeholder-shown) ~ .invalid-feedback, .modal-body .form-check-input:invalid:not(:checked) ~ .invalid-feedback {
    display: block;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 350px;
    z-index: 1050;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 575.98px) {
    .cookie-banner {
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
    }
}
.cookie-banner p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.cookie-banner .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    z-index: 1060; /* Higher than cookie banner */
}

/* Scroll Link Offset */
.scroll-link {
    scroll-margin-top: 80px; /* Adjust for fixed header height */
}
/* Parent wrapper styles */
.rightsCloudWrap {
    margin-top: 40px; /* Top margin for the wrapper */
    padding-left: 20px; /* Left padding for the wrapper content */
    padding-right: 20px; /* Right padding for the wrapper content */
}

/* Heading styles */
.rightsCloudWrap h1 {
    font-size: 2.2rem; /* Moderate font size for H1 */
    line-height: 1.2; /* Line height for readability */
    margin-top: 1.8rem; /* Top margin for H1 */
    margin-bottom: 0.8rem; /* Bottom margin for H1 */
    font-weight: 700; /* Bold font weight */
}

.rightsCloudWrap h2 {
    font-size: 1.8rem; /* Moderate font size for H2 */
    line-height: 1.3;
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.rightsCloudWrap h3 {
    font-size: 1.5rem; /* Moderate font size for H3 */
    line-height: 1.4;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.rightsCloudWrap h4 {
    font-size: 1.2rem; /* Moderate font size for H4 */
    line-height: 1.5;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rightsCloudWrap h5 {
    font-size: 1.1rem; /* Moderate font size for H5 */
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 400; /* Normal font weight for H5 */
}

/* Paragraph styles */
.rightsCloudWrap p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.7; /* Increased line height for readability */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/* Unordered list styles */
.rightsCloudWrap ul {
    margin-top: 1rem; /* Top margin for the list */
    margin-bottom: 1rem; /* Bottom margin for the list */
    padding-left: 20px; /* Indentation for bullet points */
    list-style-type: disc; /* Default bullet style */
}

/* List item styles */
.rightsCloudWrap li {
    font-size: 1rem; /* Base font size for list items */
    line-height: 1.6; /* Line height for list items */
    margin-bottom: 0.5rem; /* Space between list items */
}
#hero-section h1 {
    color: #29aff2;
}
#reviews-section img {
    height: 150px;
}
.carousel-item p {
    max-width: 80%;
}
main {
    overflow: hidden;
}
.offcanvas {
   height: 100vh !important;
   max-height: 100vh !important;
}
