/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent) 0%, #fff 50%, var(--color-accent) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    scroll-margin-top: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgba(217, 170, 183, 0.3);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(166, 177, 225, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-image img {
    position: relative;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 1rem;
    border: 4px solid white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: rotate(0deg);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
    scroll-margin-top: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    margin-bottom: 1rem;
}

.title-underline {
    width: 6rem;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-description {
    color: #666;
    max-width: 42rem;
    margin: 1rem auto 0;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #666;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: justify;
}

.credentials-sidebar {
    background: rgba(244, 247, 246, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credential-block h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.credential-block .icon {
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
}

.credential-grid {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credential-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credential-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(217, 170, 183, 0.3);
}

.credential-card.simple-item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: #555;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.credential-card.simple-item::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.education-card .edu-title {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1.05rem;
}

.education-card .edu-institution {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-card .edu-institution::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: rgba(244, 247, 246, 0.3);
    scroll-margin-top: 120px;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-button.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
}

.tab-icon {
    flex-shrink: 0;
    min-width: 20px;
    min-height: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: flex;
    align-items: start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(166, 177, 225, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin-top: 0.625rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.service-card:hover .service-dot {
    background: var(--color-primary);
}

.service-card p {
    color: #555;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Social Section */
.social-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(244, 247, 246, 0) 0%, rgba(217, 170, 183, 0.1) 100%);
    scroll-margin-top: 120px;
}

.social-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card,
.youtube-embed-section,
.instagram-feed-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}

.social-icon-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.social-icon-header svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.social-icon-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.youtube-container {
    /* Allow Smash Balloon shortcode output (grids/tiles) to render naturally
       instead of forcing a 16:9 iframe aspect ratio. Use padding and
       auto height so the feed sizes like the Instagram column. */
    position: relative;
    padding: 1rem;
    height: auto;
    overflow: visible;
    background: transparent;
}

/* Make any iframe or feed wrappers inside behave responsively */
.youtube-container iframe,
.youtube-container .sby_feed,
.youtube-container .sby_wrap,
.youtube-container .sby_grid {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
    /* reasonable cap to avoid oversized embeds */
}

/* Stronger overrides for Smash Balloon YouTube feed output
   (some installations add inline heights or wrapper classes). */
.youtube-container .sby_wrap,
.youtube-container .sby_feed,
.youtube-container .sby_grid,
.youtube-container .sby_videos,
.youtube-container .sby_item,
.youtube-container .sby_video,
.youtube-container .sby_video_wrap,
.youtube-container .sby_header,
.youtube-container iframe,
.youtube-container .sby_subscribe,
.youtube-container .sby_subscribe_btn {
    background: transparent !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.youtube-container .sby_grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    align-items: start !important;
}

.youtube-container .sby_video img,
.youtube-container .sby_item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0.75rem !important;
}

.youtube-container .sby_subscribe,
.youtube-container .sby_subscribe_btn {
    display: inline-block !important;
    margin: 1rem auto !important;
}

/* Remove unexpected bottom whitespace and force natural height for all SB YouTube wrappers */
.youtube-container,
.youtube-container * {
    box-sizing: border-box !important;
}

.youtube-container,
.youtube-container .sby_feed,
.youtube-container .sby_wrap,
.youtube-container .sby_grid,
.youtube-container .sby_videos,
.youtube-container .sby_item,
.youtube-container .sby_video,
.youtube-container .sby_video_wrap,
.youtube-container .sby_header,
.youtube-container .sby_footer,
.youtube-container .sby_subscribe,
.youtube-container .sby_subscribe_btn,
.youtube-container iframe {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
}

/* If there are pagination / load-more / footer blocks that leave empty space, hide them */
.youtube-container .sby_pagination,
.youtube-container .sby_loadmore,
.youtube-container .sby_more,
.youtube-container .sby_footer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure grid rows don't leave large empty gaps */
.youtube-container .sby_grid {
    align-content: start !important;
}

.instagram-feed-wrapper {
    padding: 0;
    flex-grow: 1;
    /* height: 450px; REMOVED to allow auto height */
}

/* Smash Balloon Instagram Feed Styling */
.instagram-feed-wrapper #sb_instagram {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
}

.instagram-feed-wrapper #sb_instagram #sbi_images {
    padding: 1rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.instagram-feed-wrapper #sb_instagram .sbi_item {
    padding: 0 !important;
    margin: 0 !important;
}

.instagram-feed-wrapper #sb_instagram .sbi_photo_wrap {
    margin: 0 !important;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-feed-wrapper #sb_instagram .sbi_photo_wrap:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.social-link-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 170, 183, 0.4);
}

.social-link-btn svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.social-link-btn:hover svg {
    transform: translateX(4px);
}

.social-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-youtube {
    background-color: #FF0000;
    color: white;
}

.btn-youtube:hover {
    background-color: #cc0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.btn-instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
}

.btn-instagram:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

