/* General Styles */
:root {
    --primary-orange: #FF8C00; /* Dark Orange */
    --light-orange: #FFDAB9; /* Peach Puff */
    --white: #FFFFFF;
    --dark-text: #333333;
    --light-text: #666666;
    --bg-dark: #212529;
    --z-index-banner: 1050; /* Higher than Bootstrap's modal (1050) */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--dark-text);
}

.txt-org {
    color: var(--primary-orange) !important;
}

/* Override Bootstrap default transitions to disable all animations */
* {
    transition: none !important;
    animation: none !important;
}

.modal.fade .modal-dialog {
    transform: none !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

.accordion-button::after {
    background-image: none !important;
    transform: none !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: none !important;
    transform: none !important;
}

/* Custom scroll behavior for anchor links (instant scroll) */
html {
    scroll-behavior: auto !important;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.7) !important; /* Semi-transparent dark background */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.header-section {
    background: url('graphics/uploads/A_It_Word_A_Book_With_A_The_On_Titled_Woman_Book_Reading_A_On_Table.jpg') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    position: relative;
}

.header-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.header-section .container {
    z-index: 2;
}

.header-section h1 {
    color: var(--white);
    font-size: 3.5rem;
}

.header-section p.lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.header-section .bi {
    color: var(--primary-orange);
}

.header-section .text-center p {
    color: var(--white);
}

/* Sections General */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light-orange {
    background-color: var(--light-orange);
}

.bg-primary {
    background-color: var(--primary-orange) !important;
}

/* Custom Card Styles */
.custom-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* About Section */
.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

/* Services Section */
.custom-service-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure equal height */
}

.custom-service-card .bi {
    color: var(--primary-orange);
}

.service-card-1 {
    background-color: #FFF8F0; /* Lighter shade of orange */
}

.service-card-2 {
    background-color: #FFFBF7; /* Even lighter */
}

.service-card-3 {
    background-color: #FFF8F0;
}

/* Events Section */
.event-card {
    position: relative;
    height: 100%; /* Ensure equal height */
}

.event-card .event-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.event-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    border-radius: 0.3rem;
}

/* Features Section */
.mobile-card {
    background-color: var(--white);
    border-radius: 1.5rem; /* More rounded to mimic phone screen */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%; /* Ensure equal height */
    border: 1px solid #eee;
}

.mobile-card .feature-img {
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Portfolio Section */
.portfolio-filter-btn {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background-color: var(--primary-orange);
    color: var(--white) !important;
    border-color: var(--primary-orange);
}

.portfolio-card {
    cursor: pointer;
    width: 100%;
    height: 100%; /* Ensure equal height */
}

.portfolio-card .portfolio-img {
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Team Section */
.team-card {
    width: 100%;
    height: 100%; /* Ensure equal height */
}

/* Testimonials Section */
.custom-quote-bubble {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%; /* Ensure equal height */
}

.custom-quote-bubble::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    color: var(--primary-orange);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    opacity: 0.2;
    z-index: 0;
}

.custom-quote-bubble p {
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--primary-orange);
}

/* FAQ Section */
.custom-accordion-item {
    border: none;
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.custom-accordion-item .accordion-button {
    background-color: var(--white);
    color: var(--dark-text);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    text-align: left;
}

.custom-accordion-item .accordion-button:not(.collapsed) {
    background-color: var(--primary-orange);
    color: var(--white);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-accordion-item .accordion-button:focus {
    box-shadow: none;
}

.custom-accordion-item .accordion-body {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: #fcfcfc;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.custom-accordion-item .accordion-button .bi {
    color: var(--primary-orange);
}

.custom-accordion-item .accordion-button:not(.collapsed) .bi {
    color: var(--white);
}

/* CTA Section */
.btn-light {
    background-color: var(--white);
    color: var(--primary-orange);
    border-color: var(--white);
}

.btn-light:hover {
    background-color: var(--light-orange);
    color: var(--primary-orange);
    border-color: var(--light-orange);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-orange);
}

/* Newsletter Section */
.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.newsletter-form .btn:hover {
    background-color: #e67e00;
    border-color: #e67e00;
}

/* Contact Section */
.map-placeholder {
    background-color: var(--primary-orange);
    background-image: url('graphics/uploads/Philosophy_Engaging_Library_Discussion_Day_World_Image.jpg'); /* Optional background image */
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 350px;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 0.75rem;
}

.map-placeholder > * {
    position: relative;
    z-index: 1;
}

.contact-forms-container {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form:not(.active-form) {
    display: none;
}

/* Footer */
footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--primary-orange);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background-color: #e67e00 !important;
    border-color: #e67e00 !important;
}

