@tailwind base;
@tailwind components;
@tailwind utilities;

/* Your custom CSS goes here */

/* The sticky class is added to the header with JS when it reaches its scroll position */
.sticky {
    position: fixed;
    top: 0;
    width: 100%
}

.webkit-center {
    text-align: -webkit-center !important;
}

.webkit-fill-available {
    width: -webkit-fill-available;  
}

.color-gray-navbar{
  background-color: #212529;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.dark-gray-card {
  color:white !important; 
  background-color: #343a40 !important;
  border: none !important;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.service-icon {
    transition: all 0.3s ease-in-out;
}

.service-icon:hover {
    transform: scale(1.1);
}

.service-button {
    transition: all 0.3s ease-in-out;
}

.service-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Text shadow for hero section */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Smooth section transitions */
section {
    transition: background-color 0.3s ease-in-out;
}

/* Enhanced video container */
iframe {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced section icons */
.section-icon {
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07));
}

.section-icon:hover {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04));
    transform: translateY(-2px);
}

/* Restoration page styles */
.restoration-card {
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.restoration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.restoration-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.restoration-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.restoration-image:hover {
    transform: scale(1.05);
}

.restoration-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.restoration-card .card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.restoration-card .btn {
    margin-top: auto;
}

.restoration-card .text-muted {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cover image styles */
.cover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Sort button and dropdown styles */
.sort-dropdown {
    position: relative;
    margin-bottom: 2rem;
}

.sort-button {
    background-color: #343a40;
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid #FBB039;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-button:hover {
    background-color: #FBB039;
    color: #343a40;
}

.sort-button i {
    font-size: 0.875rem;
}

.sort-dropdown .dropdown-menu {
    background-color: #343a40;
    border: 2px solid #FBB039;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.sort-dropdown .dropdown-item {
    color: white;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-dropdown .dropdown-item:hover {
    background-color: #FBB039;
    color: #343a40;
}

.sort-dropdown .dropdown-item i {
    color: #FBB039;
}

.sort-dropdown .dropdown-item:hover i {
    color: #343a40;
}

/* Work page styles */
.work-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-main {
    flex: 1;
}

.work-sidebar {
    width: 300px;
}

@media (max-width: 768px) {
    .work-container {
        flex-direction: column;
    }
    .work-sidebar {
        width: 100%;
    }
}

.work-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.work-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

.work-image:hover {
    transform: scale(1.02);
}

.work-title {
    font-size: 2rem;
    font-weight: 600;
    color: #343a40;
    border-bottom: 3px solid #FBB039;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.work-content {
    padding: 1.5rem;
    color: #343a40;
    line-height: 1.7;
}

.work-date {
    padding: 1rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    border-bottom: 3px solid #FBB039;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.related-item {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.related-link {
    color: #343a40;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-link:hover {
    color: #FBB039;
    text-decoration: none;
}

.interested-section {
    margin-top: 3rem;
}

.interested-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #343a40;
    border-bottom: 3px solid #FBB039;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.interested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.interested-item {
    transition: transform 0.3s ease;
}

.interested-item:hover {
    transform: translateY(-5px);
}

.interested-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* News page styles */
.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1rem;
}

.news-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: #343a40;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card-text {
    color: #e9ecef;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
}

/* Article page styles */
.article-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-main {
    flex: 1;
}

.article-sidebar {
    width: 300px;
}

@media (max-width: 768px) {
    .article-container {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
    }
}

.article-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #343a40;
    border-bottom: 3px solid #FBB039;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.article-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
    color: #343a40;
    line-height: 1.7;
}

.article-date {
    padding: 1rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.latest-news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    border-bottom: 3px solid #FBB039;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.latest-news-item {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.latest-news-item:hover {
    transform: translateY(-5px);
}

.latest-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.latest-news-link {
    color: #343a40;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-news-link:hover {
    color: #FBB039;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    color: #FBB039;
    background-color: #343a40;
    border: 2px solid #FBB039;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #FBB039;
    color: #343a40;
    text-decoration: none;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}
