/*
Theme Name: Partner
Author: Your Name
Description: Custom WordPress theme with dark blue design
Version: 3.23
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mytheme-body {
    background: linear-gradient(180deg, #0a1e3b, #0f2d54);
    background-attachment: fixed;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    line-height: 1.6;
}

.mytheme-html {
    font-family: 'Montserrat', sans-serif;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SEO Text */
.seo-text {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 136, 209, 0.1), transparent);
}

.seo-text h1 {
    font-size: 28px;
    color: #00e676;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.seo-text p {
    font-size: 16px;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Анимированный логотип */
.mytheme-branding {
    display: flex;
    justify-content: center;
    flex-grow: 0;
    width: auto;
    margin: 0 auto;    padding-left: 11%;
}

.logo-link {
    display: inline-flex
;
    align-items: baseline;
    text-decoration: none;
    font-family: 'dashicons';
    font-size: 43px;
    font-weight: bold;
    color: #00e676;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.logo-part {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInUp 1s ease forwards;
}

.logo-part.portal {
    animation-delay: 0s;
}

.logo-part.dash {
    animation: tripleBounce 1.2s ease 1s forwards;
}

.logo-part.partner {
    animation-delay: 0.5s;
    transform: translateX(-20px);
}

.logo-part.com {
    animation: tripleBounce 1.2s ease 1.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tripleBounce {
    0% { opacity: 0; transform: scale(0) translateY(-10px); }
    20% { opacity: 0.8; transform: scale(1.2) translateY(0); }
    40% { transform: scale(0.9) translateY(-5px); }
    60% { transform: scale(1.1) translateY(0); }
    80% { transform: scale(0.95) translateY(-3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Мобильный хедер */
.mytheme-header-mobile {
    background-color: #0f1c33;
    padding: 15px 20px;
    display: none;
    position: relative;
    z-index: 1000;
}

.mytheme-header-mobile .mytheme-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mytheme-header-mobile .mytheme-branding {
    flex-grow: 0;
}

.mytheme-header-mobile .mytheme-branding img {
    width: 150px;
    height: auto;
}

.mytheme-header-mobile .mytheme-menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.mytheme-header-mobile .mytheme-main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #17233b;
    padding: 20px;
    z-index: 999;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mytheme-header-mobile .mytheme-main-navigation.active {
    left: 0;
}

.mytheme-header-mobile .mytheme-main-navigation ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.mytheme-header-mobile .mytheme-main-navigation ul li {
    margin: 15px 0;
}

.mytheme-header-mobile .mytheme-main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.mytheme-header-mobile .mytheme-main-navigation ul li .sub-menu {
    margin-left: 20px;
    display: none;
}

.mytheme-header-mobile .mytheme-main-navigation ul li .sub-menu.active {
    display: block;
}

.mytheme-header-mobile .mytheme-search-wrapper {
    margin: 15px 0;
    max-width: 200px;
}

.mytheme-header-mobile .mytheme-search-form {
    display: flex;
    align-items: center;
}

.mytheme-header-mobile .mytheme-search-input {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: #1e2b44;
    color: #ffffff;
    width: 100%;
}

.mytheme-header-mobile .mytheme-search-button {
    padding: 0;
    width: 40px;
    height: 32px;
    background-color: #007a8c;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mytheme-header-mobile .mytheme-search-button img,
.mytheme-header-mobile .mytheme-search-button::before {
    width: 24px;
    height: 24px;
    content: '🔍';
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Десктопный хедер */
.mytheme-header-desktop {
    background-color: #0f1c33;
    color: #ffffff;
}

.mytheme-header-desktop .mytheme-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.mytheme-header-desktop .mytheme-branding {
    flex-grow: 0;
}

.mytheme-header-desktop .mytheme-search-wrapper {
    flex: 0 0 auto;
    max-width: 200px;
    margin-left: 20px;
}

.mytheme-header-desktop .mytheme-search-form {
    display: flex;
    align-items: center;
}

.mytheme-header-desktop .mytheme-search-input {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: #1e2b44;
    color: #ffffff;
    width: 100%;
}

.mytheme-header-desktop .mytheme-search-button {
    padding: 0;
    width: 40px;
    height: 32px;
    background-color: #007a8c;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mytheme-header-desktop .mytheme-search-button img,
.mytheme-header-desktop .mytheme-search-button::before {
    width: 24px;
    height: 24px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.mytheme-header-desktop .mytheme-nav-wrapper {
    padding: 0 20px;
    border-top: 1px solid #1e2b44;
}

/* Навигация */
.mytheme-main-navigation {
    display: flex;
    justify-content: center;
}

.mytheme-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mytheme-main-navigation ul li {
    position: relative;
    margin: 0 25px;
}

.mytheme-main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.mytheme-main-navigation ul li a:hover,
.mytheme-main-navigation ul li a.current-menu-item {
    color: #0288d1;
}

.mytheme-main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e676, #0288d1);
    transition: width 0.3s ease;
}

.mytheme-main-navigation ul li a:hover::after {
    width: 100%;
}

.mytheme-main-navigation ul li.menu-item-has-children > a::after {
    content: '▼';
    margin-left: 5px;
    font-size: 12px;
}

/* Sub-menu */
.mytheme-main-navigation ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #17233b;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.mytheme-main-navigation ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mytheme-main-navigation ul li .sub-menu li {
    margin: 0;
}

.mytheme-main-navigation ul li .sub-menu li a {
    padding: 10px 15px;
    border-bottom: 1px solid #0f1c33;
    font-size: 16px;
}

.mytheme-main-navigation ul li .sub-menu li:last-child a {
    border-bottom: none;
}

.mytheme-main-navigation ul li .sub-menu li a:hover {
    background: #0f1c33;
}

/* Мобильное меню */
.mytheme-header-mobile .mytheme-main-navigation ul {
    flex-direction: column;
}

.mytheme-header-mobile .mytheme-main-navigation ul li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-left: 20px;
    display: none;
}

.mytheme-header-mobile .mytheme-main-navigation ul li:hover .sub-menu {
    display: block;
}

/* Ниши и карточки */
.niche-cards {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: #00e676;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.niche-card {
    background: linear-gradient(180deg, #1e2b44, #2a3b5f);
    border-radius: 10px;
    border: 1px solid #0288d1;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.niche-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.article__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article__title {
    font-size: 22px;
    color: #ffca28;
    margin-bottom: 15px;
    text-align: center;
}

.niche-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.niche-desc {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 20px;
}

.niche-btn {
    display: inline-block;
    width: 280px;
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    background: linear-gradient(90deg, rgb(1, 87, 155), rgb(2, 136, 209));
    padding: 12px 0px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    margin: 15px auto 0px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.niche-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

.niche-btn:hover::before {
    left: 100%;
}

.niche-btn:hover {
    background: linear-gradient(90deg, rgb(2, 119, 189), rgb(3, 169, 244));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Partners Rating */
.partners-rating {
    padding: 50px 20px;
    background: transparent;
    color: #fff;
}

.rating-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.rating-item {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.partner-number {
    font-size: 40px;
    font-weight: 700;
    color: #00e676;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.partner-card {
    display: grid;
    grid-template-columns: 300px 300px 1fr;
    align-items: stretch;
    background: linear-gradient(180deg, #1e2b44, #2a3b5f);
    border: 1px solid #0288d1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(2, 136, 209, 0.3);
    min-height: 200px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(2, 136, 209, 0.5);
}

.partner-card--top {
    background: linear-gradient(180deg, #2a3b5f, #3b4f7a);
    border: 1px solid #ffca28;
    box-shadow: 0 0 10px rgba(255, 202, 40, 0.3);
}

.partner-card--top:hover {
    box-shadow: 0 0 15px rgba(255, 202, 40, 0.5);
}

.partner-top-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.partner-top-badge svg {
    width: 24px;
    height: 24px;
}

.partner-thumbnail {
    width: 300px;
    height: 200px;
}

.partner-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.partner-right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 3 / 4;
}

.partner-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 20px;
    width: 100%;
}

.partner-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffca28;
    text-align: center;
    margin-top: -11px;
}

.partner-title a {
    color: #ffca28;
    text-decoration: none;
}

.partner-title a:hover {
    color: #ffb300;
}

.partner-description {
    font-size: 12.3px;
    color: #cccccc;
    line-height: 1.4;
    text-align: justify;
    margin-top: -7px;
    min-height: 81px;
    padding: 0 2.5%;max-width: 411px;
}

.partner-details-lower {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    align-items: center;
}

.partner-categories {
    display: flex;
    gap: 10px;
}

.partner-categories a {
    font-size: 14px;
    color: #0288d1;
    text-decoration: none;
}

.partner-categories a:hover {
    color: #ffca28;
}

.partner-rating-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.partner-rating-text .rating-value {
    font-size: 18px;
    color: #00e676;
}

.partner-rating {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star {
    width: 18px;
    height: 18px;
    transition: fill 0.2s ease;
}

.rating-star.full {
    fill: #ffca28;
}

.rating-star.half {
    fill: url(#half-star-gradient);
}

.rating-star.empty {
    fill: #cccccc;
}

.rating-stars.interactive .rating-star {
    cursor: pointer;
}

.rating-stars.interactive .rating-star:hover,
.rating-stars.interactive .rating-star:hover ~ .rating-star {
    fill: #cccccc;
}

.rating-stars.interactive .rating-star:hover,
.rating-stars.interactive .rating-star.active {
    fill: #ffb300;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
    width: 300px;
    transform: translate(10px, 23px);
}

.partner-info-item {
    font-size: 14px;
    color: #cccccc;
}

.partner-info-item span.label {
    color: #db8f4c;

    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.partner-info-item span.value {
    color: #cccccc;
    font-weight: 500;
}

.geo-tags {
    font-size: 14px;
}

.geo-tags span.label {
    color: #db8f4c;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.geo-tags span.value {
    color: #cccccc;
    font-weight: 500;
}

.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding-right: 50px;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #01579b, #0288d1);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 0;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    box-shadow: none;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 200px;
    overflow: hidden;
}

.partner-btn.review {
    max-width: 180px;
    background: linear-gradient(90deg, #1b5e20, #4caf50);
}

.partner-btn:hover {
    background: linear-gradient(90deg, #0277bd, #03a9f4);
}

.partner-btn.review:hover {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.partner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.4s ease;
}

.partner-btn:hover::before {
    left: 100%;
}

svg.defs {
    position: absolute;
    width: 0;
    height: 0;
}


/* Обзор партнерки */
.review-main .container {
    max-width: 1000px;
    padding: 20px;
}

.review-seo-text {
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 136, 209, 0.1), transparent);
}

.review-seo-text h1 {
    font-size: 28px;
    color: #00e676;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.review-article {
    background: linear-gradient(180deg, #1e2b44, #2a3b5f);
    border-radius: 10px;
    border: 1px solid #0288d1;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.review-article h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffca28;
    text-align: center;
}

.article__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffca28;
    text-align: center;
}

.review-btn {
    display: inline-block;
    width: 280px;
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    background: linear-gradient(90deg, rgb(1, 87, 155), rgb(2, 136, 209));
    padding: 12px 0px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    margin: 15px auto 0px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

.review-btn:hover::before {
    left: 100%;
}

.review-btn:hover {
    background: linear-gradient(90deg, rgb(2, 119, 189), rgb(3, 169, 244));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.review-info {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
}

.review-info td {
    padding: 6px 10px;
    text-align: left;
}

.label {
    color: #db8f4c;
    font-weight: 600;
}

.value {
    color: #ffffff;
    font-weight: 500;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    text-align: left;
}

.review-card {
    background: linear-gradient(180deg, #1e2b44, #2a3b5f);
    border-radius: 10px;
    border: 1px solid #0288d1;
    padding: 20px;
}

.review-desc {
    color: #cccccc;
    margin: 8px 0;
    line-height: 1.4;
    font-size: 16px;
}

.review-desc li {
    margin-bottom: 8px;
}

.review-article blockquote {
    border-left: 4px solid #0288d1;
    padding-left: 10px;
    margin: 10px 0;
    font-style: italic;
    color: #cccccc;
    text-align: left;
}

/* Футер */
.mytheme-footer {
    background-color: #0f1c33;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.mytheme-footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mytheme-footer-logo {
    text-align: center;
}

.mytheme-footer-logo img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.mytheme-footer-logo p {
    color: #cccccc;
    font-size: 14px;
}

.mytheme-footer-column h3 {
    color: #00e676;
    margin-bottom: 15px;
    font-size: 18px;
}

.mytheme-footer-column ul {
    list-style: none;
}

.mytheme-footer-column ul li {
    margin-bottom: 10px;
}

.mytheme-footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mytheme-footer-column ul li a:hover {
    color: #0288d1;
}

.mytheme-footer-bottom {
    border-top: 1px solid #01579b;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #cccccc;
}

.mytheme-footer-bottom .social-links a {
    margin: 0 10px;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mytheme-footer-bottom .social-links a:hover {
    color: #0288d1;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .mytheme-header-mobile {
        display: block;
    }
    .mytheme-header-desktop {
        display: none;
    }
    .logo-link {
        font-size: 24px;
    }
    .niche-cards,
    .partners-rating {
        padding: 30px 15px;
    }
    .niche-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .niche-card {
        max-width: 100%;
        min-height: 460px;
    }
    .article__title {
        font-size: 18px;
        min-height: 54px;
    }
    .niche-desc {
        font-size: 15px;
    }
    .niche-btn {
        width: 240px;
        padding: 10px 0;
        font-size: 15px;
    }
    .rating-list {
        gap: 15px;
    }
    .rating-item {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .partner-number {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
    .partner-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }
    .partner-right-column {
        display: contents;
    }
    .partner-title {
        order: 1;
        margin-top: 0;
    }
    .partner-thumbnail {
        order: 2;
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .partner-thumbnail img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    .partner-description {
        order: 3;
        text-align: justify;
        margin-top: 0;
        min-height: auto;
        font-size: 12.3px;
        padding: 0;
		
    }
    .partner-info {
        order: 4;
        margin-left: 0;
        width: 100%;
        transform: none;
        align-items: flex-start;
        text-align: left;
    }
    .partner-details {
        order: 5;
        margin-left: 0;
        align-items: center;
        justify-content: center;
        gap: 15px;
        height: auto;
    }
    .partner-details-lower {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .partner-categories {
        justify-content: center;
    }
    .partner-rating {
        align-items: center;
    }
    .partner-buttons {
        order: 6;
        align-items: center;
        padding-right: 0;
        width: 100%;
    }
    .partner-btn {
        width: 240px;
        padding: 10px 0;
        font-size: 15px;
    }
    .partner-btn.review {
        width: 240px;
    }
    .section-title {
        font-size: 26px;
    }
    .mytheme-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mytheme-footer-logo img {
        margin: 0 auto;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .review-article {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .niche-cards,
    .partners-rating {
        padding: 20px 10px;
    }
    .niche-card {
        max-width: 90%;
        min-height: 420px;
    }
    .niche-btn {
        width: 220px;
    }
    .partner-card {
        padding: 10px;
    }
    .partner-btn {
        width: 220px;
        font-size: 13px;
        padding: 8px 0;
    }
    .partner-btn.review {
        width: 220px;
    }
    .logo-link {
        font-size: 20px;
    }
}