.btn-outline-primary {
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    text-decoration: none !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-orange) !important;
    color: var(--white) !important;
}

/* Form Validation Feedback */
.form-control:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control:focus:valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Cookie Banner */
.cookie-banner {
    z-index: var(--z-index-banner);
    background-color: var(--bg-dark) !important;
}

.cookie-banner p, .cookie-banner a {
    color: var(--white) !important;
}

.cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: var(--white) !important;
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .header-section h1 {
        font-size: 2.5rem;
    }
    .header-section p.lead {
        font-size: 1rem;
    }
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
    }
    .navbar-nav .nav-link {
        text-align: center;
    }
    .display-4 {
        font-size: 2.5rem;
    }
    .map-placeholder {
        min-height: 250px;
    }
}
/* Styles for content within the .userClauseNet wrapper */
.userClauseNet {
    padding-top: 3rem; /* Top padding for the content block */
    padding-bottom: 3rem; /* Bottom padding for the content block */
    padding-left: 1.5rem; /* Left padding for the content block */
    padding-right: 1.5rem; /* Right padding for the content block */
    max-width: 960px; /* Optional: Constrain content width for readability on large screens */
    margin-left: auto; /* Center the content block horizontally */
    margin-right: auto; /* Center the content block horizontally */
}

.userClauseNet h1 {
    font-size: 2.5rem; /* Moderate font size for main headings */
    margin-top: 2.5rem; /* Top margin for spacing before the heading */
    margin-bottom: 1.5rem; /* Bottom margin for spacing after the heading */
    line-height: 1.2; /* Line height for better readability */
    color: var(--dark-text); /* Text color for headings */
}

.userClauseNet h2 {
    font-size: 2rem; /* Moderate font size for sub-headings */
    margin-top: 2rem; /* Top margin for spacing */
    margin-bottom: 1.25rem; /* Bottom margin for spacing */
    line-height: 1.3; /* Line height for better readability */
    color: var(--dark-text); /* Text color for headings */
}

.userClauseNet h3 {
    font-size: 1.75rem; /* Moderate font size for smaller headings */
    margin-top: 1.75rem; /* Top margin for spacing */
    margin-bottom: 1rem; /* Bottom margin for spacing */
    line-height: 1.4; /* Line height for better readability */
    color: var(--dark-text); /* Text color for headings */
}

.userClauseNet h4 {
    font-size: 1.5rem; /* Moderate font size for even smaller headings */
    margin-top: 1.5rem; /* Top margin for spacing */
    margin-bottom: 0.75rem; /* Bottom margin for spacing */
    line-height: 1.5; /* Line height for better readability */
    color: var(--dark-text); /* Text color for headings */
}

.userClauseNet h5 {
    font-size: 1.25rem; /* Moderate font size for least prominent headings */
    margin-top: 1.25rem; /* Top margin for spacing */
    margin-bottom: 0.5rem; /* Bottom margin for spacing */
    line-height: 1.6; /* Line height for better readability */
    color: var(--dark-text); /* Text color for headings */
}

.userClauseNet p {
    font-size: 1rem; /* Standard paragraph font size */
    margin-bottom: 1rem; /* Bottom margin for paragraph spacing */
    line-height: 1.7; /* Generous line height for readability */
    color: var(--light-text); /* Lighter text color for body text */
}

.userClauseNet ul {
    list-style-type: disc; /* Default disc bullet points for unordered lists */
    margin-left: 1.5rem; /* Indent the entire list from the left */
    margin-bottom: 1rem; /* Bottom margin for spacing after the list */
    padding-left: 0; /* Remove default padding, margin handles indent */
}

.userClauseNet ul li {
    font-size: 1rem; /* Font size for list items */
    margin-bottom: 0.5rem; /* Spacing between individual list items */
    line-height: 1.7; /* Generous line height for readability */
    color: var(--light-text); /* Text color for list items */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .userClauseNet {
        padding-left: 1rem; /* Slightly less padding on smaller screens */
        padding-right: 1rem; /* Slightly less padding on smaller screens */
    }
    .userClauseNet h1 {
        font-size: 2rem; /* Adjust h1 size for mobile */
    }
    .userClauseNet h2 {
        font-size: 1.75rem; /* Adjust h2 size for mobile */
    }
    .userClauseNet h3 {
        font-size: 1.5rem; /* Adjust h3 size for mobile */
    }
}
