/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* ========================================
   SAMA INTERACTIVE SECTION
   ======================================== */

.sama-container {
    display: flex;
    position: relative;
    width: 100%;
    background-color: #FDFBF7;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Lato', sans-serif !important;
    color: #2A2A2A;
}

.sama-container * {
    box-sizing: border-box;
}

.content-side {
    width: 70%;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: 'Playfair Display', serif !important; 
    font-weight: 400;
    font-size: 3rem;
    color: #4A4A4A;
    margin-bottom: 60px;
    line-height: 1.2;
}

.italic-accent {
    font-style: italic;
    color: #909F78;
}

.interactive-panel {
    display: flex;
    position: relative;
    height: 1000px;
    width: 100%;
}

.nav-rail {
    position: relative;
    width: 280px;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid #C0C0C0; 
}

.vertical-line { 
    display: none; 
}

.marker {
    position: absolute;
    right: -5px !important;
    width: 10px;
    height: 40px;
    background-color: #3e3832;
    border-radius: 10px;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    top: 0;
    z-index: 10;
}

.nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem;
    color: #909F78;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    padding-right: 30px;
    line-height: 1.2;
}

.nav-item.active {
    opacity: 1;
    font-style: italic;
    font-weight: 600;
}

.text-rail {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 60px;
}

.sama-container .text-block {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.15;
    transition: opacity 0.4s ease;
    filter: blur(1px);
    cursor: pointer; 
}

.sama-container .text-block:hover {
    opacity: 0.4; 
}

.sama-container .text-block.active {
    opacity: 1;
    filter: blur(0);
    cursor: default;
}

.text-content-wrapper h4 {
    display: block;
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-size: 2rem; 
    color: #2A2A2A;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.desc-content p {
    font-family: 'Lato', sans-serif !important;
    font-size: 1.2rem;
    color: #777;
    line-height: 1.8;
}

.desc-content strong, 
.desc-content b {
    display: block;
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-size: 1.5rem;
    color: #2A2A2A;
    margin-bottom: 15px;
    font-weight: 600;
}

.image-side {
    width: 30%;
    position: relative;
    padding: 30px 0 30px 30px; 
    background-color: #FDFBF7;
    display: flex; 
    align-items: center;
}

.image-item {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100% !important;
    height: calc(100% - 60px) !important; 
    object-fit: cover !important; 
    border-radius: 20px 0 0 20px !important; 
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.image-item.active {
    opacity: 1;
    z-index: 2;
}

@media (max-width: 768px) {
    .sama-container { 
        flex-direction: column-reverse; 
        height: auto; 
    }
    .content-side { 
        width: 100%; 
        padding: 20px; 
    }
    .image-side { 
        width: 100%; 
        height: 350px; 
        padding: 0; 
    }
    .image-item { 
        height: 100% !important; 
        top: 0; 
        border-radius: 0 !important; 
    }
    .nav-rail { 
        display: none; 
    }
    .text-rail { 
        padding-left: 0; 
    }
    .sama-container .text-block { 
        display: block; 
        height: auto; 
        margin-bottom: 40px; 
        opacity: 1; 
        filter: blur(0); 
        cursor: default; 
    }
}

/* ========================================
   INTEGRATIVE SMILE DESIGN GRID
   ======================================== */

.integrative-smile-grid-wrapper {
    background-color: #fdfbf5;
    font-family: 'Inter', sans-serif;
    color: #2a221e;
    padding: 60px 30px;
}

.integrative-smile-grid-wrapper h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 80px;
    font-weight: 400;
    max-width: 900px;
}

.integrative-smile-grid-wrapper h1 em {
    font-style: italic;
}

.integrative-smile-grid-wrapper .grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.integrative-smile-grid-wrapper .text-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 20px !important;
    background: transparent !important;
    border: none !important;
    opacity: 1 !important;
    filter: none !important;
    height: auto !important;
}

.integrative-smile-grid-wrapper .text-block h2 {
    font-family: 'Instrument Serif', serif !important;
    font-style: normal !important;
    font-size: 3.2rem !important;
    line-height: 0.95 !important;
    color: #7a8c75 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
}

.integrative-smile-grid-wrapper .text-block h2 em {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    display: block !important;
    opacity: 1 !important;
    color: #7a8c75 !important;
    font-weight: 700 !important;
    filter: none !important;
}

.integrative-smile-grid-wrapper .text-block span {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-size: 1.2rem !important;
    color: #2a221e !important;
    margin-top: 10px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    display: block !important;
    filter: none !important;
}

.integrative-smile-grid-wrapper .card {
    background-color: #dcdcc6;
    border-radius: 30px;
    height: 320px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.integrative-smile-grid-wrapper .card-base {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.integrative-smile-grid-wrapper .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.integrative-smile-grid-wrapper .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.integrative-smile-grid-wrapper .icon-box svg {
    width: 50px;
    height: 50px;
}

.integrative-smile-grid-wrapper .card:hover .icon-box {
    transform: scale(0.7);
    opacity: 0;
}

.integrative-smile-grid-wrapper .plus-icon {
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    z-index: 5;
    transition: color 0.6s ease 0.4s;
}

.integrative-smile-grid-wrapper .card:hover .card-top .plus-icon {
    color: #ffffff;
}

.integrative-smile-grid-wrapper .card-bottom {
    margin-top: auto;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.integrative-smile-grid-wrapper .card-number {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 4px;
    display: block;
    transition: opacity 0.6s ease;
}

.integrative-smile-grid-wrapper .card:hover .card-number {
    opacity: 0;
}

.integrative-smile-grid-wrapper .card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 400;
    color: #2a221e;
    transition: color 0.6s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.integrative-smile-grid-wrapper .card:hover .card-title {
    color: #fdfbf5;
}

.integrative-smile-grid-wrapper .card-title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    white-space: normal;
}

.integrative-smile-grid-wrapper .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2a221e;
    color: #fdfbf5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.integrative-smile-grid-wrapper .card:hover .card-overlay {
    transform: translateY(0);
}

.integrative-smile-grid-wrapper .overlay-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.integrative-smile-grid-wrapper .book-link {
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none !important;
    font-weight: 500;
    opacity: 0;
    transform: translateX(45px);
    transition: opacity 2s ease, transform 2s cubic-bezier(0.2, 0, 0.2, 1);
    white-space: nowrap;
    order: 1;
}

.integrative-smile-grid-wrapper .card:hover .book-link {
    opacity: 1;
    transform: translateX(0);
}

.integrative-smile-grid-wrapper .overlay-top .plus-icon {
    order: 2;
}

.integrative-smile-grid-wrapper .overlay-desc {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-top: 40px;
    max-height: 120px;
    overflow: hidden;
}

.integrative-smile-grid-wrapper .card:hover .overlay-desc {
    opacity: 1;
    transform: translateY(0);
}

.integrative-smile-grid-wrapper .overlay-desc p {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.integrative-smile-grid-wrapper .overlay-desc p em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}

@media (max-width: 1400px) {
    .integrative-smile-grid-wrapper .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .integrative-smile-grid-wrapper .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .integrative-smile-grid-wrapper .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .integrative-smile-grid-wrapper h1 {
        font-size: 3rem;
    }
}

@media (max-width: 500px) {
    .integrative-smile-grid-wrapper .grid-container {
        grid-template-columns: 1fr;
    }
}