/* ========== SITE.CSS - TÜM STİLLER BİRLEŞİK ========== */

/* ========== FONT & GLOBAL ========== */
@import url(https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap);

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
}

/* ========== MODAL VIDEO ========== */
@keyframes modal-video {
    0% { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-video-inner {
    0% { transform: translateY(100px); }
    to { transform: translate(0); }
}

.modal-video {
    animation-duration: .3s;
    animation-name: modal-video;
    animation-timing-function: ease-out;
    background-color: #00000080;
    cursor: pointer;
    height: 100%;
    left: 0;
    opacity: 1;
    position: fixed;
    top: 0;
    transition: opacity .3s ease-out;
    width: 100%;
    z-index: 1000000;
}

.modal-video-effect-exit {
    opacity: 0;
}

.modal-video-effect-exit .modal-video-movie-wrap {
    transform: translateY(100px);
}

.modal-video-body {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 960px;
    padding: 0 10px;
}

.modal-video-body, .modal-video-inner {
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.modal-video-inner {
    align-items: center;
}

@media (orientation: landscape) {
    .modal-video-inner {
        box-sizing: border-box;
        padding: 10px 60px;
    }
}

.modal-video-movie-wrap {
    animation-duration: .3s;
    animation-name: modal-video-inner;
    animation-timing-function: ease-out;
    background-color: #333;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    transform: translate(0);
    transition: transform .3s ease-out;
    width: 100%;
}

.modal-video-movie-wrap iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.modal-video-close-btn {
    background: transparent;
    border: none;
    display: inline-block;
    height: 35px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: -45px;
    width: 35px;
    z-index: 2;
}

@media (orientation: landscape) {
    .modal-video-close-btn {
        right: -45px;
        top: 0;
    }
}

.modal-video-close-btn:before {
    transform: rotate(45deg);
}

.modal-video-close-btn:after {
    transform: rotate(-45deg);
}

.modal-video-close-btn:after, .modal-video-close-btn:before {
    background: #fff;
    border-radius: 5px;
    content: "";
    height: 2px;
    left: 0;
    margin-top: -6px;
    position: absolute;
    top: 50%;
    width: 100%;
}

/* ========== NAVBAR & HEADER ========== */
.navbar-brand img {
    max-height: 50px;
}

.top-header {
    background-color: #fff;
    padding: 2px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* ========== ANA SAYFA - TRANSPARAN NAVBAR ========== */
.home-page #topnav {
    background: transparent;
    position: relative;
    z-index: 999;
}

.home-page #topnav > div:first-child {
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 0;
}

.home-page #topnav > .container {
    position: relative;
    z-index: 1001;
    height: 0;
    overflow: visible;
}

.home-page .navbar-world-overlay {
    display: block;
}

/* ========== İÇ SAYFALAR - ESKİ KOYU NAVBAR ========== */
.inner-page #topnav {
    background: #001f3f;
    position: relative;
    z-index: 999;
}

.inner-page #topnav > div:first-child {
    background: transparent;
    padding: 8px 0;
}

.inner-page #topnav > .container {
    position: relative;
    z-index: 1001;
}

.inner-page .navbar-world-overlay {
    display: none;
}

/* İç sayfalarda navigation menu arka planı kaldır */
.inner-page .navigation-menu {
    background: transparent;
    padding: 0;
}

.navigation-menu {
    margin: 0;
    padding: 0;
}

/* ANA SAYFA - Navigation menu transparan siyah arka plan */
.home-page .navigation-menu {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px 15px;
}

/* İÇ SAYFALAR - Navigation menu arka plan yok */
.inner-page .navigation-menu {
    background: transparent;
    padding: 10px 15px;
}

/* Navbar menü linkleri - BEYAZ ve BOLD */
.navigation-menu > li > a,
.navigation-menu li a,
.navigation-menu .has-submenu > a,
.navigation-menu .submenu li a,
ul.navigation-menu li a,
#navigation .navigation-menu li a,
#navigation ul li a,
#navigation a {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navigation-menu > li > a:hover,
.navigation-menu li a:hover,
.navigation-menu .submenu li a:hover,
#navigation .navigation-menu li a:hover,
#navigation a:hover {
    color: #80d0c7 !important;
}

/* Submenu arka plan */
.navigation-menu .submenu {
    background: rgba(0, 31, 63, 0.95);
}

.navigation-menu .submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* MOBİL NAVBAR */
@media (max-width: 991px) {
    .navigation-menu,
    #navigation {
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 15px !important;
        border-radius: 5px;
    }
    
    .navigation-menu li a,
    .navigation-menu > li > a,
    #navigation ul li a,
    #navigation .navigation-menu li a,
    #navigation a {
        color: #ffffff !important;
        font-weight: 700 !important;
        padding: 8px 0;
        display: block;
    }
    
    .navigation-menu .submenu,
    .navigation-menu ul.submenu {
        background: rgba(0, 31, 63, 0.95) !important;
    }
    
    .navigation-menu .submenu li a {
        color: #ffffff !important;
        padding-left: 15px;
    }
}

/* ========== WORLD BANNER ========== */
.navbar-world-overlay {
    background-image: url('/img/world.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 320px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

/* Tablet */
@media (max-width: 991px) {
    .navbar-world-overlay {
        height: 250px;
        margin-top: -40px;
    }
}

/* Mobil */
@media (max-width: 767px) {
    .navbar-world-overlay {
        height: 180px;
        margin-top: -30px;
    }
    
    #topnav > div:first-child {
        padding: 5px 0;
    }
}

/* ========== CAROUSEL ========== */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
}

