@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #e44d26;
    --light-bg: #f8f9fa;
}

* {
    /* font-family: 'Roboto'; */
    font-weight:400;
}
body {
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.fa-bars{
    color:#1e3c72;
}
.hide {
    display: none;
}
.not-found {
    color: #e44d26;
}
#tanitim-count {
    font-size: 14px !important;
}


/* Pagination */
.pagination .page-link{
    border-radius: 4px;
    border: 0;
    margin-right: 3px;
    color: #1e3c72;
    border:1px solid #1e3c72;
    box-shadow: none;
    font-size: 18px;
    padding: 0.3em 0.7em;
    transition: 0.3s all;
}
.pagination .page-item.disabled span{
    background: #dbdbdb !important;
    border: 1px solid #dbdbdb !important;
}
.pagination .page-link:hover{
    color: #fff;
    background:#1e3c72 !important;
}
.pagination .page-link:focus{
    box-shadow: none !important;
}
.pagination .page-item.active .page-link{
    color: #fff;
    border: 0;
    box-shadow: none;
    background: #1e3c72;
    padding: 0.35em 1em;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width:100%;
    z-index: 999;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}
.navbar-toggler{
    border:0;
    outline:0;
    box-shadow:none;
    font-size:30px;
}
.navbar-toggler:focus{
    border:0;
    outline:0;
    box-shadow:none;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    align-items:unset !important;
    height: 150px;
    color: white;
    text-align: center;
    /* margin-bottom: 50px; */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    background-size: contain !important;
    background-position: center !important;
    background: #17428a;
}
.hero.inner-section{
    align-items:center !important;
}
.hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero .search-box {
    margin-top: 65px;
    margin-left: 300px;
}
.hero .search-input {
    width: 600px;
}

/* Search Box */
.search-input:focus {
    outline: 2px solid #e44d26
}


@media screen and (max-width:992px) {
    .hero {
        height: 350px !important;
        padding: 20px 0px !important;
    }

    .hero.inner-section{
        height: 150px !important;
        padding: 0 !important;
    }

    .hero .search-box {
        display: none;
    }

    .hero-container {
        display: flex;
        justify-content: center;
        align-items: end
    }
}


/* Search Results */
.search-results {
    margin-top: 7px;
    border-radius: 25px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    animation: fadeSlide 0.3s ease forwards;
}

.results-count {
    color: #1e3c72;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    background: #f9f9f9;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
    color: black;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.2s;
}

.results-list li:hover {
    background: #fcfbfb;
}

.results-list a {
    text-decoration: none;
}
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    font-size: 1rem;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 35px;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #d1401f;
    transform: translateY(-2px);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Auth Buttons */
.auth-buttons .btn {
    margin-left: 10px;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Business Cards */
.card{
    border: 0;
}
.cards-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
}
.custom-card {
    width: 350px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    animation: float 1s ease-in-out infinite alternate;
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.custom-card .title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #17336d;
    /* margin-bottom: 0.25rem; */
}

.custom-card .about {
    color: #dc5b3b;
    font-size: 0.875rem;
    font-weight: 600;
    /* color: #17336d; */
    border-bottom: 1px dashed;
    display:inline;
}

.custom-card .desc {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 6em;     /* Yaklaşık 4 satır */
    overflow: hidden;
    font-size: 0.75rem;
    color: #4b5563;
}

.custom-card .divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.custom-card .contact-info div {
    font-size: 0.75rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.custom-card .contact-info div i {
    margin-right: 0.5rem;
    color: #6b7280;
    width: 16px;
    height: 16px;
    text-align: center;
}

.custom-card .category-name {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: #17336d;
    padding: 4px 8px;
    border-radius: 4px;
}

.custom-card .shape {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 9em;
    color: rgba(23, 51, 109, 0.1);
}

/* Registration Form */
.registration-section {
    padding: 50px 0;
}

.registration-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
}

#verificationSection .submit-btn {
    width: 300px !important;
    margin: auto !important;
    display: flex !important;
    justify-content: center !important;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
    align-items: center;
}

.submit-btn:hover {
    background-color: #d1401f;
    transform: translateY(-2px);
}



.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.login-link a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Login Form */
.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Verification Code Section (hidden by default) */
.verification-section {
    display: none;
}

.verification-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.code-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 1em;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
    outline: none;
}

/* Footer */
footer {
    /* background: linear-gradient(181deg, rgb(22 22 28) 0%, #38393b 100%); */
    /* background-color: #212229; */
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .auth-buttons {
        margin-top: 15px;
    }

    .auth-buttons .btn {
        margin-left: 0;
        margin-right: 10px;
        margin-bottom: 10px;
    }
}