/**
 * GAL Mezunlar Derneği - Custom UI/UX Enhancements
 * Modern, clean design improvements
 */

/* ============================================
   CSS Variables (Renk Paleti)
   ============================================ */
:root {
    --gal-primary: #C41E3A;
    --gal-primary-dark: #9B1830;
    --gal-primary-light: #E8425A;
    --gal-secondary: #1E3A8A;
    --gal-secondary-dark: #152C6B;
    --gal-secondary-light: #2D4BA3;
    --gal-accent: #FFD700;
    --gal-text: #333333;
    --gal-text-light: #666666;
    --gal-bg-light: #F8F9FA;
    --gal-bg-dark: #2C3E50;
    --gal-white: #FFFFFF;
    --gal-border: #E0E0E0;
    --gal-shadow: rgba(0, 0, 0, 0.1);
    --gal-shadow-hover: rgba(0, 0, 0, 0.15);
    --gal-transition: all 0.3s ease;
}

/* ============================================
   Typography Improvements
   ============================================ */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--gal-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gal-text);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gal-text-light);
}

/* ============================================
   Header / Navigation Improvements
   ============================================ */
.navbar {
    background: var(--gal-white) !important;
    box-shadow: 0 2px 20px var(--gal-shadow);
    padding: 0.5rem 0;
    transition: var(--gal-transition);
}

.navbar.sticky {
    background: var(--gal-white) !important;
    box-shadow: 0 4px 30px var(--gal-shadow-hover);
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    color: var(--gal-text) !important;
    transition: var(--gal-transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--gal-primary) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gal-primary);
    transition: var(--gal-transition);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 80%;
}

.logo-img {
    max-height: 55px !important;
    transition: var(--gal-transition);
}

.navbar.sticky .logo-img {
    max-height: 45px !important;
}

/* Top Bar */
.top-bar-inner {
    background: linear-gradient(135deg, var(--gal-primary) 0%, var(--gal-primary-dark) 100%);
    height: 4px;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

#container {
    margin: 0;
    padding: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--gal-shadow-hover);
    padding: 0.5rem 0;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--gal-transition);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--gal-bg-light);
    color: var(--gal-primary);
    padding-left: 2rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--gal-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary,
.btn-default {
    background: linear-gradient(135deg, var(--gal-primary) 0%, var(--gal-primary-dark) 100%);
    color: var(--gal-white);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover,
.btn-default:hover {
    background: linear-gradient(135deg, var(--gal-primary-light) 0%, var(--gal-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    color: var(--gal-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gal-secondary) 0%, var(--gal-secondary-dark) 100%);
    color: var(--gal-white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gal-secondary-light) 0%, var(--gal-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--gal-primary);
    color: var(--gal-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gal-primary);
    color: var(--gal-white);
}

/* ============================================
   Cards & Content Boxes
   ============================================ */
.card,
.box,
.post-item,
.news-item {
    background: var(--gal-white);
    border-radius: 12px;
    box-shadow: 0 5px 25px var(--gal-shadow);
    transition: var(--gal-transition);
    overflow: hidden;
    border: none;
}

.card:hover,
.box:hover,
.post-item:hover,
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--gal-shadow-hover);
}

.card-title,
.post-title {
    color: var(--gal-text);
    font-weight: 600;
    transition: var(--gal-transition);
}

.card-title:hover,
.post-title:hover,
.card-title a:hover,
.post-title a:hover {
    color: var(--gal-primary) !important;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title,
.heading-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after,
.heading-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gal-primary), var(--gal-secondary));
    border-radius: 2px;
}

.section-title.text-center::after,
.heading-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   Footer
   ============================================ */
footer.footer {
    background: linear-gradient(135deg, var(--gal-bg-dark) 0%, #1a252f 100%) !important;
    padding: 4rem 0 2rem;
}

footer .footer-title,
footer h4,
footer h5,
footer h6 {
    color: var(--gal-white) !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer .footer-title::after,
footer h4::after,
footer h5::after,
footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gal-primary);
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--gal-transition);
}