#mainCarousel {
    margin-top: 0;
    position: relative;
    z-index: 998;
}

/* ========== ANASAYFA LAYOUT ========== */
#anasayfa .col-md-4 {
    display: flex;
    flex-direction: column;
    height: auto;
}

#anasayfa .col-md-4 .row {
    flex-grow: 1;
    display: flex;
}

#anasayfa .col-md-4 .row .col-md-6 {
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 20px;
}

#anasayfa .carousel-item {
    background-size: cover;
    background-position: center;
}

/* ========== BOX CARDS ========== */
.box {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-width: 100%;
    min-height: 100%;
}

.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.box-title {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.box-title:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #000;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

/* ========== SECTIONS ========== */
.calendar-section {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-box:hover {
    transform: scale(1.05);
}

.login-section {
    background: linear-gradient(135deg, #0093e9, #80d0c7);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========== FOOTER ========== */
.footer {
    background-color: #001f3f;
    color: white;
    padding: 20px 0;
}

#footer {
    background-color: #001f3f;
    color: white;
    padding: 40px 0;
    font-size: 12px;
}

#footer aside {
    margin-bottom: 20px;
}

#footer h3 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

#footer .col-md-4 {
    margin-bottom: 30px;
}

#footer .container {
    padding: 0 15px;
}

#footer .text-white {
    color: #ffffff !important;
}

#footer .footer {
    background-color: #001f3f;
    color: white;
    padding: 20px 0;
    border-top: 1px solid #444;
}

#footer .footer p {
    margin: 0;
    font-size: 12px;
}

#footer .footer a {
    text-decoration: none;
    color: #ffffff;
}

#footer .footer a:hover {
    color: #dcdcdc;
}

.footer-image {
    background-image: url('../img/world.png');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 32px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    margin-top: -30px;
}

.footer-image .subtitle {
    font-size: 18px;
    font-weight: normal;
    margin-top: 8px;
}

.footer-menu {
    color: white;
    text-align: left;
}

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

.footer-menu ul li {
    padding: 0;
}

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

.footer-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 5px 0;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}

/* ========== EVENT CARDS ========== */
.event-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: bold;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ========== CALENDAR ========== */
.calendar-controls .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table td {
    height: 60px;
    vertical-align: middle;
}

.table td.has-event {
    background-color: rgba(52, 152, 219, 0.1);
    cursor: pointer;
    font-weight: bold;
}

.table td.today {
    background-color: rgba(52, 152, 219, 0.2);
    font-weight: bold;
}

.table td.other-month {
    color: #ccc;
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 10px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #c3cfe2 0%, #fff 100%);
    border-bottom: 1px solid #e7e9ec;
}

.page-header h1 {
    font-weight: 500;
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== BULLETINS ========== */
.bulletins-container {
    margin-bottom: 30px;
}

.bulletin-item {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.bulletin-item .thumbnail {
    border-radius: 8px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bulletin-item .thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.bulletin-item .thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.bulletin-item .caption {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bulletin-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bulletin-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.bulletin-item p {
    color: #7f8c8d;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

.bulletin-item .btn-download {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    transition: background-color 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.bulletin-item .btn-download:hover {
    background-color: #2980b9;
}

.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > .col {
    display: flex;
}

/* ========== OFFCANVAS ========== */
.offcanvas {
    visibility: hidden;
    transition: visibility 0.3s, opacity 0.3s ease;
    opacity: 0;
}

.offcanvas.show {
    visibility: visible;
    opacity: 1;
}

/* ========== SEARCH BOX ========== */
#searchBox {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

#searchBox.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== HAMBURGER MENU ========== */
.navbar-toggle {
    display: inline-block;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggle .lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
}

.navbar-toggle .lines span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover .lines span {
    background-color: #80d0c7;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
    font-style: italic;
    color: #333;
    border-left: 5px solid #007bff;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 8px;
    position: relative;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

blockquote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

blockquote p:first-child {
    text-align: justify;
}

blockquote p:last-child {
    text-align: right;
    font-weight: bold;
    color: #555;
    margin-top: 10px;
}

blockquote::before {
    content: """;
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    position: absolute;
    left: 10px;
    top: -10px;
}

blockquote::after {
    content: """;
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    position: absolute;
    right: 10px;
    bottom: -10px;
}

/* ========== MISC ========== */
.custom-header-links {
    float: left;
    padding: 10px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1em;
}

.form-group .control-label {
    margin-bottom: 3px;
}

.form-group .form-control {
    border-color: #ddd;
}

.form-group.required .control-label {
    font-weight: bold;
}

.form-group.has-error .help-block,
.form-group.has-error .control-label {
    color: #d00;
}

.form-group .help-block {
    font-size: 0.85em;
}

/* ========================================================
   SOSYAL MEDYA İKONLARI - EN SONDA, EN GÜÇLÜ
   ======================================================== */

/* Sosyal medya container */
.social-media-icons {
    padding-top: 1px;
    padding-bottom: 1px;
}

/* TÜM SOSYAL MEDYA LİNKLERİ - BEYAZ VE BOLD */
.social-media-icons {
    
    padding-top: 1px;
    padding-bottom: 1px;
}

.social-icon {
    display: inline-block;
    margin: 0 10px;
    font-size: 18px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

.social-icon i {
    color: inherit;
    font-size: 10px;
}

.social-icon:focus {
    outline: none;
}
