/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --primary-color: #1a4d8c;
    --secondary-color: #2c5f8d;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6b 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.header-contact {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: all 0.3s;
    position: relative;
}

.contact-link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.contact-link.whatsapp:hover {
    color: #25D366;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: 6px;
}

.lang-btn {
    color: var(--white);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.15);
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    gap: 5px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.logo-image {
    width: auto;
    height: 100%;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-tagline {
    color: var(--text-light);
    font-size: 12px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0 5px;
    padding: 0;
    flex: 0 0 auto;
    justify-content: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 11px;
    transition: transform 0.3s;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(26, 77, 140, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(26, 77, 140, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(26, 77, 140, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.btn-appointment {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6b 100%);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(13, 58, 107, 0.4);
    white-space: nowrap;
    margin-left: 0;
    flex-shrink: 0;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 58, 107, 0.5);
    background: linear-gradient(135deg, #0d3a6b 0%, var(--primary-color) 100%);
}

.btn-appointment i {
    font-size: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.4) 100%),
                url('../images/slider.jpg');
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    padding: 180px 0 160px;
    text-align: center;
    overflow: hidden;
    aspect-ratio: 1920 / 800;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.1s both;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.hero-name {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.15s both;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-text {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6b 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(13, 58, 107, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 14px 35px;
    font-size: 17px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d3a6b 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 58, 107, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 14px 35px;
    font-size: 17px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-link:hover {
    gap: 10px;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: var(--white);
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.project-content {
    padding: 25px;
}

.project-date {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-member p {
    color: var(--text-light);
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.articles-page {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 12px;
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.article-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
}

.article-views {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-views i {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.article-card:hover .read-more {
    gap: 10px;
}


.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    float: right;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Services Detail */
.services-detail {
    padding: 60px 0;
}

.service-detail-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.service-detail-item-link:hover {
    transform: translateY(-5px);
}

.service-detail-item-link:hover .service-detail-item {
    box-shadow: var(--shadow-hover);
}

.service-detail-item {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-detail-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    flex-shrink: 0;
}

.service-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* Service Detail Page */
.service-detail-page {
    padding: 60px 0;
}

.service-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.service-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.service-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 25px;
}

.service-description {
    margin-bottom: 30px;
}

.service-description p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.service-description h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.service-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-description ul li {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.service-description ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.service-content .btn {
    margin-top: 20px;
}

/* Article Detail Page */
.article-detail-page {
    padding: 60px 0;
}

.article-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
    flex-wrap: wrap;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.article-detail-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

.article-detail-content h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-detail-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.article-detail-text p {
    margin-bottom: 20px;
}

.article-detail-footer {
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .article-detail-image {
        height: 300px;
    }

    .article-detail-content {
        padding: 30px 20px;
    }

    .article-detail-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .articles-page {
        padding: 40px 0;
    }

    .article-image {
        height: 180px;
    }

    /* Appointment button in mobile menu - 480px */
    /* No special rules needed; it behaves like .nav-link */

    .article-content {
        padding: 15px;
    }

    .article-content h2 {
        font-size: 18px;
    }

    .article-detail-image {
        height: 250px;
    }

    .article-detail-content h1 {
        font-size: 24px;
    }

    .article-detail-meta {
        gap: 15px;
        font-size: 12px;
    }
}

@media (max-width: 968px) {
    .service-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-image {
        height: 300px;
    }

    .service-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .service-detail-page {
        padding: 40px 0;
    }

    .service-image {
        height: 250px;
    }

    .service-content h2 {
        font-size: 24px;
    }

    .service-description h3 {
        font-size: 20px;
    }
}

/* Contact Section */
.contact-section {
    padding: 60px 0 0;
    background: var(--bg-light);
    margin-bottom: 0;
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.info-card .info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin: 0 auto 20px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
}

.info-card p a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-card p a:hover {
    color: var(--primary-color);
}

/* Social Media Section */
.contact-social-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-social-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 18px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Contact Main Wrapper */
.contact-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

/* Contact Map */
.contact-map-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-map-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.map-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Articles Page */
.articles-page {
    padding: 60px 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.article-item:hover {
    box-shadow: var(--shadow-hover);
}

.article-item h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.article-item p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Projects Page */
.projects-page {
    padding: 60px 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.project-item:hover {
    box-shadow: var(--shadow-hover);
}

.project-image-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.project-details h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.project-details p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Team Page */
.team-page {
    padding: 60px 0;
}

.team-detail {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.team-member-large {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.member-image-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.member-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
}

.member-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-info p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Page */
/* History Page */
.history-page {
    padding: 60px 0;
}

.history-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.history-image {
    position: sticky;
    top: 100px;
    text-align: center;
}

.history-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    background: var(--white);
}

.history-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 25px;
}

.history-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.history-content h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.history-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.history-content ul li {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.history-content ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.history-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.lawyer-title {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    font-style: italic;
}

@media (max-width: 968px) {
    .history-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image {
        position: relative;
        top: 0;
    }

    .history-logo {
        max-width: 200px;
    }

    .history-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .history-page {
        padding: 40px 0;
    }

    .history-logo {
        max-width: 150px;
        padding: 15px;
    }

    .history-content h2 {
        font-size: 24px;
    }

    .history-content h3 {
        font-size: 20px;
    }
}

.content-page {
    padding: 60px 0;
}

.content-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.content-wrapper p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

/* Scroll to Top Button */
/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid var(--primary-color);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 36px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.cookie-text p {
    color: var(--text-color);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: #0d3a6b;
    text-decoration: underline;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6b 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 58, 107, 0.3);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 58, 107, 0.4);
}

.cookie-decline {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-decline:hover {
    background: var(--border-color);
    color: var(--text-color);
}

/* Appointment Section */
.appointment-section {
    padding: 60px 0 60px;
    background: var(--bg-light);
    margin-bottom: 0;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.appointment-calendar {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.appointment-calendar h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0;
}

.calendar-nav {
    background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.calendar-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(13, 58, 107, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px;
    font-size: 14px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-color);
    background: var(--white);
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
    color: var(--white);
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-light);
}

.calendar-day.has-appointments {
    position: relative;
}

.calendar-day.has-appointments::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.appointment-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.appointment-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.appointment-form-wrapper h2[style*="display: none"] {
    display: none !important;
}

.appointment-form-wrapper:has(#selectedDateInfo[style*="display: none"]) h2 {
    display: none !important;
}


.selected-date-info {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-date-info p {
    margin: 0;
    color: var(--text-color);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.time-slot-btn {
    padding: 10px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-color);
}

.time-slot-btn:hover:not(.taken):not(:disabled) {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.time-slot-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot-btn.taken,
.time-slot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-light);
    text-decoration: line-through;
}

.time-slot-btn.disabled-slot {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-light);
    border-color: var(--border-color);
}

.appointment-form .form-group {
    margin-bottom: 20px;
}

.appointment-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.appointment-form .form-group input,
.appointment-form .form-group textarea,
.appointment-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.appointment-form .form-group input:focus,
.appointment-form .form-group textarea:focus,
.appointment-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.appointment-form .form-group select:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a6b 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(13, 58, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #0d3a6b 0%, var(--primary-color) 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 58, 107, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .contact-info-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-appointment span {
        display: none;
    }

    .btn-appointment {
        padding: 12px 16px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image {
        position: static;
    }
}

@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .header-top-bar {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .header-top-bar .container {
        padding: 0 15px !important;
        margin: 0 !important;
    }

    .header {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .hamburger {
        display: flex;
    }

    .header-top-content {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }

    .header-contact {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }

    .contact-link span {
        font-size: 13px;
    }

    .navbar-content {
        padding: 15px 15px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-tagline {
        font-size: 10px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .btn-appointment {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 50%;
        max-width: 320px;
        min-width: 280px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        flex-direction: column;
        padding: 90px 0 30px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
        /* Make items align to the left edge uniformly */
        align-items: stretch;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* (menu-close removed) */

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 998;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu > li {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .nav-link {
        padding: 12px 15px 12px 10px;
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
        justify-content: flex-start;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-color);
        transition: all 0.3s ease;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        width: 100%;
    }

    .nav-link:hover {
        background: linear-gradient(135deg, rgba(26, 77, 140, 0.08), rgba(26, 77, 140, 0.12));
        color: var(--primary-color);
        transform: translateX(5px);
        border-color: rgba(26, 77, 140, 0.2);
    }

    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), #0d3a6b);
        color: var(--white);
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(26, 77, 140, 0.3);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link i {
        font-size: 14px;
        width: 20px;
        text-align: center;
        transition: transform 0.3s;
        margin-left: auto;
    }

    .dropdown .nav-link i {
        transform: rotate(0deg);
    }

    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(26, 77, 140, 0.05);
        margin: 0;
        border-radius: 10px;
        padding: 0;
        border-left: 3px solid var(--primary-color);
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu li {
        margin: 0;
        padding: 0;
    }

    .dropdown-menu a {
        padding: 10px 15px 10px 30px;
        font-size: 15px;
        color: var(--text-color);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        position: relative;
    }

    .dropdown-menu a::before {
        content: '→';
        position: absolute;
        left: 25px;
        color: var(--primary-color);
        font-size: 12px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .dropdown-menu a:hover {
        background: rgba(26, 77, 140, 0.1);
        color: var(--primary-color);
        padding-left: 50px;
        transform: translateX(5px);
    }

    .dropdown-menu a:hover::before {
        opacity: 1;
        left: 30px;
    }

    /* Appointment link in mobile menu (rendered as normal nav-link text) */
    .menu-appointment-item {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Hide the original button's icon so it reads like “İletişim” (text-only) */
    .appointment-nav-link i {
        display: none;
    }

    /* Ensure span doesn't inherit button-only nowrap in some cases */
    .appointment-nav-link span {
        white-space: normal;
    }

    .hero {
        padding: 140px 0 120px;
        min-height: 650px;
        aspect-ratio: 1920 / 800;
        background-attachment: scroll;
    }

    .hero-logo {
        margin-bottom: 8px;
    }

    .hero-logo-image {
        width: 180px;
        height: 180px;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-text {
        font-size: 18px;
    }

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

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

    .appointment-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .appointment-calendar,
    .appointment-form-wrapper {
        padding: 25px 20px;
    }

    .cookie-content {
        padding: 20px 25px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-icon {
        font-size: 32px;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-text h3 {
        font-size: 18px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .cookie-link {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .contact-social-section {
        padding: 30px 20px;
        margin-top: 40px;
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .contact-social-links {
        gap: 15px;
    }

    .social-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map {
        height: 400px;
    }

    .service-detail-content {
        flex-direction: column;
        text-align: center;
    }

    .project-item,
    .team-member-large {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .history-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image {
        position: static;
        text-align: center;
    }

    .history-logo {
        max-width: 200px;
        margin: 0 auto 20px;
    }

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

    .service-image {
        height: 300px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-top-bar {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-top-bar .container {
        padding: 0 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .navbar-content {
        padding: 12px 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hamburger menu fixes for 480px */
    .nav-menu {
        left: 0 !important;
        margin: 0 !important;
        padding: 80px 0 20px !important;
        width: 60% !important;
        max-width: 280px !important;
        min-width: 250px !important;
        box-sizing: border-box;
        gap: 0 !important;
        align-items: stretch !important;
        text-align: left !important;
    }

    .nav-menu > li {
        margin: 0 !important;
        width: 100% !important;
    }

    .nav-link {
        padding: 10px 12px 10px 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        font-size: 15px !important;
        border-radius: 0 !important;
    }

    .dropdown-menu {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 6px !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 8px !important;
    }

    .dropdown-menu a {
        padding: 8px 12px 8px 25px !important;
        font-size: 14px !important;
    }

    .hamburger {
        margin: 0 !important;
        padding: 8px !important;
        position: relative;
        right: 0;
    }

    .navbar-content {
        justify-content: space-between !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    .header-top-content {
        padding: 8px 0;
    }

    .contact-link {
        font-size: 12px;
    }

    .contact-link span {
        font-size: 12px;
    }

    .contact-info-cards {
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card .info-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .contact-social-section {
        padding: 25px 15px;
        margin-top: 30px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .cookie-content {
        padding: 15px 20px;
        gap: 15px;
    }

    .cookie-icon {
        font-size: 28px;
    }

    .cookie-text h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-actions {
        gap: 8px;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 12px;
        min-width: 100px;
    }

    .appointment-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .appointment-calendar,
    .appointment-form-wrapper {
        padding: 20px 15px;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        font-size: 14px;
        padding: 8px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
        max-height: 250px;
    }

    .time-slot-btn {
        padding: 8px;
        font-size: 13px;
    }

    .contact-social-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 25px 20px;
    }

    .contact-form-wrapper h2,
    .contact-map-wrapper h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .contact-map {
        height: 300px;
    }

    .map-link-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .navbar-content {
        padding: 12px 15px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-tagline {
        display: none;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero {
        /* Mobile: fill the viewport nicely (avoid letterboxing caused by 100% auto background-size) */
        padding: 105px 0 85px;
        min-height: 480px;
        aspect-ratio: auto;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    .hero-logo {
        margin-bottom: 6px;
    }

    .hero-logo-image {
        width: 150px;
        height: 150px;
    }

    .hero-name {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .history-wrapper,
    .history-page .history-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image,
    .history-logo {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section ul li {
        font-size: 14px;
    }
}

/* Extra Small Devices (320px and below) */
/* Small Phones (480px and below) - Top bar compact (icons only + language on one row) */
@media (max-width: 480px) {
    .header-top-bar .container {
        padding: 0 10px;
    }

    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        flex-wrap: nowrap;
    }

    .header-contact {
        flex-direction: row;
        width: auto;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    /* Turn phone/mail/whatsapp into icon-only buttons */
    .header-contact .contact-link {
        width: 34px;
        height: 34px;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 8px;
    }

    .header-contact .contact-link span {
        display: none;
    }

    .header-contact .contact-link i {
        width: auto;
        font-size: 16px;
    }

    .header-actions {
        width: auto;
        flex-shrink: 0;
        justify-content: flex-end;
        gap: 8px;
    }

    .lang-switcher {
        padding: 3px;
        gap: 4px;
        border-radius: 6px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
        line-height: 1;
        min-width: 34px;
        text-align: center;
    }
}

@media (max-width: 320px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 8px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-top-bar {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .header-top-bar .container {
        padding: 0 8px !important;
        margin: 0 !important;
    }

    .header {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .header-top-content {
        padding: 6px 0;
    }

    .contact-link {
        font-size: 11px;
    }

    .contact-link span {
        font-size: 11px;
    }

    .navbar-content {
        padding: 10px 8px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Hamburger menu fixes for 320px */
    .nav-menu {
        left: 0 !important;
        margin: 0 !important;
        padding: 70px 0 15px !important;
        width: 70% !important;
        max-width: 250px !important;
        min-width: 220px !important;
        box-sizing: border-box;
        gap: 0 !important;
        align-items: stretch !important;
        text-align: left !important;
    }

    .nav-menu > li {
        margin: 0 !important;
        width: 100% !important;
    }

    .nav-link {
        padding: 9px 10px 9px 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        font-size: 14px !important;
        box-sizing: border-box;
        border-radius: 0 !important;
    }

    .dropdown-menu {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 5px !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 8px !important;
    }

    .dropdown-menu a {
        padding: 11px 14px 11px 35px !important;
        font-size: 13px !important;
        box-sizing: border-box;
    }

    .hamburger {
        margin: 0 !important;
        padding: 8px !important;
        position: relative;
        right: 0;
    }

    /* Appointment link in mobile menu - 320px: already follows .nav-link compact rules above */

    .navbar-content {
        justify-content: space-between !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .hero {
        /* Extra small phones: keep hero compact + full-bleed image */
        padding: 85px 0 60px;
        min-height: 380px;
        aspect-ratio: auto;
        background-size: cover;
        background-position: center center;
    }

    .hero-logo-image {
        width: 100px;
        height: 100px;
    }

    .hero-name {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    /* Cards: reduce padding/typography to fit cleanly */
    .service-card {
        padding: 18px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 14px;
        font-size: 26px;
    }

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 13px;
    }

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 15px;
    }

    .article-meta {
        font-size: 12px;
        gap: 10px;
        margin-bottom: 10px;
    }

    .article-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .project-image {
        height: 160px;
        font-size: 48px;
    }

    .project-content {
        padding: 18px;
    }

    /* Header top bar: keep readable, allow long email to wrap safely */
    .header-top-bar .contact-link span {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 14px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card .info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p {
        font-size: 13px;
    }

    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 20px 15px;
    }

    .contact-form-wrapper h2,
    .contact-map-wrapper h2 {
        font-size: 20px;
    }

    .contact-map {
        height: 250px;
    }

    .appointment-calendar,
    .appointment-form-wrapper {
        padding: 15px 10px;
    }

    .calendar-day {
        font-size: 12px;
        padding: 6px;
        min-height: 38px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        padding: 8px;
        max-height: 220px;
    }

    .time-slot-btn {
        padding: 6px;
        font-size: 11px;
        min-height: 38px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* Medium Devices (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile Devices (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-friendly elements for mobile */
@media (max-width: 768px) {
    /* Increase touch target sizes */
    button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn, .btn-primary, .btn-appointment {
        min-height: 44px;
        padding: 12px 20px;
    }

    .time-slot-btn {
        min-height: 44px;
        min-width: 70px;
    }

    .calendar-day {
        min-height: 44px;
    }

    /* Improve readability */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Prevent horizontal overflow (avoid global max-width rules that can break layout) */
    html, body {
        overflow-x: hidden;
    }

    img, svg, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Better form inputs */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 80px 0 60px;
    }

    .hero-logo-image {
        width: 100px;
        height: 100px;
    }

    .hero-name {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 28px;
    }
}

/* Additional responsive improvements */
@media (max-width: 968px) {
    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .services-section,
    .projects-section,
    .articles-section {
        padding: 60px 0;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 16px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text overflow */
p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Table responsive */
table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form elements responsive */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Appointment page: extra small screen overflow fixes (480px / 320px) */
@media (max-width: 480px) {
    .appointment-wrapper,
    .appointment-calendar,
    .appointment-form-wrapper,
    .calendar-grid {
        min-width: 0;
        max-width: 100%;
    }

    .appointment-calendar,
    .appointment-form-wrapper {
        overflow: hidden;
        padding: 18px 12px;
    }

    .calendar-header {
        gap: 8px;
        margin-bottom: 14px;
    }

    .calendar-header h3 {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .calendar-nav {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day-header {
        padding: 6px 0;
        font-size: 12px;
    }

    .calendar-day {
        border-width: 1px;
        border-radius: 6px;
    }

    .time-slots {
        padding: 8px;
    }

    /* Override touch min-width to prevent grid overflow */
    .time-slot-btn {
        min-width: 0 !important;
    }
}

@media (max-width: 320px) {
    .appointment-calendar,
    .appointment-form-wrapper {
        padding: 16px 10px;
    }

    .calendar-header h3 {
        font-size: 14px;
    }

    .calendar-nav {
        width: 30px;
        height: 30px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day-header {
        font-size: 11px;
    }
}

