:root {
    --container-inline-padding: 1.25rem;
}

.rbt-section-gap .container {
    padding-left: var(--container-inline-padding);
    padding-right: var(--container-inline-padding);
}

/* Payment tab buttons desktop styling */
.checkout_area .payment-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkout_area .payment-tab-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

.checkout_area .payment-tab-btn:not(.active) {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.checkout_area .payment-tab-btn:not(.active):hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.checkout_area .payment-tab-btn i {
    font-size: 1.1rem;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Textarea and form input optimization */
textarea.form-text,
textarea.form-control,
.form-textarea {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 991px) {
    textarea.form-text,
    textarea.form-control,
    .form-textarea {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 575px) {
    textarea.form-text,
    textarea.form-control,
    .form-textarea {
        padding-left: 10px;
        padding-right: 10px;
    }
}

body.short-description-highlight .short-description-card {
    background: var(--short-desc-bg-color, #ffffff);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

/* Payment tab buttons desktop styling */
.checkout_area .payment-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkout_area .payment-tab-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

.checkout_area .payment-tab-btn:not(.active) {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.checkout_area .payment-tab-btn:not(.active):hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.checkout_area .payment-tab-btn i {
    font-size: 1.1rem;
}

@media (max-width: 1199px) {
    .rbt-header .mainbar-row {
        gap: 0.75rem;
    }

    .rbt-header .mainbar-row .rbt-main-navigation {
        margin: 0 15px;
    }

    .rbt-banner-area .banner-content .title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .rbt-contact-form.contact-form-style-1 {
        border-radius: 20px;
    }
}

@media (max-width: 991px) {
    .rbt-header .mainbar-row {
        flex-wrap: nowrap;
        align-items: center;
    }

    .rbt-header .header-left,
    .rbt-header .header-right {
        width: auto;
    }

    .rbt-header .header-right {
        margin-left: auto;
    }

    .header-right .quick-access {
        justify-content: flex-end;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }

    .hamberger {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-left: 6px;
    }

    .hamberger .hamberger-label {
        font-size: 11px;
        line-height: 1;
        color: var(--color-body);
        font-weight: 500;
    }

    .rbt-banner-area .banner-content {
        text-align: center;
    }

    .rbt-banner-area .banner-content .title {
        font-size: 2.2rem;
    }

    .rbt-banner-area .rbt-contact-form {
        margin-top: 1.5rem;
        padding: 2rem 1.75rem;
        box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    }

    .checkout_area .rbt-my-account-tab-button {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout_area .payment-tab-btn {
        width: 100%;
        text-align: center;
        padding: 1.25rem 1rem !important;
        margin-bottom: 0.75rem;
        border-radius: 8px !important;
        font-size: 1.05rem;
        min-height: 56px;
    }

    .checkout_area .payment-tab-btn i {
        font-size: 1.2rem;
        margin-right: 8px !important;
    }

    .checkout_area .checkout-content-wrapper,
    .checkout_area .checkout-cart-total,
    .checkout_area .order-payment-wrapper {
        padding: 1.5rem;
    }

    .checkout_area select,
    .checkout_area input,
    .checkout_area textarea {
        min-height: 52px;
        font-size: 1rem;
    }

    .checkout_area select[name="country"],
    .checkout_area select[name="city"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .checkout_area select[name="country"]:focus,
    .checkout_area select[name="city"]:focus {
        outline: 2px solid var(--color-primary, #f97316);
        outline-offset: 2px;
    }
}

@media (max-width: 767px) {
    .header-right .rbt-btn-wrapper,
    .header-right .rbt-btn-wrapper .rbt-btn {
        width: 100%;
        text-align: center;
    }

    /* Kursa Başla butonu mobil iyileştirmeleri */
    .rbt-user-wrapper .rbt-user-menu-list-wrapper {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }

    .rbt-btn.btn-gradient {
        min-height: 48px;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    /* Plan Madde 20: Mobil Kursa Başla butonu - split buton düzenlemesi */
    .buy-now-btn.d-flex {
        gap: 0.75rem !important;
    }

    .buy-now-btn .mobile-login-btn {
        margin-top: 0;
    }

    .rbt-banner-area .rbt-contact-form .form-submit-group button {
        min-height: 54px;
        font-size: 1rem;
    }

    .rbt-course-area .read-more-btn {
        text-align: center !important;
        margin-top: 1rem;
    }

    .checkout_area .checkout-form {
        flex-direction: column;
    }

    .checkout_area .checkout-form > div {
        width: 100%;
    }

    .checkout_area .checkout-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 575px) {
    .rbt-banner-area .section-title .subtitle {
        white-space: normal;
    }

    .rbt-banner-area .banner-content .title {
        font-size: 1.85rem;
    }

    /* Plan Madde 20: Mobil Kursa Başla butonu - küçük ekranlar için gap ayarı */
    .buy-now-btn.d-flex {
        gap: 0.5rem !important;
    }

    .popup-mobile-menu .mainmenu > li > a {
        font-size: 1rem;
        padding: 0.65rem 0;
    }

    /* Buton boyutları mobilde optimize */
    .rbt-btn {
        min-height: 44px;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .rbt-btn.btn-sm {
        min-height: 40px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Payment tab buttons mobile optimization - Daha büyük butonlar */
    .checkout_area .rbt-my-account-tab-button {
        gap: 0.75rem;
    }

    .checkout_area .payment-tab-btn {
        font-size: 1rem;
        padding: 1.1rem 1rem !important;
        min-height: 54px;
        font-weight: 600;
    }

    .checkout_area .payment-tab-btn i {
        font-size: 1.15rem;
        margin-right: 6px !important;
    }
}



/* Mobile Navbar Customizations for 'Kursa Başla' and User Name visibility */
@media (max-width: 1199px) {
    .header-right .access-icon.rbt-user-wrapper {
        margin-right: 15px;
    }

    .header-right .access-icon.rbt-user-wrapper a {
        display: flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
    }
    
    .header-right .access-icon.rbt-user-wrapper .navbar-name {
        display: inline-block !important; /* Force visibility */
        font-size: 14px;
        font-weight: 500;
        color: var(--color-heading);
    }
    
    /* Ensure icon is properly spaced */
    .header-right .access-icon.rbt-user-wrapper i {
        font-size: 18px;
        margin-right: 5px;
        margin-bottom: 0; 
    }
}

/* Üst şerit yüksekliği ilk boyamada hazır olsun; JS aynı değeri yazınca kahraman kaymaz */
.rbt-banner-area.header-transperent-spacer,
.rbt-page-banner-wrapper.header-transperent-spacer,
.rbt-breadcrumb-default.header-transperent-spacer,
.rbt-conatct-area.header-transperent-spacer {
    padding-top: 155px;
}

@media (max-width: 1199px) {
    .rbt-banner-area.header-transperent-spacer,
    .rbt-page-banner-wrapper.header-transperent-spacer,
    .rbt-breadcrumb-default.header-transperent-spacer,
    .rbt-conatct-area.header-transperent-spacer {
        padding-top: 220px;
    }
}

.rbt-cart-side-menu .inner-top .title p.title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-heading);
}

.homepage-comments-swiper .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    background: transparent;
    opacity: 1;
    margin: 0 2px !important;
    position: relative;
}

.homepage-comments-swiper .swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(25, 35, 53, 0.25);
}

.homepage-comments-swiper .swiper-pagination-bullet-active::after {
    background: var(--color-primary);
}

/* Genişlik, yükseklik özniteliğinden değil mevcut CSS yüksekliğinden gelsin */
.logo a img {
    width: auto;
}

/* Açık turuncu etiket yazısı kontrastı geçmiyordu */
.subtitle.bg-primary-opacity {
    color: #c2410c !important;
}

/* Başlık seviyesi değişince punto aynı kalsın */
.rbt-contact-form.contact-form-style-1 > h2.title {
    font-size: 34px;
    line-height: 1.14;
    font-weight: 600;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .rbt-contact-form.contact-form-style-1 > h2.title {
        font-size: 28px;
    }
}

@media only screen and (max-width: 767px) {
    .rbt-contact-form.contact-form-style-1 > h2.title {
        font-size: 24px;
    }
}

.rbt-cat-box-1 .inner .content h3.title {
    font-size: 20px;
    line-height: 1.24;
    font-weight: 600;
}

@media only screen and (max-width: 1199px) {
    .rbt-cat-box-1 .inner .content h3.title {
        font-size: 16px;
    }
}

h3.homepage-username-comment {
    font-size: 18px;
    line-height: 1.24;
    font-weight: 600;
}

h4.ft-title {
    font-size: 20px;
    line-height: 1.24;
    font-weight: 600;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .footer-style-1 h4.ft-title {
        font-size: 18px;
    }
}

#subscribe-form h5.w-600 {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

.rbt-course-grid-column .rbt-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rbt-course-grid-column .rbt-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
}

.discover-filter-button,
.price--filter .rbt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rbt-course-top-wrapper .rbt-sorting-list {
    gap: 12px;
}

.location-fields {
    width: 100%;
}

.location-fields-stack {
    display: block;
}

.location-fields label,
.checkout-form label[for="billing-country"],
.checkout-form label[for="billing-city"] {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading, #192335);
    line-height: 1.4;
}

.location-fields select.form-select.location-control,
.location-fields .location-control,
.checkout-form select[name="country"],
.checkout-form select[name="city"] {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0 0 15px;
    padding: 10px 42px 10px 20px;
    border: 2px solid var(--color-border, #e6e3f1);
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    color: var(--color-body, #6b7385);
    font-size: 14px;
    line-height: 1.5;
    appearance: none;
    box-shadow: none;
    background-clip: padding-box;
}

.location-fields input.location-control:not([hidden]) {
    background-image: none;
    padding-right: 20px;
    min-height: 50px;
}

.location-fields .location-control:focus,
.checkout-form select[name="country"]:focus,
.checkout-form select[name="city"]:focus {
    border-color: #f18944;
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 137, 68, 0.15);
}

.register-modern-form .location-fields label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.register-modern-form .location-fields .location-control {
    min-height: 52px;
    margin-bottom: 0;
    padding: 14px 42px 14px 12px;
    border: 1px solid var(--register-border, #ecdacb);
    border-radius: 12px;
    color: #0f172a;
    font-size: 15px;
    box-shadow: 0 2px 0 rgba(148, 163, 184, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f18944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 14px center;
}

.register-modern-form .location-fields .form-group {
    margin-bottom: 14px;
}

.register-modern-form .location-fields .location-control:focus {
    border-color: var(--register-accent, #f18944);
    box-shadow: 0 0 0 4px rgba(241, 137, 68, 0.2);
}

.profile-edit-modal .location-fields label,
#editProfileModal .location-fields label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #192335;
}

.profile-edit-modal .location-fields .location-control,
#editProfileModal .location-fields .location-control {
    min-height: 48px;
    margin-bottom: 0;
    padding: 10px 40px 10px 14px;
    border: 1px solid #e6e3f1;
    border-radius: 8px;
    color: #192335;
    font-size: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f18944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 12px center;
}

.location-fields input[hidden],
.location-fields select[hidden] {
    display: none !important;
}
