/* FASTİAD Website Styles */
:root {
    --primary-red: #E5221F;
    --primary-green: #1CA24E;
    --primary-white: #FEFEFD;
    --dark-gray: #333333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--primary-white);
}

/* Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--primary-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.header-logo {
    width: 700px;
    max-width: 100%;
}

.header-logo img {
    max-height: 120px;
    width: 100%;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-red);
}

.contact-item label {
    font-size: 12px;
    color: var(--dark-gray);
    margin: 0;
    font-weight: 600;
}

.contact-item strong {
    font-size: 14px;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-green);
}

/* Navigation */
.navbar {
    background: var(--primary-red) !important;
    padding: 15px 0;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 600;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.dropdown-menu {
    background: var(--primary-white);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    color: var(--dark-gray);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-green);
    color: var(--primary-white);
}

.search-form .form-control {
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: var(--primary-white);
}

.search-form .form-control::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-form .btn {
    border: 2px solid var(--primary-white);
    border-radius: 25px;
    color: var(--primary-white);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: var(--primary-white);
    color: var(--primary-red);
}

/* Hero Slider */
.hero-slider {
    margin-top: 20px;
}

.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-carousel .slide {
    position: relative;
    height: 500px;
}

.hero-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(229, 34, 31, 0.9);
    color: var(--primary-white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-carousel .slide:hover .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* President Message */
.president-message {
    background: var(--light-gray);
    padding: 20px;
    text-align: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.president-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.president-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.president-image:hover img {
    transform: scale(1.1);
}

.president-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(229, 34, 31, 0.9);
    color: var(--primary-white);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.president-image:hover .overlay {
    transform: translateY(0);
}

.president-message h4 {
    color: var(--primary-red);
    font-weight: 600;
}

.president-message p {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Quick Links */
.quick-links {
    background: var(--primary-green);
    color: var(--primary-white);
    padding: 20px;
    height: 300px;
}

.quick-links h5 {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: var(--primary-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.quick-links ul li a:hover {
    color: var(--primary-red);
    background: rgba(255,255,255,0.1);
    padding-left: 10px;
}

/* Corner Articles */
.corner-articles {
    margin: 50px 0;
}

.articles-content {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 50px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.articles-content h2 a {
    color: var(--primary-white);
    text-decoration: none;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin-bottom: 30px;
}

.articles-carousel {
    flex: 1;
}

.article-item blockquote {
    border: none;
    margin-bottom: 20px;
}

.article-item blockquote p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-item blockquote a {
    color: var(--primary-white);
    text-decoration: none;
}

.article-item .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-item .author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.article-item .author p {
    margin: 0;
}

.article-item .author strong {
    display: block;
    font-size: 16px;
}

.article-item .author span {
    font-size: 12px;
    opacity: 0.8;
}

.articles-image {
    height: 450px;
    overflow: hidden;
}

.articles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Section */
.news-section {
    padding: 50px 0;
    background: var(--light-gray);
}

.news-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 20px;
}

.news-item {
    background: var(--primary-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 34, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-image .overlay {
    opacity: 1;
}

.news-image .overlay i {
    color: var(--primary-white);
    font-size: 24px;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.4;
}

.news-item a {
    text-decoration: none;
}

/* Footer */
#footer {
    background: var(--dark-gray);
    color: var(--primary-white);
}

#footer .logo img {
    max-height: 40px;
}

#footer h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list li i {
    color: var(--primary-green);
    font-size: 18px;
    margin-top: 3px;
}

.contact-list li p {
    margin: 0;
    line-height: 1.4;
}

.contact-list li a {
    color: var(--primary-white);
    text-decoration: none;
}

.contact-list li a:hover {
    color: var(--primary-green);
}

/* Footer Social Icons Fix */
.social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
}

.social-icons li {
    list-style: none;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #E5221F;
    color: #E5221F;
    font-size: 20px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #E5221F;
    color: #fff;
    border-color: #E5221F;
}

.footer-copyright {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 991px) {
    .header-contact {
        justify-content: center;
        margin-top: 15px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .search-form {
        margin-top: 15px;
        justify-content: center;
    }
    
    .president-message,
    .quick-links {
        height: auto;
        margin-bottom: 20px;
    }
    
    .articles-content {
        height: auto;
        padding: 30px;
    }
    
    .articles-image {
        height: 300px;
    }
    
    .about-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .header-contact {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .articles-content h2 {
        font-size: 24px;
    }
    
    .news-section h2 {
        font-size: 24px;
    }
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red) !important;
    color: var(--primary-white) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 20px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 20px;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active {
    background: var(--primary-red);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-primary-red {
    color: var(--primary-red) !important;
}

.text-primary-green {
    color: var(--primary-green) !important;
}

.bg-primary-red {
    background-color: var(--primary-red) !important;
}

.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.border-primary-red {
    border-color: var(--primary-red) !important;
}

.border-primary-green {
    border-color: var(--primary-green) !important;
}

/* Galeri grid ve görsel stilleri */
.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 0;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.portfolio-item:hover {
  box-shadow: 0 8px 32px rgba(229,34,31,0.18);
  transform: scale(1.03);
  z-index: 2;
}
.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 0.3s;
}
.portfolio-item a.fancybox::after {
  content: '\f00e';
  font-family: 'FontAwesome';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.portfolio-item a.fancybox:hover::after {
  opacity: 1;
}
.portfolio-item a.fancybox img {
  filter: brightness(0.7);
}
.portfolio-item a.fancybox:hover img {
  filter: brightness(0.5);
}
/* Responsive grid */
@media (max-width: 991px) {
  .portfolio-items article.col-sm-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .portfolio-items article.col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  .gallery-img { height: 180px; }
}
/* Resim ekle butonu */
#gallery-upload-input + .btn-primary {
  margin-bottom: 16px;
}
#gallery-preview .portfolio-item {
  border: 2px dashed #1CA24E;
  background: #f8fff8;
}
#gallery-preview .btn-success {
  margin-top: 8px;
}

.gallery-img-fixed {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f8f8f8;
}
@media (max-width: 767px) {
  .gallery-img-fixed {
    height: 140px;
  }
}
.portfolio-item {
  overflow: hidden;
}

.gallery-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  margin-bottom: 24px;
}
.gallery-card:hover {
  box-shadow: 0 8px 32px rgba(229,34,31,0.18);
  transform: scale(1.03);
  z-index: 2;
}
.gallery-card .gallery-img-fixed {
  transition: filter 0.3s;
}
.gallery-card .gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}
.gallery-card .gallery-zoom-icon {
  color: #fff;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
}
.gallery-card .btn-danger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.about-img {
    max-width: 100%;
    width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin-right: 32px;
}
@media (max-width: 991px) {
    .about-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }
}

.about-section-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 48px 32px;
    margin-top: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s;
}
.about-section-box:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}
.about-header-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-red);
    margin-bottom: 18px;
}
.about-header-text p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
}
.about-section-box p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.8;
}
@media (max-width: 991px) {
    .about-section-box {
        padding: 24px 10px;
    }
    .about-header-text h1 {
        font-size: 2rem;
    }
}

.sticky-header.header-hidden .header-top {
    display: none !important;
}

.navbar .btn-primary {
    background-color: #E5221F !important;
    border-color: #E5221F !important;
}

.navbar .btn-primary:hover {
    background-color: #c41a17 !important;
    border-color: #c41a17 !important;
} 