@media (max-width: 992px) {
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .social-section {
        padding: 4rem 0;
    }

    .social-icon-header {
        padding: 1rem 1.25rem;
    }

    .social-icon-header h3 {
        font-size: 1rem;
    }

    .instagram-feed-wrapper {
        height: 400px;
    }

    .instagram-feed-wrapper #sb_instagram #sbi_images {
        padding: 0.75rem !important;
        gap: 0.75rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background: white;
    scroll-margin-top: 120px;
}

.container-narrow {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-subtitle {
    display: block;
    color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.blog-article {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.blog-article.collapsed .article-content-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.article-content-wrapper {
    max-height: 5000px;
    /* Arbitrary large height for transition */
    opacity: 1;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: rgba(244, 247, 246, 0.5);
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(217, 170, 183, 0.1);
    color: var(--color-primary-dark);
}

.read-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.blog-article:not(.collapsed) .read-more-btn .btn-icon {
    transform: rotate(180deg);
}

.blog-article:not(.collapsed) .read-more-btn .btn-text {
    display: none;
}

.blog-article:not(.collapsed) .read-more-btn::after {
    content: "Daha Az Göster";
}

.article-header {
    background: rgba(217, 170, 183, 0.1);
    padding: 3rem 2.5rem;
    border-bottom: 1px solid rgba(217, 170, 183, 0.1);
}

.article-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.article-header h4 {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.article-header p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.article-section h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.section-number {
    display: inline-block;
    background: rgba(166, 177, 225, 0.2);
    color: var(--color-secondary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.article-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.article-section li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: #666;
}

.check-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
    min-width: 20px;
    min-height: 20px;
}

.article-footer {
    background: rgba(244, 247, 246, 0.5);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.article-footer p {
    color: #555;
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: rgba(166, 177, 225, 0.1);
    scroll-margin-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mail-icon {
    background: rgba(217, 170, 183, 0.1);
    color: var(--color-primary);
}

.location-icon {
    background: rgba(166, 177, 225, 0.2);
    color: var(--color-secondary-dark);
}

.contact-detail-card h3 {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.contact-detail-card a {
    color: #666;
    transition: color 0.3s ease;
}

.contact-detail-card a:hover {
    color: var(--color-primary);
}

.detail-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid white;
}

.contact-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 1rem
}

/* Responsive Design */

/* Tablet & Mobile (Max 992px) */
@media (max-width: 992px) {

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .credentials-sidebar {
        order: -1;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {

    /* General */
    .section-title {
        font-size: 1.75rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image img {
        max-height: 400px;
    }

    .image-decoration {
        width: 300px;
        height: 300px;
    }

    /* About Section */
    .about-section {
        padding: 3rem 0;
    }

    .bio-content {
        font-size: 1rem;
    }

    /* Services Section */
    .services-section {
        padding: 3rem 0;
    }

    .services-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tab-button {
        justify-content: center;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Section */
    .blog-section {
        padding: 3rem 0;
    }

    .article-header,
    .article-content {
        padding: 1.5rem;
    }

    .article-header h3 {
        font-size: 1.5rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Contact Form Messages */
.contact-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeIn 0.5s ease-out;
}

.contact-message .msg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Custom Social Feed Grid for Custom PHP Implementation */
.social-feed-grid {
    display: grid;
    gap: 1.5rem;
}

.social-feed-grid.youtube-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.social-feed-grid.instagram-grid {
    grid-template-columns: 1fr 1fr;
}

/* Video Card Styling */
.video-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 0.9);
}

.video-info {
    padding: 0 0.5rem;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
    display: block;
}

/* Instagram Card Styling */
.insta-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 0.75rem;
    overflow: hidden;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-card:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay svg {
    color: white;
    width: 24px;
    height: 24px;
}

/* Force Footer to Bottom of Card */
.youtube-embed-section,
.instagram-feed-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.youtube-container,
.instagram-feed-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.social-feed-grid {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.social-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* New About Section Layout */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.bio-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.bio-image {
    position: sticky;
    top: 100px;
}

.bio-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* Tablet & Mobile Adjusments */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .bio-wrapper {
        grid-template-columns: 1fr;
    }

    .bio-image {
        max-width: 300px;
        margin: 0 auto;
        position: static;
    }
}

/* Contact Section Updates for Image */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: white;
}

.contact-info {
    padding: 3rem;
    background: #fcfcfc;
}

.contact-form-wrapper {
    padding: 3rem;
    background: white;
    box-shadow: none;
    border-radius: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* New Visual Side Panel */
.contact-visual {
    display: none;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr 1.2fr;
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-info {
        order: 1;
    }

    .contact-visual {
        order: 2;
        display: block;
        background-size: cover;
        background-position: center;
        min-height: 100%;
    }

    .contact-form-wrapper {
        order: 3;
    }
}

/* Customizer override class (applied via PHP inline style usually, or we can use a class) */


/* Force Mobile Column Stack */
@media (max-width: 992px) {
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-info,
    .contact-visual,
    .contact-form-wrapper {
        width: 100% !important;
    }
}

/* Fix Email Overflow on Mobile */
.contact-detail-card a {
    overflow-wrap: anywhere;
    word-break: break-all;
}