/* Body */
body {
    background: #ffffff; /* Clean white background */
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.5s ease;
    margin: 0;
    max-width: 100vw; /* Prevent horizontal overflow */
    overflow-x: hidden; /* Hide horizontal overflow */
}
/* Apply Tajawal for Arabic (RTL) direction */
[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
    font-weight: 300; /* Light weight */
}

/* Add any additional Arabic-specific styles below */
[dir="rtl"] .navbar-nav .nav-link {
    font-family: 'Tajawal', sans-serif;
}
#sparkles-canvas {
    display: none;
}

/* Navigation Bar */
.navbar {
    border-bottom: 1px solid #f48fb1;
    background: linear-gradient(145deg, #ffffff, #f8bbd0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
    animation: slideDown 1s ease-out;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar-brand img {
    height: 40px; /* Increased logo size */
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: rotate(10deg); /* Subtle rotation on hover */
}

.navbar-nav .nav-link {
    color: #d81b60; /* Rich pink for links */
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 15px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ff1493; /* Deep pink on hover */
    transform: scale(1.1);
}

.navbar-nav .nav-link.active {
    background-color: #f06292; /* Medium pink for active link */
    border-radius: 8px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #d81b60;
    transition: width 0.3s ease;
    transform: translateX(0);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    transform: translateX(0);
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-nav {
    display: flex;
    gap: 15px;
    margin: 0 auto;
}

.language-switcher {
    margin: 0;
}

.navbar-brand {
    margin-inline-end: 1rem;
}

.subscription-status {
    margin: 0;
}

.subscription-status .btn {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Adjustments for RTL */
[dir="rtl"] .navbar .container-fluid {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-brand {
    margin-inline-end: 0;
    margin-inline-start: 1rem;
}

[dir="rtl"] .language-switcher {
    margin-inline-start: 0;
    margin-inline-end: 1rem;
}

[dir="rtl"] .subscription-status .dropdown-menu {
    left: auto;
    right: 0;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    animation: fadeIn 2s;
}

.form-check-input {
    margin-left: 0px;
}

/* Hero Section */
.hero {
    background-image: url('{{ url_for('static', filename='imgs/6000.png') }}') !important;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 0;
    text-align: center;
    animation: slideIn 1.5s ease-out;
    width: 100vw; /* Set width to viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden; /* Prevent horizontal scrolling */
    margin-bottom: 0; /* Remove any bottom margin */
    padding-bottom: 120px; /* Increase bottom padding to accommodate overlap */
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.hero h1 {
    color: #ffffff;
    font-size: 72px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 76.4px;
    word-wrap: break-word;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    animation: bounceIn 5s infinite;
}

.hero h1 span {
    color: #f48fb1; /* Soft pink for emphasis */
    animation: pulse 2s infinite;
}

/* Add the following to override the font for RTL */
[dir="rtl"] .hero h1 {
    font-family: 'Tajawal', sans-serif;
}

/* Footer */
.footer {
    padding: 0;
    background: #1a1f243a;  /* Dark background from Join Us section */
    color: #fff;
    margin-top: auto; /* Push footer to bottom */
    width: 100%;
    background: #fff;
    padding: 0; /* Remove default padding */
}

.newsletter-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    padding: 30px 0;
    margin: 0;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0; /* Set z-index lower than content */
    pointer-events: none; /* Ensure pseudo-element doesn't block clicks */
}

.newsletter-section .container,
.footer-content {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin: 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #fff;
}

.newsletter-section {
    background: #1a1f246b;
    padding: 40px 0;  /* Maintain original padding */
    text-align: center;
    color: #fff;
}

.newsletter-section h3 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

.newsletter-section p {
    margin-bottom: 30px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-section .btn-join {
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 30px;
    background: transparent;
    border: 3px solid #fff;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.newsletter-section .btn-join:hover {
    background: #fff;
    color: #1a1f2495;
    transform: translateY(-3px);
}

.footer-main {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(216, 27, 96, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #d81b60;
    transform: translateY(-5px);
}

.footer .social-links a img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(320deg) brightness(95%) contrast(97%);
}

.footer .social-links a:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.footer-links {
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.footer-links a {
    margin: 0 10px;
    color: #d81b60;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c2185b;
}

.footer .social-icons div {
    width: 40px;
    height: 40px;
    margin: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    animation: iconAppear 0.5s forwards;
}

.footer .social-icons div:nth-child(1) {
    animation-delay: 0.2s;
}

.footer .social-icons div:nth-child(2) {
    animation-delay: 0.4s;
}

.footer .social-icons div:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes iconAppear {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.footer .social-icons div:hover {
    transform: scale(1.3) rotate(10deg);
}

.footer .social-icons img {
    width: 20px;
    height: 20px;
}

/* Input Field */
.form-control {
    border: 1px solid #f48fb1;
    border-radius: 20px; /* Rounded corners */
    padding: 10px 20px; /* Increased padding */
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: #d81b60;
    box-shadow: none;
}

.unsubscribe-text {
    font-size: 14px;
    color: #ffffff; /* Rich pink */
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Buttons */
.btn-dark {
    background-color: #d81b60; /* Rich pink */
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-dark:hover {
    background-color: #c2185b; /* Darker pink on hover */
    transform: translateY(-3px);
}

/* Adjustments for RTL */
[dir="rtl"] .navbar .container-fluid {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-brand {
    margin-inline-end: 0;
    margin-inline-start: 1rem;
}

[dir="rtl"] .language-switcher {
    margin-inline-start: 0;
    margin-inline-end: 1rem;
}

/* Additional Styling for Content Cards */
.content-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #e1bee7, #f8bbd0); /* Soft purple to pink gradient */
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer .social-icons {
        margin-inline-start: 0;
        margin-bottom: 15px;
    }

    .footer-links {
        width: 100%;
    }

    .navbar-nav {
        margin: 10px 0;
    }
}

.horizontal-grid img {
    width: 100%; /* Make images take full width of their container */
    margin-bottom: 10px; /* Add spacing between images */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Blurry shadow */
    transition: box-shadow 0.3s ease;
    aspect-ratio: 1 / 1; /* Maintains square aspect ratio */
    object-fit: cover;
}

.horizontal-grid img:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); /* Enhanced blur on hover */
}

.horizontal-grid .col-md-2 {
    flex: 1; /* Make columns take equal space */
    max-width: 40%; /* Adjust max-width to control spacing */
    margin: 0 10px; /* Increase horizontal spacing between columns */
}
.horizontal-grid p {
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
    white-space: pre-wrap; /* Ensure text wraps to multiple lines */
}
.horizontal-grid h2, .horizontal-grid h3 {
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
    white-space: pre-wrap; /* Ensure text wraps to multiple lines */
}

/* Adjust Horizontal Grid Columns for Better Responsiveness */
.horizontal-grid .col-md-2 {
    /* Change to allow three columns on medium and larger screens */
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    margin-bottom: 2px; /* Add spacing below columns */
}

/* Center content vertically and horizontally */
.horizontal-grid .col-md-2 div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensure images and text are properly aligned on smaller screens */
@media (max-width: 768px) {
    .horizontal-grid .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Update Horizontal Grid Columns to Display Three per Row */
.horizontal-grid .col-md-2 {
    /* Change to col-md-4 for three columns */
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    margin-bottom: 20px; /* Adjust spacing below columns */
}

/* Center content vertically and horizontally */
.horizontal-grid .col-md-2 div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensure images and text stack on smaller screens */
@media (max-width: 768px) {
    .horizontal-grid .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.no-rtl {
    direction: ltr !important;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #e1bee7, #f8bbd0);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}
.card-img-top {
    height: auto;
    object-fit: cover;
}
.horizontal-grid .col-md-4, .horizontal-grid .col-sm-6, .horizontal-grid .col-12 {
    flex: 1 0 auto;
    max-width: 100%;
}
@media (min-width: 576px) {
    .horizontal-grid .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 768px) {
    .horizontal-grid .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
.horizontal-grid {
    margin-top: 0; /* Remove top margin */
}

.hero, .horizontal-grid {
    flex: 1; /* Make both sections take equal vertical space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card .post-img {
    overflow: hidden;
    position: relative;
    border-radius: 15px 15px 0 0;
}

.card .post-img img {
    transition: 0.5s ease;
}

.card:hover .post-img img {
    transform: scale(1.1);
}

.card .title {
    margin: 15px 0;
    font-size: 22px;
    font-weight: 600;
}

.card .title a {
    color: #d81b60;
    text-decoration: none;
    transition: 0.3s;
}

.card .title a:hover {
    color: #ff1493;
}

.card .post-category {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* Features Section Styles */
.features {
    background: #f8f9fa; /* Light gray background */
    padding: 60px 0;
}

.features-item {
    padding: 60px 40px 120px; /* Increased bottom padding */
    border-radius: 0; /* Remove border radius */
    background: #1a1f24b9;
    margin: 0; /* Remove margin */
    width: 100vw; /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    transform: translateY(-60px); /* Pull the section up to overlap with hero */
    margin-bottom: -60px; /* Compensate for the upward shift */
    position: relative;
    z-index: 2;
}

.features-item > .container {
    max-width: 100%;
    padding: 0;
}

.features-item .col-lg-5,
.features-item .col-lg-7 {
    padding: 0 15px;
}

.image-stack {
    position: relative;
    width: 100%;
    height: auto; /* Remove fixed height */
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.image-stack img {
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    max-height: 90%; /* Ensure images do not expand beyond container */
}

.stack-front {
    position: relative;
    z-index: 2;
    width: 60%; /* Adjust width */
    height: auto; /* Remove fixed height */
    object-fit: contain; /* Change to contain */
    max-height: 90%; /* Ensure images do not expand beyond container */
}

.stack-back {
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 45%; /* Adjust width */
    height: auto; /* Remove fixed height */
    object-fit: contain; /* Change to contain */
    z-index: 1;
    max-height: 90%; /* Ensure images do not expand beyond container */
}

/* Section Titles */
.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #d81b60;
    position: relative;
    margin-bottom: 20px;
}

.section-title p {
    color: #666;
    margin-bottom: 0;
}

.recent-posts {
    padding: 60px 0;
}

.recent-posts .post-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.recent-posts .post-img img {
    transition: 0.5s;
    width: 100%;
    height: 200px;  /* Maintain original height */
    object-fit: cover;
}

.recent-posts article:hover .post-img img {
    transform: scale(1.1);
}

.recent-posts .title {
    margin-bottom: 15px;
    font-size: 20px;  /* Adjust title size */
    margin: 15px 0 10px;
}

.recent-posts .title a {
    color: #d81b60;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 900; /* Make the title bold and thick */
}

.recent-posts .title a:hover {
    color: #ff1493;
}

.recent-posts .post-category {
    color: #666;
    font-style: italic;
    font-weight: bold; /* Make the post category bold */
}

article {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;  /* Make all articles same height */
    display: flex;
    flex-direction: column;
}

article:hover {
    transform: translateY(-10px);
}

/* Update/Add these styles in your existing style block */

/* Navigation Bar Updates */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px 0;
    transition: all 0.5s;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticked {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9) !important;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 5px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1f24;
    font-family: var(--font-primary);
    white-space: nowrap;
    transition: all 0.3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
    color: #d81b60;
    background: transparent;
}

.navbar .navbar-nav .nav-link:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #d81b60;
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out;
}

.navbar .navbar-nav .nav-link:hover:before {
    visibility: visible;
    width: 100%;
}

/* Footer Updates */
.footer {
    background: #fff;
    padding: 30px 0;
    font-size: 14px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .social-links {
    display: flex;
    gap: 15px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(216, 27, 96, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #d81b60;
    transform: translateY(-5px);
}

.footer .social-links a img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(320deg) brightness(95%) contrast(97%);
}

.footer .social-links a:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

/* Update container widths */
.container {
    max-width: 1140px;  /* Match original container width */
    padding: 0 15px;
    margin: 0 auto;
}

.container, .container-fluid {
    max-width: 100%; /* Ensure containers do not exceed screen width */
}

/* Update Recent Posts section styling */
.recent-posts .title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin: 15px 0;
}

.recent-posts .title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #d81b60;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.recent-posts .post-category {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.section-title h2 {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 70px;
    height: 3px;
    background: #d81b60;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Update Recent Posts image styles */
.recent-posts .post-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin-bottom: 20px;
    width: 100%;
    height: 300px;  /* Fixed height for consistent look */
}

.recent-posts .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This ensures image fills container while maintaining aspect ratio */
    transition: 0.5s;
}

/* Ensure article takes full height */
.recent-posts article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recent-posts .post-img {
    flex: 0 0 300px;  /* Fixed height for image container */
}

.recent-posts .post-content {
    flex: 1;  /* Takes remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Update section styles */
.section {
    padding: 60px 0;
}

.section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Remove any bottom margins from the last section */
#recent-posts {
    margin-bottom: 0;
}

/* Update footer styles */
.footer {
    margin-top: auto;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.newsletter-section {
    width: 100%;
    margin: 0;
    padding: 30px 0;
    background: #1a1f24fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Remove any additional margins/paddings */
.footer-main,
.footer .container,
.newsletter-section .container {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Ensure social links and footer links are properly spaced */
.social-links {
    margin: 0;
    padding: 0;
}

.footer-links {
    margin: 0;
    padding: 0;
}

/* Add styles for the disabled button state */
.btn-subscribe:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.65;
}

.phone-input-group input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Add styles for phone input section */
.phone-input-group {
    direction: ltr !important;
    display: flex;
    align-items: center;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 8px;
}

.phone-prefix img {
    width: 20px;
    height: 20px;
}

/* Override RTL styles for subscribe section */
[dir="rtl"] .phone-input-section {
    direction: ltr !important;
}

[dir="rtl"] .btn-subscribe {
    margin-right: 8px;
    margin-left: 0;
}

.content-card {
    background: radial-gradient(circle at top right, #f8e8e8bb 0%, #f1a3a3ae 40%, #f1a3a3 70%, #f47b7b 100%); /* Creamy gradient */
    border-radius: 0; /* Remove border radius for sharp edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e2e2; /* Light border */
    padding: 15px;
    height: 100%; /* Full height */
    overflow: hidden; /* Hide overflow */
    display: flex;
    flex-direction: column;
}

/* Update the active link styling to match products.html */
.navbar-nav .nav-link.active {
    color: #ffffff !important; /* White text */
    background-color: #f06292 !important; /* Medium pink background */
    border-radius: 8px;
    padding: 10px 15px;
}

/* Remove any conflicting styles */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #000000 !important;
}

/* Update the active link styling */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: #f06292 !important;
    border-radius: 8px;
    padding: 10px 15px;
}

/* Remove underline animation for active links */
.navbar-nav .nav-link.active::after {
    display: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* Override the conflicting navbar styles */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #000000 !important; /* Black text on hover/focus */
}

/* Keep the active link styles separate */
.navbar-nav .nav-link.active {
    color: #000000 !important; /* White text for active state */
    background-color: #f06292 !important;
    border-radius: 8px;
    padding: 10px 15px;
}

/* Remove this conflicting style block if it exists */
/*
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}
*/
@media (min-width: 992px) {
    .recent-posts .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (min-width: 1200px) {
    .recent-posts .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Terms Agreement Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
}

.form-check-label a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-check-label a:hover {
    color: #f06292 !important;
}

/* RTL adjustments for checkbox */
[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}

/* OTP Section Styles */
.otp-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
}

.otp-input {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;  /* Changed from 24px to 18px */
    text-align: center;
    margin: 0 5px;
    border: 2px solid #d81b60;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #d81b60;
    box-shadow: 0 0 0 0.2rem rgba(216, 27, 96, 0.25);
}

/* RTL adjustments for OTP inputs */
[dir="rtl"] .otp-container {
    direction: ltr;  /* Keep OTP input left-to-right */
}

/* Subscription Status Styles */
.subscription-status .btn {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: #dc3545;
}

.status-indicator.active {
    background-color: #28a745;
}

[dir="rtl"] .status-indicator {
    margin-right: 0;
    margin-left: 5px;
}

.subscription-status .dropdown-menu {
    min-width: 200px;
    padding: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subscription-status .dropdown-item {
    padding: 8px 16px;
    border-radius: 4px;
}

.subscription-status .dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.subscription-status .dropdown-item.text-danger:hover {
    background-color: rgba(220,53,69,0.1);
}

/* OTP Input Styles */
.otp-input {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;  /* Changed from 24px to 18px */
    text-align: center;
    margin: 0 5px;
    border: 2px solid #d81b60;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.25);
    border-color: #f06292;
}

.otp-input.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Remove the is-invalid style */
.otp-input.verifying {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #6c757d;
}

/* Add style to hide error messages */
#formErrors {
    display: none !important;
}

/* Improve accessibility */
.otp-input:focus-visible {
    outline: 3px solid #d81b60;
    outline-offset: 2px;
}

/* Add visual feedback for disabled state */
.otp-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add styles for the flex container */
.d-flex.align-items-center {
    gap: 0.5rem;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden_loader {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}