footer a:hover {
    color: var(--gal-primary) !important;
    padding-left: 5px;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer .logo-imgz {
    max-height: 70px !important;
    margin-bottom: 1rem;
}

/* Social Icons */
footer .icon,
footer .btn-facebook,
footer .btn-twitter,
footer .btn-instagram,
footer .btn-youtube,
footer .btn-whatsapp {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--gal-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--gal-shadow);
}

/* ============================================
   Forms
   ============================================ */
.form-control {
    border: 2px solid var(--gal-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--gal-transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--gal-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-box,
.widget-box {
    background: var(--gal-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 25px var(--gal-shadow);
}

.sidebar-title,
.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gal-text);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gal-primary);
}

.sidebar-list li,
.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gal-border);
}

.sidebar-list li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a,
.category-list li a {
    color: var(--gal-text-light);
    transition: var(--gal-transition);
}

.sidebar-list li a:hover,
.category-list li a:hover {
    color: var(--gal-primary);
    padding-left: 10px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--gal-text-light);
    transition: var(--gal-transition);
}

.breadcrumb-item a:hover {
    color: var(--gal-primary);
}

.breadcrumb-item.active {
    color: var(--gal-primary);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin: 2rem 0;
}

.pagination .page-item .page-link {
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 3px;
    border-radius: 8px;
    color: var(--gal-text);
    transition: var(--gal-transition);
}

.pagination .page-item .page-link:hover {
    background: var(--gal-bg-light);
    color: var(--gal-primary);
}

.pagination .page-item.active .page-link {
    background: var(--gal-primary);
    color: var(--gal-white);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px var(--gal-shadow);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* ============================================
   Loading Animation (Improved)
   ============================================ */
.loading {
    background: linear-gradient(135deg, var(--gal-primary) 0%, var(--gal-primary-dark) 100%);
}

.lds-ellipsis div {
    background: var(--gal-white);
}

/* ============================================
   Slider/Carousel Improvements
   ============================================ */
.owl-carousel .owl-nav button,
.carousel-control {
    width: 50px;
    height: 50px;
    background: var(--gal-white) !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--gal-shadow);
    transition: var(--gal-transition);
    opacity: 1;
}

.owl-carousel .owl-nav button:hover,
.carousel-control:hover {
    background: var(--gal-primary) !important;
    color: var(--gal-white);
    transform: scale(1.1);
}

.owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: var(--gal-border);
    transition: var(--gal-transition);
}

