/* frontend/site.css */

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif; /* Poppins for headings and overall modern feel */
    color: #1a202c; /* Default dark text color */
    background-color: #ffffff; /* White background */
}

/* Custom Fonts for Headings (if different from Poppins, but Poppins is good for both) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
}

/* No shadows for a 'writer's blog' minimalist feel */
.shadow-lg, .shadow-sm {
    box-shadow: none !important;
}

/* Header Navigation */
header {
    background-color: #ffffff;
    box-shadow: none; /* No shadow */
    border-bottom: 1px solid #e2e8f0; /* Light gray border */
}

header a {
    text-decoration: none; /* Remove underline from nav links */
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section > div {
    position: relative;
    z-index: 2;
}

/* Articles Grid */
.articles-grid-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0; /* Light gray border */
}

.articles-grid-item img {
    transition: transform 0.5s ease-in-out;
}

.articles-grid-item .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.articles-grid-item:hover .overlay {
    opacity: 1;
}

.articles-grid-item:hover img {
    transform: scale(1.05);
}

/* Popular Posts Widget */
.popular-posts-widget {
    background-color: #f8f8f8; /* Light gray background */
    border: 1px solid #e2e8f0;
    box-shadow: none; /* No shadow */
}

/* Categories Carousel */
#categories-carousel {
    display: flex;
    overflow-x: auto;
    justify-content: space-around;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

#categories-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

#categories-carousel a {
    text-decoration: none;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
}

#categories-carousel a:hover {
    background-color: #e5e7eb;
}

/* About Author Timeline */
.pl-8 {
    padding-left: 2rem;
}

.border-l-2 {
    border-left-width: 2px;
}

.relative .absolute {
    left: -45px; /* Adjust to center the dot on the line */
}
.rotate-180 {
  transform: rotate(180deg);
}

/* Modals */
.modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    box-shadow: none; /* No shadow */
    border: 1px solid #e2e8f0;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    text-decoration: none; /* Ensure no underline */
}

/* Ensure all buttons have no underline */
button {
    text-decoration: none !important;
}
/* New styles for .securePolicyGrid and its children */

/* Container for policy or detailed content */
.securePolicyGrid {
    padding: 4rem 2rem; /* Top/bottom padding 64px, left/right padding 32px */
    max-width: 1000px; /* Maximum width for readability on larger screens */
    margin: 0 auto; /* Center the container horizontally */
    line-height: 1.6; /* Default line height for better readability within the grid */
    color: #1a202c; /* Inherit the main text color */
}

/* Heading 1 styles within the policy grid */
.securePolicyGrid h1 {
    font-size: 2.25em; /* Approx. 36px, a prominent but not overly large main heading */
    font-weight: 700; /* Bold */
    margin-bottom: 1.5rem; /* Space below the heading */
    line-height: 1.2; /* Tighter line height for headings */
    color: #1a202c; /* Dark text color */
}

/* Heading 2 styles within the policy grid */
.securePolicyGrid h2 {
    font-size: 1.75em; /* Approx. 28px */
    font-weight: 600; /* Semi-bold */
    margin-top: 2.5rem; /* Space above the heading */
    margin-bottom: 1.25rem; /* Space below the heading */
    line-height: 1.3;
    color: #1a202c;
}

/* Heading 3 styles within the policy grid */
.securePolicyGrid h3 {
    font-size: 1.5em; /* Approx. 24px */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #1a202c;
}

/* Heading 4 styles within the policy grid */
.securePolicyGrid h4 {
    font-size: 1.25em; /* Approx. 20px */
    font-weight: 500; /* Medium */
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #1a202c;
}

/* Heading 5 styles within the policy grid */
.securePolicyGrid h5 {
    font-size: 1.125em; /* Approx. 18px */
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #1a202c;
}

/* Paragraph styles within the policy grid */
.securePolicyGrid p {
    font-size: 1em; /* Base font size, e.g., 16px */
    line-height: inherit; /* Inherit line-height from parent (.securePolicyGrid) */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: inherit; /* Inherit text color from parent */
}

