:root {
    --primary: #5a8d7c;
    --cassiopeia-color-brand: #5a8d7c;
    --primary-light: #7db3a1;
    --secondary: #3a7ca5;
    --accent: #d97c2b;
    --light: #f8f9fa;
    --dark: #2a3b4a;
    --text: #495057;
    --light-gray: #e9ecef;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5,.page-header h2 a {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark);
}
.sidebar-right article.mod-articles-item {
    display: flex;
    margin: 0px 0 16px 0;
}
h4.mod-articles-title a {
    text-decoration: none;
    color: var(--dark);
}
.page-header h2 a{
    text-decoration: none;
}
.breadcrumb {
    background-color: #7db3a1;
    margin-bottom: 0;
}
.mod-breadcrumbs.breadcrumb li, .mod-breadcrumbs.breadcrumb li a{
    color: #fff;
}
a.brand-logo img {
    width: 40px;
}
.back-to-top-link:hover, .back-to-top-link:focus {
    color: var(--white, #fff);
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.section {
    padding: 30px 0;
    position: relative;
}
.about_right {
    margin: 0 0 0 16px;
    align-items: flex-start;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.hero-buttons {
    display: flex;
    justify-content: center;
}
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
}
.contact-detail a {
    color: #fff;
}
.contact_items {
    display: flex;
    justify-content: space-between;
}
ul.header-links {
    margin: 0 0 0 60px;
    padding: 0;
    text-decoration: none;
    list-style: none;
    display: flex;
    justify-content: center;
}
/* Header */
/*.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
} */
.main_menu {
    flex-direction: row;
}
.mod-list li.active>a, .mod-list li a:hover {
    text-decoration: none;
/* font-weight: 700; */
}
.navbar-brand:hover, .navbar-brand:focus {
    color: var(--cassiopeia-color-brand);
}
div#navbarNav {
    justify-content: end;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand span {
    color: var(--accent);
    margin: 0 0 0 4px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
   padding: 80px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.hero_item{
    z-index: 2;
}
.hero_item:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url(/images/photo_2025-05-30_12-03-17.jpg) center / contain no-repeat;
    z-index: -1;
    border-radius: 0 0 0 100px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text);
}

.hero-quote {
    font-style: italic;
    padding: 25px;
    border-left: 4px solid var(--primary);
    background: rgba(90, 141, 124, 0.05);
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

/* About Section */
.about {
    background: var(--light);
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.signature {
    margin: 30px 0 40px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Services */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(90, 141, 124, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
}

/* Practices */
.practices {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.practice-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.practice-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.practice-content {
    padding: 30px;
}

/* Education */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--light-gray);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    top: 40px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    z-index: 1;
}

.timeline-item:nth-child(odd):before {
    right: -8px;
}

.timeline-item:nth-child(even):before {
    left: -8px;
}

.timeline-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title h2:after {
    background: white;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(90, 141, 124, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 141, 124, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero:before {
        width: 40%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 22px 0;
    }

    .hero {
        min-height: auto;
        padding: 0;
    }

    .hero:before {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .timeline-item {
        width: 100%;
        padding: 30px 0 30px 70px !important;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item:before {
        left: -8px !important;
    }

    .education-timeline:before {
        left: 0;
    }
    .navbar>.container {
        justify-content: center ;
    }
    div#navbarNav {
    display: flex;
    position: absolute;
    right: 9px;
    top: 0;
    }
    .offcanvas.show {
        background-color: var( --light-gray);
        background-image: none;
        height: fit-content;
    }
    .main_menu {
        flex-direction: column;
    }
    .offcanvas-header .btn-close {
    color: #000 !important;
    filter: none;
    }
    .navbar-nav .nav-link {
        font-weight: 700;
        font-size: large;
    }
    .offcanvas-body {
        padding: 0 10px;
        margin: -20px 0 0px 0;
    }
    .hero_item:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: url(/images/photo_2025-05-30_12-03-17.jpg) center / contain no-repeat;
        z-index: -1;
        border-radius: 0 0 0 0px;
        opacity: 0.3;
        padding: 16px 0;
    }
    .section-title {
        text-align: center;
        margin-bottom: 24px;
        position: relative;
    }
   .contact_items {
       flex-direction: column;
   }
    .imagesr img {
        width: 100%;
    }
    .about_right {
        margin: 0;
        display: block;
        padding: 0 16px 0 16px;
    }
    section#education {
    padding: 0px 14px 0 14px;
    }
    .com-content-article {
        margin: 0;
        padding: 0px 12px 0px 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}