.owl-dots .owl-dot.active span {
    background: var(--gal-primary);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE - Tablet (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
    /* --- Navbar Collapse Fix (force Bootstrap collapse behavior) --- */
    .navbar-collapse {
        display: none !important;
        background: var(--gal-white);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px var(--gal-shadow);
        margin-top: 0.5rem;
        width: 100%;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
    }

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

    .navbar .nav-link {
        padding: 0.5rem 1rem !important;
        border-bottom: 1px solid var(--gal-border);
        display: block;
    }

    .navbar .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-toggler {
        display: block !important;
        border: 2px solid var(--gal-primary) !important;
        background-color: var(--gal-primary) !important;
        color: var(--gal-white) !important;
        padding: 0.4rem 0.75rem;
        border-radius: 6px;
        font-size: 1.1rem;
        outline: none !important;
        box-shadow: none !important;
    }

    .navbar-toggler .icon-bar {
        color: var(--gal-white);
    }

    .navbar-toggler .icon-bar i {
        color: var(--gal-white) !important;
    }

    .navbar-toggler:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .navbar > .container {
        flex-wrap: wrap;
    }

    /* --- Typography --- */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    /* --- Sections --- */
    .section-padding {
        padding: 60px 0;
    }

    .section-padding-banner {
        padding: 80px 0;
    }

    .section-padding-yeni {
        padding: 40px 0;
    }

    .section-padd {
        padding: 60px 0;
    }

    .section-padd-footer {
        padding: 50px 0;
    }

    .box-padding {
        padding: 40px 3%;
    }

    /* --- Homepage tabs/categories sidebar --- */
    .ag-tabs_list {
        float: none;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .ag-tabs_item {
        flex: 1 1 auto;
    }

    .ag-tabs_link {
        padding: 8px 12px;
        text-align: center;
        font-size: 13px;
    }

    /* --- Cards --- */
    .blog-grid-ct .item-container {
        margin-bottom: 1.25rem;
    }

    /* --- Dropdown Menu (mobile) --- */
    .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        background: #f8f9fa !important;
        padding: 0;
        animation: none;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* ============================================
   RESPONSIVE - Mobile (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    /* --- Typography --- */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }

    p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .section-title,
    .heading-title {
        font-size: 1.3rem;
    }

    /* --- Buttons --- */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .butn {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* --- Sections --- */
    .section-padding {
        padding: 40px 0;
    }

    .section-padding-banner {
        padding: 50px 0;
    }

    .section-padd {
        padding: 40px 0;
    }

    .box-padding {
        padding: 20px 3%;
    }

    /* --- Container padding --- */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* --- Navbar --- */
    .logo-img {
        max-height: 45px !important;
    }

    .navbar {
        padding: 0.4rem 0;
    }

    /* --- Hero Banner --- */
    .gal-hero-banner {
        min-height: 250px;
    }

    .gal-hero-logo {
        width: 80px;
        height: 80px;
        padding: 8px;
    }

    .gal-hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .gal-hero-content p {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .gal-hero-content {
        padding: 2rem 1rem;
    }

    /* --- Pages Header Banner --- */
    .pages {
        min-height: auto !important;
        padding: 20px 0 !important;
        text-align: center;
    }

    .pages h5 {
        font-size: 1.2rem !important;
        float: none !important;
        margin-bottom: 5px;
    }

    .pages h6 {
        float: none !important;
        text-align: center;
        font-size: 0.85rem !important;
    }

    /* --- Homepage content grid --- */
    .col-lg-4.padding,
    .col-lg-8,
    .col-xs-12.col-lg-8 {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Tabs list - horizontal scroll on mobile */
    .ag-tabs_list {
        float: none !important;
        width: 100% !important;
        min-width: 100% !important;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
        background-color: #f4f4f4;
    }

    .ag-tabs_item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ag-tabs_link {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* News cards - full width */
    .col-md-6.item {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 20px;
    }

    .blog-grid-ct .item-container {
        margin-bottom: 1rem;
    }

    .blog-grid-ct .cont {
        padding: 1rem;
    }

    .blog-grid-ct .cont h5 {
        font-size: 1rem;
    }

    .blog-grid-ct .cont p {
        font-size: 0.85rem;
    }

    /* --- Footer --- */
    footer.footer {
        padding: 2.5rem 0 1rem;
        text-align: center;
    }

    footer .footer-title::after,
    footer h4::after,
    footer h5::after,
    footer h6::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .col-lg-4,
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }

    footer .logo-imgz {
        max-height: 60px !important;
        margin: 0 auto 1rem;
        display: block;
    }

    footer .social {
        text-align: center;
    }

    footer .icon,
    footer .btn-facebook,
    footer .btn-twitter,
    footer .btn-instagram,
    footer .btn-youtube,
    footer .btn-whatsapp {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin: 0 4px;
    }

    footer a:hover {
        padding-left: 0;
    }

    .sub-footer {
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .sub-footer p {
        font-size: 0.75rem;
    }

    /* --- Contact Page --- */
    .page-contact-info {
        margin-bottom: 30px;
    }

    .page-contact-info .item {
        margin-bottom: 20px;
        text-align: center;
    }

    .page-contact-info .icon {
        float: none !important;
        margin: 0 auto 10px;
    }

    .page-contact-info .item-icerik {
        text-align: center;
    }

    .page-contact form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* --- Sidebar / Widget --- */
    .widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .widget .widget-title h6 {
        font-size: 1rem;
    }

    .sidebar-box,
    .widget-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* --- Topic Detail Page --- */
    .post-content {
        padding: 1rem;
    }

    .post-content h5,
    .post-content h4 {
        font-size: 1.1rem;
    }

    /* Social share icons on topic detail */
    ul.social-network li a {
        width: 30px;
        padding: 3px;
        font-size: 14px;
    }

    /* --- Tables responsive --- */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.85rem;
    }

    .table td, .table th {
        padding: 0.5rem;
    }

    /* --- Scroll to top --- */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* --- Flex slider --- */
    #featured .flexslider {
        border: none;
    }

    .flex-caption {
        padding: 10px 15px;
        width: auto;
        left: 5%;
        right: 5%;
        bottom: 10px;
    }

    .flex-caption h3 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .flex-caption p {
        font-size: 9px;
        line-height: 1.4;
    }

    /* --- Image gallery grid --- */
    .gallery-grid .col-md-4,
    .gallery-grid .col-md-3,
    .gallery-grid .col-lg-4,
    .gallery-grid .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* --- Misc spacing --- */
    .mb-md50 {
        margin-bottom: 30px;
    }

    .mt-30 {
        margin-top: 15px;
    }

    .mb-30 {
        margin-bottom: 15px;
    }

    .pt-80 {
        padding-top: 40px;
    }

    .pb-80 {
        padding-bottom: 40px;
    }

    /* --- FAQ accordion --- */
    .faq .accordion .accordion-info {
        width: 100%;
        font-size: 13px;
        padding: 10px;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden !important;
    }

    .contents {
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* --- Blog/News grid --- */
    .blog .item {
        margin-bottom: 20px !important;
    }

    /* --- Process section --- */
    .process .padding {
        padding: 5px;
    }

    .process h4 {
        font-size: 20px;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* --- Typography --- */
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }

    p {
        font-size: 0.85rem;
    }

    /* --- Navbar --- */
    .logo-img {
        max-height: 40px !important;
    }

    .navbar-toggler {
        padding: 0.3rem 0.6rem;
        font-size: 1rem;
    }

    /* --- Hero Banner --- */
    .gal-hero-banner {
        min-height: 220px;
    }

    .gal-hero-logo {
        width: 70px;
        height: 70px;
    }

    .gal-hero-content h1 {
        font-size: 1.25rem;
    }

    .gal-hero-content p {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    /* --- Sections --- */
    .section-padding {
        padding: 30px 0;
    }

    .section-padding-banner {
        padding: 30px 0;
    }

    .section-padd {
        padding: 30px 0;
    }

    /* --- Cards & Content --- */
    .blog-grid-ct .cont {
        padding: 0.75rem;
    }

    .blog-grid-ct .cont h5 {
        font-size: 0.9rem;
    }

    .blog-grid-ct .cont .more {
        font-size: 0.8rem;
    }

    /* --- Forms --- */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    textarea.form-control {
        min-height: 100px;
    }

    /* --- Image gallery even smaller --- */
    .gallery-grid .col-md-4,
    .gallery-grid .col-md-3,
    .gallery-grid .col-lg-4,
    .gallery-grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* --- Placeholder image --- */
    .gal-placeholder-img {
        min-height: 140px;
        padding: 1.5rem;
    }

    .gal-placeholder-logo {
        max-width: 60px;
        max-height: 60px;
    }

    /* --- Footer --- */
    footer.footer {
        padding: 2rem 0 0.5rem;
    }

    footer .logo-imgz {
        max-height: 50px !important;
    }

    footer .icon,
    footer .btn-facebook,
    footer .btn-twitter,
    footer .btn-instagram,
    footer .btn-youtube,
    footer .btn-whatsapp {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
        margin: 0 3px;
    }

    /* --- Tab section --- */
    .ag-tabs_link {
        font-size: 11px;
        padding: 6px 8px;
    }

    /* --- Breadcrumbs --- */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* --- Pagination --- */
    .pagination .page-item .page-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    /* --- Contact form button --- */
    .page-contact .btn,
    form .butn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE - Extra Small (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    h1 { font-size: 1.2rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }

    .logo-img {
        max-height: 35px !important;
    }

    .gal-hero-banner {
        min-height: 200px;
    }

    .gal-hero-logo {
        width: 60px;
        height: 60px;
    }

    .gal-hero-content h1 {
        font-size: 1.1rem;
    }

    .gal-hero-content p {
        font-size: 0.75rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .blog-grid-ct .cont h5 {
        font-size: 0.85rem;
    }

    .widget {
        padding: 0.75rem;
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gal-primary) 0%, var(--gal-primary-dark) 100%);
    color: var(--gal-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    transition: var(--gal-transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.5);
}

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

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

/* ============================================
   Link Hover Effects
   ============================================ */
a {
    color: var(--gal-primary);
    transition: var(--gal-transition);
}

a:hover {
    color: var(--gal-primary-dark);
    text-decoration: none;
}

/* ============================================
   Image Improvements
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* ============================================
   Table Improvements
   ============================================ */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px var(--gal-shadow);
}

.table thead th {
    background: var(--gal-primary);
    color: var(--gal-white);
    border: none;
    padding: 1rem;
    font-weight: 500;
}

.table tbody tr {
    transition: var(--gal-transition);
}

.table tbody tr:hover {
    background: var(--gal-bg-light);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gal-border);
}

/* ============================================
   Hero Banner (Fallback when no slider images)
   ============================================ */
.gal-hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--gal-primary) 0%, var(--gal-primary-dark) 40%, var(--gal-secondary-dark) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gal-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.gal-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.gal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
}

.gal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem;
}

.gal-hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    padding: 10px;
}

.gal-hero-content h1 {
    color: var(--gal-white) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.gal-hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero banner mobile rules are now in the main responsive section above */

/* ============================================
   Placeholder Image (when no topic image exists)
   ============================================ */
.gal-placeholder-img {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 2rem;
}

.gal-placeholder-logo {
    max-width: 80px;
    max-height: 80px;
    opacity: 0.4;
    filter: grayscale(50%);
}

/* ============================================
   Contact Page Fixes
   ============================================ */
.page-contact-info .item-icerik h5 {
    color: var(--gal-text) !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-contact-info .icon {
    font-size: 1.5rem;
    color: var(--gal-primary);
}

/* Fix broken image display */
img[src=""],
img:not([src]) {
    visibility: hidden;
    min-height: 0;
}

/* ============================================
   Sub-footer
   ============================================ */
.sub-footer {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.sub-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Footer Telefon empty fix
   ============================================ */
footer .item li p b {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Content area improvements
   ============================================ */
.blog-grid-ct .item-container {
    background: var(--gal-white);
    border-radius: 12px;
    box-shadow: 0 5px 25px var(--gal-shadow);
    overflow: hidden;
    transition: var(--gal-transition);
    margin-bottom: 1.5rem;
}

.blog-grid-ct .item-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--gal-shadow-hover);
}

.blog-grid-ct .cont {
    padding: 1.25rem;
}

.blog-grid-ct .cont h5 a {
    color: var(--gal-text);
    font-weight: 600;
}

.blog-grid-ct .cont h5 a:hover {
    color: var(--gal-primary);
}

.blog-grid-ct .cont .more {
    color: var(--gal-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-grid-ct .cont .more:hover {
    color: var(--gal-primary-dark);
}

/* ============================================
   Widget/Sidebar improvements
   ============================================ */
.widget {
    background: var(--gal-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 25px var(--gal-shadow);
}

.widget .widget-title h6 {
    color: var(--gal-text) !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gal-primary);
    padding-bottom: 0.75rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gal-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--gal-text-light);
    transition: var(--gal-transition);
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: var(--gal-primary);
    padding-left: 5px;
}

/* ============================================
   Pages header banner
   ============================================ */
header.pages {
    background-color: var(--gal-primary) !important;
}

header.pages h5 {
    color: var(--gal-white) !important;
}

header.pages h6,
header.pages h6 a {
    color: rgba(255, 255, 255, 0.8) !important;
}

header.pages h6 a:hover {
    color: var(--gal-white) !important;
}

/* ============================================
   Section padding fixes
   ============================================ */
.section-padding-yeni {
    padding: 3rem 0;
}

#section-113 {
    padding-top: 2rem;
}
