.page-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    padding: 4rem 20px;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.masters-section {
    padding: 5rem 0;
    background-color: #fff;
}

.master-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.master-detail:last-child {
    border-bottom: none;
}

.master-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.master-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.master-detail-content h2 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.master-specialty {
    color: #d4a574;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.master-experience {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d4a574;
}

.master-bio {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.master-skills {
    margin-bottom: 2rem;
}

.master-skills h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #f9f9f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #555;
    font-size: 0.9rem;
    border: 1px solid #eee;
}

.master-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f9f9f9;
    border-radius: 50%;
    color: #d4a574;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #d4a574;
    color: #fff;
}

.master-portfolio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.master-portfolio-item {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
}

.master-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.master-portfolio-item:hover img {
    transform: scale(1.05);
}

.master-detail-content .master-cta {
    margin-top: 2rem;
    padding: 0;
    background: none;
    text-align: left;
}

@media (max-width: 768px) {
    .master-detail {
        grid-template-columns: 1fr;
    }

    .master-detail-image img {
        height: 300px;
    }

    .master-portfolio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .master-portfolio {
        grid-template-columns: 1fr;
    }
}








/* ============================================
   MASTER PAGE STYLES
   ============================================ */

/* Master Hero Section */
.master-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
}

.master-hero .container {

}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.master-photo {
    width: 100%;
    height: 500px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover .master-photo {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #d4a574;
}

.specialty {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.stars {
    font-size: 20px;
    color: #d4a574;
}

.reviews-count {
    font-size: 14px;
    color: #999;
}

.master-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

/* Master About Section */
.master-about {
    padding: 80px 0;
}

.master-about h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #d4a574;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a574;
    color: #2c2c2c;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #333;
}

.info-item .value {
    color: #d4a574;
    font-weight: 500;
}

.styles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.style-tag {
    display: inline-block;
    background: linear-gradient(135deg, #d4a574 0%, #c99563 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.style-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

/* Master Portfolio Section */
.master-page-portfolio {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.master-portfolio h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.section-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* aspect-ratio: 1; */
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 165, 116, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-overlay h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px !important;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Master Reviews Section */
.master-reviews {
    padding: 80px 0;
}

.master-reviews h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c2c2c;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #d4a574;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    font-style: italic;
}

/* Master Services Section */
.master-services {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.master-services h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.master-services .service-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.master-services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.master-services .service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.master-services .service-card .price {
    font-size: 28px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 10px;
}

.master-services .service-card .description {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.master-services .service-card ul{
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.master-services .service-card ul li {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 20px;
    position: relative;
}
.master-services .service-card ul li::after {
    position: absolute;
    content: "✓";
    width: 10px;
    height: 10px;
    left: 0px;
    top: 9px;
}

.master-services .service-card ul li:last-child {
    border-bottom: none;
}

/* Master CTA Section */
.master-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    text-align: center;
}

.master-cta h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #d4a574;
}

.master-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .master-hero .container,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .master-photo {
        height: 350px;
    }

    .master-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .master-cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .master-hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .master-photo {
        height: 250px;
    }

    .master-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .master-about,
    .master-portfolio,
    .master-reviews,
    .master-services,
    .master-faq,
    .master-cta {
        padding: 40px 0;
    }

    .master-about h2,
    .master-portfolio h2,
    .master-reviews h2,
    .master-services h2,
    .master-faq h2 {
        font-size: 24px;
    }

    .about-content h3 {
        font-size: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 12px 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 12px 16px;
        font-size: 13px;
    }

    .style-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Input Error Styles */
input.error,
textarea.error,
select.error {
    border-color: #e74c3c !important;
    background-color: #fadbd8 !important;
}