/* --- Base & Layout Styles --- */
body {
    font-family: "Cairo", "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    /* Added top padding */
    text-align: center;
}

/* Removed language switcher styles */

/* --- Main Heading Style --- */
.main-heading {
    color: #1a237e;
    font-size: 2.4em;
    margin-bottom: 25px;
    /* Increased margin */
    font-weight: bold;
    text-align: center;
}

/* --- Personalization Section Styles --- */
#personalization-section {
    background-color: #ffffff;
    padding: 30px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#personalization-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a237e;
    font-size: 1.5em;
    font-weight: 600;
}

.selector-group {
    margin-bottom: 20px;
}

.selector-group:last-child {
    margin-bottom: 0;
}

.selector-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
    font-size: 1.05em;
}

.selector-buttons {
    display: flex;
    justify-content: center;
    gap: 12px 15px;
    flex-wrap: wrap;
}

.selector-buttons button {
    padding: 12px 22px;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.25s ease-out;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.selector-buttons button:hover:not(.active) {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.selector-buttons button.active {
    background-color: #1a237e;
    color: #fff;
    border-color: #1a237e;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.2);
    transform: translateY(-1px);
}

.selector-buttons button i,
.selector-buttons button span.icon {
    margin-left: 6px;
    font-size: 1.1em;
}

/* --- Hero / Intro Section --- */
#intro-section {
    padding: 0 0 30px 0;
    /* Removed top padding */
    text-align: center;
}

/* H2 styles moved to .main-heading */
#dynamic-intro-sentence {
    color: #ff6f00;
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px auto 15px auto;
    min-height: 1.2em;
    display: block;
}

#intro-section .section-intro {
    color: #444;
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.social-proof-intro {
    color: #555;
    font-size: 1em;
    margin: 0 auto 30px auto;
    max-width: 700px;
    font-style: italic;
}

/* --- Slider Section Styles --- */
.slider-section {
    padding: 30px 0;
    background-color: #fff;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-section h3 {
    color: #1a237e;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

.transformation-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
    min-height: 200px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ff6f00 !important;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: #ff6f00 !important;
}

.transformation-slider.swiper-initialized {
    background-color: transparent;
}

.transformation-slider[style*="display: none"] {
    min-height: 0;
}

.no-results-message {
    padding: 40px 20px;
    color: #888;
    font-style: italic;
    text-align: center;
    display: none;
}

/* --- Packages Section --- */
#programs {
    padding: 40px 0;
    background-color: #f0f2f5;
}

.package-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.package-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.package-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.package-card.popular {
    border-top: 5px solid #ff6f00;
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6f00;
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 12px 12px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
    border: 1px solid #e65100;
    border-top: none;
}

.package-card.popular .package-content {
    padding-top: 35px;
}

.package-card h3 {
    color: #1a237e;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
}

.ideal-for-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.ideal-for-text {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 20px;
}

.key-points-heading {
    font-size: 0.95em;
    font-weight: bold;
    color: #1a237e;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.key-points-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.9em;
    flex-grow: 1;
}

.key-points-list li {
    margin-bottom: 10px;
    padding-right: 28px;
    position: relative;
    line-height: 1.5;
}

.key-points-list li::before {
    content: "";
    position: absolute;
    right: 0;
    left: auto;
    top: 3px;
    font-size: 1.2em;
    font-weight: bold;
    width: 20px;
    text-align: center;
}

.key-points-list .icon-guidance::before {
    content: "🎯";
    color: #2980b9;
}

/* Target/Goal */
.key-points-list .icon-checkin::before {
    content: "📅";
    color: #27ae60;
}

/* Calendar/Check-in/Weekly/Monthly */
.key-points-list .icon-support::before {
    content: "💬";
    color: #8e44ad;
}

/* Chat/Support */
.key-points-list .icon-flexibility::before {
    content: "🤸";
    color: #f39c12;
}

