body {
    font-family:"Google Sans Flex", sans-serif;
    font-size: 16px;
    background-color: #f1f1f1;
}
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Box Content Styles */
.box_content {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Headings */
.box_content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #177ebe;
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 1.3;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.box_content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #177ebe;
    margin-top: 28px;
    margin-bottom: 18px;
    line-height: 1.4;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.box_content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e40af;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.box_content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
    margin-top: 20px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.box_content h5 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-top: 18px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.box_content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Paragraphs */
.box_content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

/* Links */
.box_content a {
    color: #177ebe;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.box_content a:hover {
    color: #1e40af;
    text-decoration: none;
}

/* Lists */
.box_content ul,
.box_content ol {
    margin-bottom: 20px;
    padding-left: 30px;
    line-height: 1.8;
}

.box_content ul {
    list-style-type: disc;
}

.box_content ol {
    list-style-type: decimal;
}

.box_content ul ul,
.box_content ol ol,
.box_content ul ol,
.box_content ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.box_content li {
    margin-bottom: 8px;
    color: #374151;
}

.box_content li::marker {
    color: #177ebe;
}

/* Images */
.box_content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Tables */
.box_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.box_content table th {
    background-color: #177ebe;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1e40af;
}

.box_content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.box_content table tr:last-child td {
    border-bottom: none;
}

.box_content table tr:nth-child(even) {
    background-color: #f9fafb;
}

.box_content table tr:hover {
    background-color: #f3f4f6;
}

/* Blockquotes */
.box_content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #177ebe;
    background-color: #f0f9ff;
    border-radius: 4px;
    font-style: italic;
    color: #1e40af;
}

.box_content blockquote p {
    margin-bottom: 0;
}

/* Code */
.box_content code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d32b27;
}

.box_content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
}

.box_content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

/* Text Formatting */
.box_content strong,
.box_content b {
    font-weight: 700;
    color: #1f2937;
}

.box_content em,
.box_content i {
    font-style: italic;
}

.box_content u {
    text-decoration: underline;
}

/* Horizontal Rule */
.box_content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 30px 0;
}

/* Iframes */
.box_content iframe {
    max-width: 100%;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* First and Last Child */
.box_content > *:first-child {
    margin-top: 0;
}

.box_content > *:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .box_content {
        font-size: 15px;
    }

    .box_content h1 {
        font-size: 26px;
    }

    .box_content h2 {
        font-size: 22px;
    }

    .box_content h3 {
        font-size: 20px;
    }

    .box_content h4 {
        font-size: 18px;
    }

    .box_content table {
        font-size: 14px;
    }

    .box_content table th,
    .box_content table td {
        padding: 8px 12px;
    }
}

/* Project Card Image Zoom Effect */
.project-card {
    cursor: pointer;
}

.project-image-wrapper {
    overflow: hidden;
    position: relative;
}

.project-image {
    transition: transform 0.5s ease, opacity 0.3s ease;
    will-change: transform;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Sort Dropdown Styles */
.sort-dropdown-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: transparent;
    border: none;
    outline: none;
}

.sort-dropdown-btn:focus {
    outline: none;
}

.sort-dropdown-menu {
    animation: fadeIn 0.2s ease-in-out;
    min-width: 180px;
}

.sort-dropdown-menu.show {
    display: block !important;
}

.sort-dropdown-icon.rotate {
    transform: rotate(180deg);
}

.sort-option {
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 4px;
}

.sort-option.active {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Dropdown Styles */
.filter-dropdown-btn {
    text-align: left;
}

.filter-dropdown-menu {
    animation: fadeIn 0.2s ease-in-out;
    max-height: 300px;
    overflow-y: auto;
}

.filter-dropdown-menu.show {
    display: block !important;
}

.filter-dropdown-icon.rotate {
    transform: rotate(180deg);
}

.filter-option {
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 4px;
}

.filter-option.active {
    background-color: #e0f2fe;
    color: #0070c9;
    font-weight: 500;
}

/* Custom scrollbar for dropdown */
.filter-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Gallery Thumbs Navigation */
.gallery-thumbs-nav-prev,
.gallery-thumbs-nav-next {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-thumbs-nav-prev:hover,
.gallery-thumbs-nav-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-thumbs-nav-prev.swiper-button-disabled,
.gallery-thumbs-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Box Map Styles */
.box-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.box-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .box-map {
        height: 400px;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .box-map {
        height: 300px;
        border-radius: 6px;
    }
}
