/*
Theme Name: KYMU Educational University
Theme URI: https://kymu.edu.ua
Description: Custom WordPress theme migrated from Bitrix24 for Kyiv Medical University
Author: Migration Team
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kymu
Tags: education, university, custom, bitrix-migration

This theme is a WordPress conversion of the original Bitrix24 site.
*/

/* ===================================
   Base Styles - Will be populated from Bitrix CSS
   =================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

img {
    max-width: 100%;
    height: auto;
}

/* Site wrapper */
#page,
.site {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent horizontal scroll from rows */
.row,
[class*="row"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* Gallery page specific fixes */
.post-type-archive-gallery > div,
.archive.post-type-archive-gallery .container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Gallery grid fixes */
div[style*="grid-template-columns"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all containers stay within viewport */
.container,
[class*="container"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive gallery grid */
@media (max-width: 768px) {
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Additional styles will be imported from Bitrix CSS files */

/* ============================================
   KYMU Custom Styles (From Kadence Child Theme)
   ============================================ */

:root {
    --blue: #007bff;
    --blue1: #001429;
    --blue2: #0092cf;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #868e96;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #868e96;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --global-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    font-size: .875rem;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

h3 {
    font-size: 1.125rem;
}

/* PDF Link Styling */
.pdf-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.pdf-link img {
    width: 24px;
    height: 24px;
}

.pdf-link a {
    font-weight: 600;
    color: #0b213f;
    text-decoration: none;
    display: flex;
    gap: 1rem;
}

.pdf-link a:hover {
    text-decoration: underline;
}

/* Kerivnytstvo (Leadership) Styles */
.kerivnytstvo-info p {
    margin-bottom: 8px;
}

.kerivnytstvo-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Sidebar Styles */
.kymu-sidebar .kymu-widget {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.kymu-sidebar .kymu-widget h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--blue1);
}

.kymu-sidebar .kymu-widget ul {
    margin: 0;
    padding: 0;
}

/* Breadcrumbs */
.breadcrumbs_bg {
    background: #f8f9fa;
    padding: 2rem 0;
    background-color: #edf0f2;
}

.breadcrumbs_bg h1 {
    font-size: 1.875rem;
    font-weight: 300;
    display: inline-block;
    margin-bottom: .25rem;
}

.breadcrumbs_bg a {
    color: #82898f;
    text-decoration: none;
}

/* Links */
.blue2 a {
    color: var(--blue2);
    text-decoration: none;
}

.card h5 a:hover {
    text-decoration: underline;
}

/* Page Content Layout */
.page-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-content .col {
    flex: 1 1 30%;
    min-width: 280px;
}

.page-content h2,
.page-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.page-content ul li {
    margin-bottom: 0.5rem;
    color: #333;
}

.page-content strong {
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    max-width: 350px;
    width: 100%;
    margin-left: auto;
}

.sidebar .widget {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.sidebar .widget h3 {
    font-size: 1.25rem;
    border-bottom: 2px solid #03a9f4;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
