/*-----------------------------------------
 [RESPONSIVE (MOBILE) STYLE SHEET]
 * Project: KKU Website
 * Last Changes: Updated structure and organization
 -----------------------------------------------*/

/*-------------------------------------------------------*/
/* Common Mobile Styles - Applied to all mobile devices
/*-------------------------------------------------------*/
@media screen and (max-width:1300px) {
    /* Larger screen adjustments */
}

@media screen and (max-width:1200px) {
    .ed-rsear-in {
        width: 100%;
    }
}

@media screen and (max-width:992px) {
    /* Tablet and smaller screens */
    .ad-log-in {
        width: 80%;
        padding: 25px;
    }

    .ed-rsear-in ul li {
        width: 100%;
    }

    .web-search-form div input {
        margin-bottom: 0px;
    }

    .web-search-form div input i {
        display: block;
    }

    .wed-search-1 {
        padding: 115px 0px 50px 0px;
    }

    .h-quote:before {
        width: 100%;
    }

    /* Layout adjustments */
    .admiss-form {
        padding: 0px 30px;
        margin-top: 50px;
    }

    .admiss-form form label {
        color: #fff;
    }

    .help-arrow {
        display: none;
    }

    /* Content and form adjustments */
    .semi-form {
        margin-top: 40px;
    }

    .semi-left {
        width: 100%;
        padding: 0px;
    }

    .semi-right {
        width: 100%;
    }

    .pg-eve-reg {
        display: none;
    }

    .ho-ev-link {
        width: 75%;
    }

    /* Search form adjustments */
    .search-form {
        width: 100%;
    }

    .sf-list {
        width: 57.5%;
    }

    .sf-submit {
        width: 40%;
    }

    .sf-type {
        width: 60%;
    }

    /* Header/navigation adjustments */
    .top-logo, .ed-top {
        display: none;
    }

    .ed-mob-menu {
        display: block;
        min-height: 90px;
    }

    .search-top {
        margin-top: 55px;
        border: 0px;
    }

    /* Carousel adjustments */
    .carousel {
        margin-top: 0px;
    }

    .home-top-cour-desc h3 {
        margin-top: 20px;
    }

    .ho-event-mob-bot-sp {
        margin-bottom: 50px;
    }

    /* Other elements */
    .bb-link {
        margin-top: 15px;
    }

    .bb-img {
        margin-bottom: 15px;
    }

    /* Footer adjustments */
    .wed-foot-link div {
        position: relative;
        overflow: hidden;
        border-right: 0px groove #6a83a0;
    }

    .wed-foot-link {
        padding: 0px;
        border: 0px;
    }

    .wed-foot-link h4 {
        border-top: 1px groove #6a83a0;
        padding-top: 35px;
        margin-top: 35px;
    }

    .wed-foot-link .foot-tc-mar-t-o h4 {
        margin-top: 0px;
    }

    .wed-hom-footer h4 {
        margin-top: 35px;
    }

    .wed-foot-link-1 {
        padding-top: 0px;
    }

    /* Modal adjustments */
    .log-in-pop-left {
        width: 100%;
        padding: 7%;
    }

    .log-in-pop-right {
        width: 100%;
        padding: 7%;
    }

    .log-in-pop {
        width: 75%;
    }

    .modal-open .modal {
        width: 100%;
    }

    /* Slider text and caption adjustments */
    .carousel-caption {
        right: 20%;
        left: 20%;
        top: 10%;
        padding-bottom: 30px;
    }

    .slider-con h2, .slider-con h2 span {
        font-size: 32px;
    }

    .slider-con p {
        font-size: 16px;
    }

    /* Other page element adjustments */
    .ed-advan ul li {
        width: 100%;
        background: #f5f5f5;
        border: 5px solid #fff !important;
        border-radius: 5px;
    }

    .ed-advan ul li:nth-child(1),
    .ed-advan ul li:nth-child(2),
    .ed-advan ul li:nth-child(3),
    .ed-advan ul li:nth-child(4),
    .ed-advan ul li:nth-child(5),
    .ed-advan ul li:nth-child(6) {
        border: 0px;
    }

    /* Top padding adjustments */
    .pad-top-173 {
        padding-top: 120px;
    }

    .head-2 {
        margin-top: 0px;
    }

    .head-2-inn {
        padding-top: 120px;
    }

    /* Profile and user sections */
    .pro-user {
        margin-top: 0px;
    }

    .pro-menu ul {
        margin-bottom: 0px;
        margin-left: 0px;
        padding: 20px 0px;
    }

    .pro-menu ul li {
        width: 50%;
        display: block;
        float: left;
        box-sizing: border-box;
    }

    .pro-menu ul li a {
        padding: 0px 20px;
        line-height: 53px;
        color: #fff;
        font-weight: 500;
        border: 1px solid #3a5d84;
        width: 98%;
        display: block;
        margin: 5px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Other section adjustments */
    .sdb-cl-day {
        width: 100%;
        padding-bottom: 25px;
    }

    .udb {
        padding: 0px;
        margin-top: 35px;
    }

    .sdb-cl-class {
        width: 100%;
    }

    .cor-p6 {
        margin-top: 0px;
        position: relative;
        overflow: hidden;
    }

    .cor-side-com {
        position: relative;
        overflow: hidden;
        margin-bottom: 0px;
        width: 100%;
        margin-top: 40px;
    }

    .cor-p5 ul li a img {
        margin: 0 auto;
    }

    .cor-mid-img {
        margin-top: 50px;
    }

    /* Contact and layout adjustments */
    .overlay-contact {
        width: 100%;
        padding: 35px 0px;
        margin-bottom: 100px;
        margin-top: 50px;
    }

    .contact-map iframe {
        height: 250px;
    }

    .new-con1 {
        height: 150px;
    }

    .ed-ban-tit {
        width: 100%;
        padding: 25px;
    }

    .ed-ref-form {
        width: 100%;
        padding-top: 25px;
        padding-left: 0px;
    }

    .head-2-inn-padd-top {
        padding-top: 0px;
    }
}

/*-------------------------------------------------------*/
/* Medium to small screens
/*-------------------------------------------------------*/
@media screen and (max-width:860px) {
    .slider-con p {
        margin-bottom: 15px;
    }
}

/*-------------------------------------------------------*/
/* Small screens and mobile devices
/*-------------------------------------------------------*/
@media screen and (max-width:767px) {
    /* General mobile adjustments */
    .mob-hide {
        display: none;
    }

    .wed-logo a img {
        width: 200px;
        margin-top: 5px;
    }

    .wed-search-1 {
        width: 90%;
    }

    .wed-hom-ser ul li a {
        width: 75px;
        height: 75px;
        display: block;
        padding: 10px 2px 10px 2px;
    }

    .web-search-form label {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    /* Mobile menu adjustments */
    .wed-menu {
        float: right;
        padding-top: 14px;
        position: fixed;
        right: 0px;
        top: 0px;
    }

    .desk-hide {
        display: block;
        position: fixed;
        top: 9px;
        font-size: 17px;
        border: 1px solid #fff;
        padding: 3px 6px 0px 6px;
        border-radius: 2px;
        background: #fff;
        color: #803e88;
        right: 22px;
        cursor: pointer;
    }

    /* Mobile dropdown menu */
    .man-drop {
        position: fixed;
        left: 0px;
        margin-left: 0px;
        width: 100%;
        top: 29px;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .man-drop ul li {
        width: 98%;
    }

    .man-drop:before {
        left: 94%;
    }

    .mob-cfw {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Event and time display */
    .s17-eve-time-tim {
        display: none;
    }

    .s17-eve-time-msg {
        width: 100%;
        padding-right: 20px;
    }

    /* Carousel caption adjustments */
    .carousel-caption {
        right: 10%;
        left: 10%;
        top: 5%;
        padding-bottom: 30px;
    }

    .slider-con h2, .slider-con h2 span {
        font-size: 32px;
    }

    .slider-con p {
        font-size: 16px;
        margin-top: 25px;
    }

    .slider-con a {
        display: none;
    }

    /* Content display adjustments */
    .cor-p5 ul li a span {
        display: none;
    }

    .sdb-cours ul li {
        width: 100%;
        padding-right: 0px;
    }

    .sdb-cours ul li:nth-child(3) {
        margin-bottom: 15px;
    }

    .sdb-cl-class-tim {
        width: 100%;
        border-right: 0px solid #dcdcdc;
        border-bottom: 1px solid #dcdcdc;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .sdb-cl-class-name {
        width: 100%;
    }

    .new-con1 {
        height: auto;
    }

    .new-con h4 {
        margin-top: 35px;
    }

    /* Banner and form section adjustments */
    .ed-ban-tit-31 {
        width: 100%;
        float: left;
        box-sizing: border-box;
    }

    .ed-ban-tit-32 {
        width: 100%;
    }

    .ed-ref-form-inn form ul li {
        width: 100%;
    }

    .pg-blog {
        width: 90%;
    }

    .ed-pho-gal ul li {
        float: left;
        width: 50%;
    }

    /* Search box adjustments */
    .search-section {
        position: relative;
        z-index: 1; /* Lower z-index than navigation */
        margin-top: 20px;
    }

    .simple-search-box {
        width: 100%;
    }

    .simple-search-results {
        width: 100%;
        max-height: 250px;
        overflow-y: auto;
    }

    /* Carousel indicator adjustments for mobile */
    .carousel-indicators {
        position: absolute;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 8px 0 !important;
        text-align: center !important;
        background: rgba(0,0,0,0.4) !important;
        z-index: 15 !important;
        display: flex !important;
        justify-content: center !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .carousel-indicators li {
        display: inline-block !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 4px !important;
        border-radius: 4px !important;
        border: 2px solid #fff !important;
        background-size: cover !important;
        background-position: center !important;
        opacity: 0.7 !important;
        transition: all 0.3s ease !important;
        flex: 0 0 auto !important;
    }

    .carousel-indicators li.active {
        border-color: #C9151B !important;
        opacity: 1 !important;
        transform: scale(1.1) !important;
    }

    /* Hide thumbnails and popups on mobile */
    .thumb-popup {
        display: none !important;
    }

    .slider-thumbnails {
        display: none !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 8px 0 !important;
        background: rgba(0,0,0,0.5) !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 10 !important;
        justify-content: center !important;
        visibility: hidden !important;
    }
    
    .slider-thumb {
        display: none !important;
        visibility: hidden !important;
    }

    /* News cards styling for mobile */
    .news-card {
        margin-bottom: 15px;
        border-radius: 6px;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .news-card .row {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
    }
    
    .news-card .col-md-4 {
        padding: 0;
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    .news-card .col-md-8 {
        padding: 0;
        flex: 0 0 70%;
        max-width: 70%;
    }

    .news-title {
        font-size: 14px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin-bottom: 5px;
        font-weight: 600;
        color: #2c3e50;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-image {
        min-height: 85px;
        height: 100%;
        border-radius: 6px 0 0 6px;
        position: relative;
    }
    
    .news-content {
        padding: 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .news-meta {
        margin-top: 5px;
        padding: 4px 8px;
        border-radius: 15px;
        background: #f8f9fa;
        width: fit-content;
        display: flex;
        align-items: center;
    }

    .meta-item {
        font-size: 11px;
        gap: 4px;
        display: flex;
        align-items: center;
        color: #7f8c8d;
    }
    
    .meta-item i {
        font-size: 11px;
        color: #C9151B;
    }
    
    .news-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .news-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    
    .carousel {
        padding-bottom: 40px !important;
        margin-bottom: 20px !important;
    }
}

/*-------------------------------------------------------*/
/* Extra small screens - Mobile portrait
/*-------------------------------------------------------*/
@media screen and (max-width:550px) {
    /* Slider text adjustments */
    .carousel-caption {
        right: 10%;
        left: 10%;
        top: 5%;
        padding-bottom: 30px;
    }

    .slider-con h2, .slider-con h2 span {
        font-size: 24px;
        line-height: 24px;
    }

    .slider-con p {
        margin-top: 0px;
        font-size: 12px;
        line-height: 16px;
    }

    .slider-con a {
        display: none;
    }

    /* Menu and content adjustments */
    .pro-menu ul li {
        width: 100%;
    }

    /* Research item size adjustments */
    .ed-rsear-dec a span, .ed-rsear-dec a {
        font-size: 10px;
    }

    .ed-rsear-dec h4 a {
        font-size: 12px;
    }

    .ed-rsear-dec {
        padding: 8px 15px;
    }

    .ed-rsear-img img {
        width: 70px;
    }

    /* News cards adjustments for smaller screens */
    .news-card .col-md-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .news-card .col-md-8 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .news-title {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .news-meta {
        padding: 3px 6px;
    }
    
    .meta-item, .meta-item i {
        font-size: 10px;
    }
}

/*-------------------------------------------------------*/
/* Very small screens - Mobile small portrait
/*-------------------------------------------------------*/
@media (max-width: 768px) {
    .carousel {
        padding-bottom: 0px;
        margin: 0px !important;
    }
}

@media screen and (max-width:480px) {
    /* Carousel and container adjustments */
    .item {
        padding: 0;
        margin: 0;
    }

    .container.position-relative {
        padding: 0;
        margin: 0;
    }
    
    /* Background adjustments */
    .OrtaBannerArkaPlan {
        background: #042e6f;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        margin-top: 0px;
    }
    
    /* Service section adjustments */
    .wed-hom-ser {
        display: block;
        margin-top: 0px !important;
    }

    .wed-hom-ser ul li {
        width: 44%;
    }

    .wed-hom-ser ul li a {
        width: 100% !important;
        height: 140px;
        display: block;
        line-height: 17px;
    }

    .man-drop ul li {
        width: 98%;
    }

    /* Content element adjustments */
    .quote-title h2 {
        font-size: 42px;
    }

    .ho-ev-link {
        width: 100%;
        padding-top: 20px;
    }

    .sf-submit input {
        font-size: 12px;
        padding: 15px 4px;
    }

    /* Slider caption and text adjustments */
    .carousel-caption {
        right: 10%;
        left: 10%;
        top: 0%;
        padding-bottom: 30px;
    }

    .slider-con h2 {
        font-size: 24px;
        margin-top: 10px;
    }

    .slider-con h2 span {
        font-size: 24px;
    }

    .slider-con p {
        margin-top: 10px;
        font-size: 12px;
        line-height: 24px;
    }

    .slider-con a {
        display: none;
    }

    /* News container adjustments */
    .haberListItemContainer, .haberListContainer {
        margin-left: 0px;
        margin-right: 0px;
        padding-left: 2px;
        padding-right: 2px;
    }

    /* News card adjustments for very small screens */
    .news-card {
        border: 1px solid #eee;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 10px;
    }
    
    .news-card .col-md-4 {
        flex: 0 0 100px;
        max-width: 100px;
    }
    
    .news-card .col-md-8 {
        flex: 0 0 calc(100% - 100px);
        max-width: calc(100% - 100px);
    }
    
    .news-image {
        min-height: 75px;
    }
    
    .news-content {
        padding: 8px;
    }
    
    /* Container and spacing adjustments */
    section .container {
        padding-left: 5px;
        padding-right: 5px;
    }
        
    .carousel .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .panel {
        margin-bottom: 10px;
    }
    
    .panel-baslik {
        padding: 8px 0;
        margin-bottom: 5px;
    }
    
    .item .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Carousel indicator adjustments */
    .carousel-indicators {
        bottom: 0 !important;
        padding: 8px 0 !important;
        gap: 5px !important;
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        background: rgba(0,0,0,0.03) !important;
        border-radius: 0 0 8px 8px !important;
    }

    .carousel-indicators li {
        width: 12px !important;
        height: 12px !important;
        margin: 0 3px !important;
    }
    
    /* Hide thumbnails */
    .thumb-popup {
        display: none !important;
    }
    
    /* Spacing adjustments */
    .carousel {
        padding-bottom: 40px !important;
    }
}

/*-------------------------------------------------------*/
/* Large screens
/*-------------------------------------------------------*/
@media screen and (min-width: 1366px) {
    .semi-inn {
        width: 1000px;
    }
}

/*-------------------------------------------------------*/
/* Content page styles for mobile
/*-------------------------------------------------------*/
@media (max-width: 768px) {
    /* Typography adjustments */
    .Sayfa-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .Sayfa-body h1 {
        font-size: 2rem;
        margin: 2rem 0 1.25rem;
    }

    .Sayfa-body h2 {
        font-size: 1.75rem;
        margin: 1.75rem 0 1rem;
    }

    .Sayfa-body h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.875rem;
    }

    .Sayfa-body p {
        margin: 1.25rem 0;
        line-height: 1.7;
    }

    /* Print button adjustment */
    .print-button {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .print-button i {
        font-size: 1.2rem;
    }

    /* Page layout adjustments */
    .Sayfa-detay {
        padding: 40px 0;
    }

    .Sayfa-content-card {
        padding: 25px;
        border-radius: 12px;
    }

    .Sayfa-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .btn-print {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
    }

    /* Table adjustments */
    .Sayfa-body table {
        border-radius: 12px;
        margin: 1.5rem 0;
    }

    .Sayfa-body table th,
    .Sayfa-body table td {
        padding: 1rem 1.25rem;
    }

    /* Image adjustments */
    .Sayfa-body img {
        margin: 1.5rem 0;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    /* Typography adjustments for small screens */
    .Sayfa-body {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .Sayfa-body h1 {
        font-size: 1.75rem;
    }

    .Sayfa-body h2 {
        font-size: 1.5rem;
    }

    .Sayfa-body h3 {
        font-size: 1.25rem;
    }

    /* Button and UI element adjustments */
    .print-button {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }

    .Sayfa-content-card {
        padding: 20px;
        border-radius: 10px;
    }

    .btn-print {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Table cell adjustments */
    .Sayfa-body table th,
    .Sayfa-body table td {
        padding: 0.875rem 1rem;
    }
}

/*-------------------------------------------------------*/
/* Table styles for mobile
/*-------------------------------------------------------*/
@media screen and (max-width:767px) {
    /* Responsive table styles */
    .Sayfa-body table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .Sayfa-body table th,
    .Sayfa-body table td {
        min-width: 120px;
        word-break: break-word;
    }

    /* Special table stack for better mobile display */
    .table-responsive-stack {
        display: block;
    }

    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .table-responsive-stack tbody td {
        display: block;
        text-align: left;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
    }

    .table-responsive-stack tbody td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        min-width: 40%;
        margin-right: 10px;
    }

    .table-responsive-stack tbody td:last-child {
        border-bottom: none;
    }
}

/*-------------------------------------------------------*/
/* Card and general content styles for mobile
/*-------------------------------------------------------*/
@media screen and (max-width:576px) {
    .carousel-control {
        background: none;
        top: 10% !important;
    }

    .card .card-body {
        padding: 15px;
    }

    .row-cards .col-12 {
        margin-bottom: 15px;
    }

    /* Content container adjustments */
    .content-container {
        padding: 15px;
    }

    /* Make images responsive */
    .content-container img {
        max-width: 100%;
        height: auto !important;
    }
}

/* Carousel control buttons */
.carousel-control {
    background: none;
    /* top: 10% !important; */
}
