/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fff5f5; /* Light pink theme */
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #fce4ec;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: clamp(1rem, 3vw, 1.1rem);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d81b60;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) 1rem; /* Reduced padding to bring Welcome closer to header */
    background-color: #fef1f5;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 2rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background-color: #d81b60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

/* Magazine Carousel */
.magazine-carousel {
    padding: clamp(2rem, 8vw, 3rem) 1rem;
    text-align: center;
}

.magazine-carousel h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px; /* Increased for larger carousel */
    margin: 0 auto;
    overflow: hidden;
    min-height: 400px; /* Increased carousel height */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 calc(100% / 3); /* 3 slides on desktop */
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    max-height: 300px; /* Increased image height */
    object-fit: contain; /* Images fit without cropping */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-link {
    display: block;
    text-decoration: none;
}

.carousel-item-info {
    text-align: center;
    padding: 1rem 0;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #d81b60;
}

/* Featured Articles and Sample Pages */
.featured, .sample-pages, .about, .subscribe, .register, .login, .account, .faq {
    padding: clamp(2rem, 8vw, 3rem) 1rem;
    text-align: center;
}

.featured h2, .sample-pages h2, .about h1, .subscribe h1, .register h1, .login h1, .account h1, .faq h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.articles-container, .sample-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.article-box, .sample-box {
    padding: 1.5rem;
    background-color: #FFE4E1;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-box:hover, .sample-box:hover {
    transform: translateY(-5px);
}

/* Subscription Plans */
.plan-box {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    max-width: 500px;
}

.plan-box ul {
    list-style: disc;
    margin-left: 1.5rem;
    text-align: left;
}

/* Forms (Register/Login) */
.register form, .login form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.75rem;
}

.register input, .login input, .register textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.register button, .login button {
    padding: 0.75rem;
    background-color: #d81b60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: background-color 0.3s ease;
}

.register button:hover, .login button:hover {
    background-color: #c2185b;
}

.error {
    color: #e74c3c;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Account Page */
.account p {
    margin-bottom: 0.75rem;
}

.account-link {
    display: block;
    margin: 0.75rem 0;
    color: #d81b60;
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.account-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: #fef1f5;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8e1e9;
}

.faq-question[aria-expanded="true"] {
    background-color: #f8e1e9;
}

.faq-toggle {
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1rem;
}

.faq-answer p {
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #fce4ec;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.footer-links a:hover {
    color: #d81b60;
}

/* Contact Section */
.contact-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.contact-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}

.contact-container p {
    color: #555;
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f1c40f;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #2c3e50;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #f1c40f;
    color: #2c3e50;
}

.success-message {
    background: #2ecc71;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.error-message {
    background: #e74c3c;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-card p {
    margin: 0.5rem 0;
    color: #333;
}

.info-card a {
    color: #2c3e50;
    text-decoration: none;
}

.info-card a:hover {
    color: #f1c40f;
}

/* Policy Section */
.policy-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.policy-container {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.policy-container h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.last-updated {
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.policy-container h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
}

.policy-container p {
    margin-bottom: 1rem;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.policy-container ul {
    margin-bottom: 1rem;
    padding: 0;
    list-style-position: inside;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.policy-container ul li {
    margin-bottom: 0.5rem;
    color: #333;
    text-align: left;
}

.policy-container a {
    color: #2c3e50;
    text-decoration: none;
}

.policy-container a:hover {
    color: #f1c40f;
}

/* Donate Section */
.donate-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.donate-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.donate-container h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.intro-text {
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.donate-form {
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.donate-form h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.amount-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.currency-symbol {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.donate-form input[type="number"] {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.2rem;
    width: 250px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.donate-form input[type="number"]:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
    outline: none;
}

.donate-btn {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.donate-btn:hover {
    background: #f1c40f;
    color: #2c3e50;
    transform: translateY(-2px);
}

.donate-container p {
    margin-bottom: 1rem;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.donate-container ul {
    margin-bottom: 1rem;
    padding: 0;
    list-style-position: inside;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.donate-container ul li {
    margin-bottom: 0.5rem;
    color: #333;
    text-align: left;
}

.thank-you {
    font-style: italic;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.donate-container a {
    color: #2c3e50;
    text-decoration: none;
}

.donate-container a:hover {
    color: #f1c40f;
}

/* Edition Section */
.edition-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.edition-details {
    max-width: 500px;
}

.subscription-options .cta-button {
    margin: 0.5rem 1rem 0 0;
    display: inline-block;
}

.edition-content {
    padding: 2rem;
    text-align: center;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.content-item {
    max-width: 300px;
    text-align: left;
}

.content-image {
    width: 100%;
    border-radius: 10px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #d81b60;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.success {
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: clamp(1.5rem, 4vw, 2rem) 1rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .carousel-item {
        flex: 0 0 calc(100% / 2); /* 2 slides on tablet */
    }

    .carousel-container {
        max-width: 90%;
    }

    .articles-container, .sample-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .plan-box, .faq-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fce4ec;
        padding: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: clamp(1rem, 3vw, 1.5rem) 1rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 0.75rem;
    }

    .carousel-item {
        flex: 0 0 100%; /* 1 slide on mobile */
    }

    .articles-container, .sample-container {
        grid-template-columns: 1fr;
    }

    .article-box, .sample-box {
        width: 100%;
        max-width: 400px;
    }

    .plan-box, .faq-container {
        max-width: 100%;
        padding: 1rem;
    }

    .register form, .login form {
        max-width: 90%;
    }

    .faq-item {
        max-width: 90%;
    }

    .carousel-prev, .carousel-next {
        padding: 0.3rem 0.8rem;
        font-size: 1.2rem;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form, .contact-info {
        max-width: 100%;
    }

    .donate-container {
        padding: 1.5rem;
    }

    .donate-container h1 {
        font-size: 2rem;
    }

    .donate-container h2 {
        font-size: 1.5rem;
    }

    .donate-container p, .donate-container ul {
        max-width: 100%;
    }

    .amount-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .donate-form input[type="number"] {
        width: 100%;
        margin-bottom: 1rem;
    }

    .donate-btn {
        width: 100%;
        padding: 1rem;
    }

    .policy-container {
        padding: 1.5rem;
    }

    .policy-container h1 {
        font-size: 2rem;
    }

    .policy-container h2 {
        font-size: 1.5rem;
    }

    .policy-container p, .policy-container ul {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .nav-links a {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }

    .hero h1 {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .hero p {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
    }

    .cta-button {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
    }

    .featured h2, .sample-pages h2, .about h1, .subscribe h1, .register h1, .login h1, .account h1, .faq h1 {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .register input, .login input, .register textarea {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
    }

    .register button, .login button {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
    }

    .faq-question {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .faq-answer p {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .carousel-prev, .carousel-next {
        padding: 0.2rem 0.6rem;
        font-size: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .contact-container h2 {
        font-size: 1.8rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .form-group input, .form-group textarea {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 0.9rem;
    }

    .donate-container h1 {
        font-size: 1.8rem;
    }

    .donate-container h2 {
        font-size: 1.3rem;
    }

    .donate-form {
        padding: 1.5rem;
    }

    .donate-form input[type="number"] {
        font-size: 1rem;
    }

    .donate-btn {
        font-size: 1rem;
    }

    .policy-container h1 {
        font-size: 1.8rem;
    }

    .policy-container h2 {
        font-size: 1.3rem;
    }

    .policy-container {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    .carousel-prev, .carousel-next {
        display: block; /* Ensure buttons are visible on larger screens */
    }
}