/* Flexibility */
.key-points-list .icon-content::before {
    content: "✨";
    color: #d35400;
}

/* Sparkle/Content/Exclusive */
.key-points-list .icon-coach::before {
    content: "⭐";
    color: #c0392b;
}

/* Star/Coach */
.key-points-list .icon-update::before {
    content: "📝";
    color: #34495e;
}

/* Notes/Update */
.key-points-list .icon-book::before {
    content: "📚";
    color: #7f8c8d;
}

/* Book for cookbook */
.key-points-list .icon-motivation::before {
    content: "💪";
    color: #e67e22;
}

/* Motivation/Follow-up */
.key-points-list .icon-cashback::before {
    content: "💰";
    color: #16a085;
}

/* Cashback */

/* Pricing Module styles */
.pricing-module {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.duration-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.duration-option {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background-color: #f1f1f1;
    color: #555;
}

.duration-option.active {
    background-color: #1a237e;
    color: #ffffff;
    border-color: #1a237e;
    font-weight: bold;
}

.duration-option:hover:not(.active) {
    background-color: #e0e0e0;
}

.price-display-area {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.price-display-area .price-label {
    font-size: 0.85em;
    color: #555;
    display: block;
    margin-bottom: 3px;
}

.price-value-container {
    font-size: 2em;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 8px;
    line-height: 1.2;
}

.price-value-container .duration-text {
    font-size: 0.5em;
    font-weight: normal;
    color: #555;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 0;
}

.currency-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.currency-selector-container label {
    color: #555;
    font-size: 0.9em;
}

.currency-selector {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}

.payment-button {
    display: inline-block;
    width: 85%;
    background-color: #ff6f00;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.payment-button:hover {
    background-color: #e65100;
}

.disclaimer-note {
    font-size: 0.75em;
    font-weight: bold;
    color: #c0392b;
    margin-top: 15px;
}

/* --- Footer --- */
footer {
    margin-top: 50px;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    background-color: #e9ecef;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .package-container {
        gap: 20px;
    }

    .package-card {
        max-width: 45%;
    }

    .main-heading {
        font-size: 2.2em;
    }

    .slider-section h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 680px) {
    .main-heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    #intro-section .section-intro {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .social-proof-intro {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    #personalization-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    #personalization-section h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .selector-group label {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .selector-buttons button {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .selector-buttons {
        gap: 8px 10px;
    }

    .slider-section {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .slider-section h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px !important;
    }

    .package-container {
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        max-width: 90%;
        width: 90%;
    }

    .package-card h3 {
        font-size: 1.4em;
    }

    .ideal-for-text {
        font-size: 0.9em;
    }

    .key-points-list {
        font-size: 0.85em;
    }

    [dir="rtl"] .key-points-list li {
        padding-left: 0;
        padding-right: 25px;
        margin-bottom: 8px;
    }

    [dir="ltr"] .key-points-list li {
        padding-left: 25px;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .key-points-list li::before {
        top: 2px;
        font-size: 1.1em;
    }

    .pricing-module {
        padding-top: 10px;
    }

    .price-value-container {
        font-size: 1.8em;
    }

    .payment-button {
        font-size: 1em;
        padding: 12px 15px;
    }
}

/* --- Explicit RTL Styles --- */
[dir="rtl"] body {
    text-align: right;
}

/* Removed language switcher styles */
[dir="rtl"] .package-content {
    text-align: right;
}

[dir="rtl"] .key-points-list li {
    padding-left: 0;
    padding-right: 28px;
}

[dir="rtl"] .key-points-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .price-value-container .duration-text {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .selector-buttons button i,
[dir="rtl"] .selector-buttons button span.icon {
    margin-right: 0;
    margin-left: 6px;
}

.subscription-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.modal-content {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: right;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 20px;
  color: #222;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

.modal-content input:focus {
  border-color: #007bff;
  outline: none;
}

.modal-content button {
  background-color: #222;
  color: white;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #444;
}

.close-button {
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
}