/* Unordered list styles within the policy grid */
.securePolicyGrid ul {
    list-style-type: disc; /* Standard disc bullet points */
    margin-left: 1.5rem; /* Indent the list */
    padding-left: 0; /* No extra padding on the left */
    margin-bottom: 1rem; /* Space after the list */
    color: inherit;
}

/* List item styles within the policy grid */
.securePolicyGrid li {
    font-size: 1em; /* Inherit paragraph font size */
    line-height: inherit; /* Inherit line-height from parent */
    margin-bottom: 0.5rem; /* Space between list items */
    color: inherit;
}

/* Remove bottom margin for the last paragraph or list in the container */
.securePolicyGrid p:last-child,
.securePolicyGrid ul:last-child {
    margin-bottom: 0;
}
section {
    overflow: hidden;
}
#hero h1 {
    text-align: center;
    color: #ffffff !important;
}
nav .flex{
    flex-wrap: wrap;
    justify-content: center;
}
header .flex{
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
    align-items: center;
}
 .custom-faq-section * {
            box-sizing: border-box;
        }

        .custom-faq-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 64px 16px;
            background-color: white;
            font-family: 'Poppins', Arial, sans-serif;
        }

        .custom-faq-title {
            font-size: 2.5rem !important;
            font-weight: bold !important;
            text-align: center !important;
            margin-bottom: 40px !important;
            color: #333 !important;
            line-height: 1.2 !important;
        }

        .custom-faq-container {
            max-width: 768px;
            margin: 0 auto;
        }

        .custom-faq-item {
            border: 1px solid #e5e7eb !important;
            border-radius: 8px !important;
            margin-bottom: 16px !important;
            overflow: hidden !important;
            background: white !important;
            opacity: 0;
            transform: translateY(20px);
            animation: customFadeUp 0.6s ease-out forwards;
        }

        .custom-faq-item:nth-child(1) { animation-delay: 0.1s; }
        .custom-faq-item:nth-child(2) { animation-delay: 0.2s; }
        .custom-faq-item:nth-child(3) { animation-delay: 0.3s; }

        @keyframes customFadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .custom-faq-button {
            width: 100% !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 20px !important;
            font-size: 1.25rem !important;
            font-weight: 600 !important;
            text-align: left !important;
            background-color: #f9fafb !important;
            border: none !important;
            cursor: pointer !important;
            transition: background-color 0.3s ease !important;
            color: #333 !important;
            outline: none !important;
            text-decoration: none !important;
            font-family: inherit !important;
            line-height: 1.4 !important;
        }

        .custom-faq-button:hover {
            background-color: #f3f4f6 !important;
            text-decoration: none !important;
        }

        .custom-faq-button:focus {
            outline: none !important;
            text-decoration: none !important;
        }

        .custom-faq-button.is-active {
            background-color: #e5e7eb !important;
        }

        .custom-faq-icon {
            font-size: 1.5rem !important;
            transition: transform 0.3s ease !important;
            user-select: none !important;
            color: #666 !important;
            font-weight: normal !important;
        }

        .custom-faq-icon.is-rotated {
            transform: rotate(180deg) !important;
        }

        .custom-faq-content {
            padding: 0 20px !important;
            font-size: 1.125rem !important;
            color: #333 !important;
            background-color: white !important;
            max-height: 0 !important;
            overflow: hidden !important;
            transition: max-height 0.4s ease-in-out, padding 0.2s ease-in-out !important;
            line-height: 1.6 !important;
        }

        .custom-faq-content.is-open {
            padding: 20px !important;
            max-height: 1000px !important; /* Large enough value */
        }

        .custom-highlight {
            font-weight: bold !important;
            color: #1f2937 !important;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .custom-faq-title {
                font-size: 2rem !important;
            }
            
            .custom-faq-button {
                font-size: 1.1rem !important;
                padding: 16px !important;
            }
            
            .custom-faq-content {
                font-size: 1rem !important;
            }
            
            .custom-faq-content.is-open {
                padding: 16px !important;
            }
        }

        /* Override any Bootstrap interference */
        .custom-faq-section button:not(:disabled) {
            cursor: pointer !important;
        }

        .custom-faq-section .btn {
            all: unset !important;
        }