/*
 Theme Name: Nirkivska School
 Theme URI: https://nirkivska-school.edu.ua/
 Author: V. Bazalyuk
 Author URI: https://yourwebsite.com/
 Description: Custom WordPress theme for Nirkivska School.
 Version: 1.6
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: nirkivska-school
*/

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #ffed4e;
    --success: #10b981;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-bold: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 85px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section .logo,
.logo-section .school-name,
.logo-section .school-title {
    color: #ffffff !important;
    text-decoration: none !important;
}

.logo {
    padding: 10px 22px;
    background: #ffca28;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(255, 202, 40, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    margin-left: -5px;
}

.logo:hover {
    background: #ffb300;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 202, 40, 0.3);
}

@keyframes logoFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

.school-name {
    background: #3b82f6;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.school-name:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.logo-section .school-title {
    font-size: 1.45rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.school-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
}

.header {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 85px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: #ffffff;
    min-width: 260px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    list-style: none;
    padding: 12px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #3b82f6;
    transform: translateX(5px);
    border-radius: 5px;
    margin: 0 10px;
}

.nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

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

.dropdown-toggle::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    background: #ffed4e;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 30 L30 0 M30 30 L60 30 M30 30 L30 60 M30 30 L0 30" stroke="white" stroke-width="0.5" opacity="0.1" fill="none"/></svg>') repeat;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-100px) translateY(-50px);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: #ffed4e;
    text-shadow: 2px 2px 10px rgba(255, 237, 78, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 10px rgba(255, 237, 78, 0.3);
    }

    100% {
        text-shadow: 2px 2px 20px rgba(255, 237, 78, 0.6);
    }
}

.hero-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-features li:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-features li:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-features li:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #34d399;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary {
    background-color: var(--secondary);
    color: #000000;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 0px #d9c52e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #d9c52e;
    background-color: #fce31c;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0px 0px #d9c52e;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.student-photo {
    width: 100%;
    height: 750px;
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    animation: morphShape 15s ease-in-out infinite;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
    }

    25% {
        border-radius: 55% 45% 50% 50% / 45% 60% 40% 55%;
    }

    50% {
        border-radius: 50% 50% 45% 55% / 55% 50% 50% 45%;
    }

    75% {
        border-radius: 45% 55% 55% 45% / 50% 45% 55% 50%;
    }
}

.student-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    position: relative;
    z-index: 2;
}

.student-photo::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

.student-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, rgba(59, 130, 246, 0.1));
    z-index: 3;
    pointer-events: none;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }
}

.floating-element {
    position: absolute;
    opacity: 0.7;
    animation: floatAround 10s ease-in-out infinite;
    font-size: 2rem;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 8%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 60%;
    right: 20%;
    animation-delay: 6s;
}

.floating-element:nth-child(5) {
    top: 40%;
    left: 15%;
    animation-delay: 1s;
}

.floating-element:nth-child(6) {
    bottom: 30%;
    right: 8%;
    animation-delay: 3s;
}

.floating-element:nth-child(7) {
    top: 70%;
    left: 25%;
    animation-delay: 5s;
}

.floating-element:nth-child(8) {
    top: 10%;
    right: 30%;
    animation-delay: 7s;
}

.floating-element:nth-child(9) {
    bottom: 15%;
    right: 35%;
    animation-delay: 2.5s;
}

.floating-element:nth-child(10) {
    top: 50%;
    left: 30%;
    animation-delay: 4.5s;
}

.floating-element:nth-child(11) {
    top: 8%;
    left: 40%;
    animation-delay: 1.5s;
}

.floating-element:nth-child(12) {
    bottom: 25%;
    left: 12%;
    animation-delay: 3.5s;
}

.floating-element:nth-child(13) {
    top: 35%;
    right: 15%;
    animation-delay: 5.5s;
}

.floating-element:nth-child(14) {
    bottom: 40%;
    left: 5%;
    animation-delay: 2s;
}

.floating-element:nth-child(15) {
    top: 55%;
    right: 25%;
    animation-delay: 4s;
}

.floating-element:nth-child(16) {
    top: 20%;
    left: 35%;
    animation-delay: 6.5s;
}

.floating-element:nth-child(17) {
    bottom: 10%;
    right: 40%;
    animation-delay: 1.8s;
}

.floating-element:nth-child(18) {
    top: 45%;
    left: 8%;
    animation-delay: 3.2s;
}

.floating-element:nth-child(19) {
    bottom: 35%;
    right: 12%;
    animation-delay: 5.2s;
}

.floating-element:nth-child(20) {
    top: 65%;
    right: 5%;
    animation-delay: 2.8s;
}

.floating-element:nth-child(21) {
    top: 30%;
    left: 45%;
    animation-delay: 4.2s;
}

.floating-element:nth-child(22) {
    bottom: 50%;
    left: 18%;
    animation-delay: 6.2s;
}

.floating-element:nth-child(23) {
    top: 75%;
    right: 28%;
    animation-delay: 1.2s;
}

.floating-element:nth-child(24) {
    top: 12%;
    right: 45%;
    animation-delay: 3.8s;
}

.floating-element:nth-child(25) {
    bottom: 45%;
    left: 38%;
    animation-delay: 5.8s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-40px) rotate(-5deg);
    }

    75% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:nth-child(1) .card-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.feature-card:nth-child(2) .card-icon {
    background-color: #dcfce7;
    color: #16a34a;
}

.feature-card:nth-child(3) .card-icon {
    background-color: #fce7f3;
    color: #be185d;
}

.feature-card:nth-child(4) .card-icon {
    background-color: #e0f2fe;
    color: #0369a1;
}

.feature-card:nth-child(5) .card-icon {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.feature-card:nth-child(6) .card-icon {
    background-color: #fef2f2;
    color: #dc2626;
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.card-description {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    background-color: #0f172a;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: floatingBubbles 20s linear infinite;
}

@keyframes floatingBubbles {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--secondary);
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

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

.program-header {
    height: 200px;
    background-color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.program-content {
    padding: 30px;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.program-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 40px;
}

.program-features {
    list-style: none;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #374151;
}

.program-features li::before {
    content: '✓';
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* News Section */
.news-section {
    background: var(--white);
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 220px;
    background-color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-emoji {
    font-size: 4rem;
    animation: bounceEmoji 3s ease-in-out infinite;
}

@keyframes bounceEmoji {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.news-content {
    padding: 30px;
}

.news-date {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
    line-height: 1.4;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background-color: var(--success);
    color: white;
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    animation: contactIconFloat 3s ease-in-out infinite alternate;
}

@keyframes contactIconFloat {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-5px) scale(1.05);
    }
}

.contact-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.contact-card-info {
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.read-all-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.read-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background: #f9f9f9;
    color: #333333;
    padding: 40px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    border-top: 2px solid #00c4cc;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 15px;
}

.about {
    text-align: center;
}

.school-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #00c4cc;
}

.footer-text {
    font-size: 0.9rem;
    margin: 0 0 10px;
    color: #666666;
}

.footer-copyright {
    font-size: 0.8rem;
    margin: 10px 0 0;
    color: #999999;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #00c4cc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #333333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section a:hover {
    color: #00c4cc;
    transform: translateX(5px);
}

.footer-section i {
    font-size: 1.1rem;
    color: #00c4cc;
    transition: color 0.3s ease;
}

.footer-section a:hover i {
    color: #00c4cc;
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.footer-bottom .footer-developer {
    position: absolute;
    bottom: 40px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.footer-bottom .footer-developer::before {
    content: 'Розробка:';
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #64748b;
}

.footer-bottom .dev-badge {
    background: #000000 !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

.footer-bottom .dev-badge .badge-text {
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.footer-bottom .dev-badge .dot {
    width: 8px;
    height: 8px;
    background: #ff3b30 !important;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
}

.footer-bottom .dev-badge .dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: badgePulse 2s ease-out infinite;
}

@keyframes badgePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.footer-note {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 10px 0;
    margin-top: 100px;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb:empty,
.breadcrumb-container:empty {
    display: none;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb-nav a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #1e40af;
}

.breadcrumb-separator {
    color: #9ca3af;
}

/* Page Header */
.page-header {
    background-color: var(--primary-dark);
    color: white;
    padding: 35px 0 35px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    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 100 100"><g opacity="0.1"><circle cx="20" cy="20" r="3" fill="white"/><circle cx="80" cy="30" r="2" fill="white"/><circle cx="50" cy="70" r="2.5" fill="white"/><rect x="30" y="40" width="8" height="6" rx="1" fill="white"/><rect x="60" y="50" width="6" height="8" rx="1" fill="white"/></g></svg>') repeat;
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100px);
    }
}

.page-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
    margin-top: 5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.9;
    }
}

/* News Categories */
.news-categories {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-tab.active {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.category-tab:hover:not(.active) {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

.page-no-sidebar .main-content {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

/* Featured News */
.featured-news {
    margin-bottom: 60px;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
    position: relative;
}

.featured-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 350px;
    background-color: var(--primary-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-emoji {
    font-size: 6rem;
    animation: pulse 3s ease-in-out infinite;
}

.featured-content {
    padding: 40px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
    line-height: 1.3;
}

.featured-excerpt {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 200px;
    background-color: var(--success);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card:nth-child(even) .news-image {
    background-color: #f59e0b;
}

.news-card:nth-child(3n) .news-image {
    background-color: #8b5cf6;
}

.news-emoji {
    font-size: 3rem;
    animation: bounce 4s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-2px);
    }
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.news-date {
    color: #3b82f6;
    font-weight: 600;
}

.news-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.sidebar-list a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.sidebar-list a:hover {
    color: #3b82f6;
}

.sidebar-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 5px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3b82f6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.back-to-top:hover {
    background: #1e40af;
    transform: scale(1.1);
}

/* Search */
.search-container {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Blog Content */
.blog-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Featured Post */
.featured-post {
    position: relative;
    margin-bottom: 40px;
}

.featured-image {
    height: 400px;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image::after {
    content: '📚';
    font-size: 8rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 40px;
    z-index: 3;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.author-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.author-details span {
    font-size: 0.9rem;
    color: #6b7280;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Post Content */
.post-content {
    padding: 40px;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1f2937;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #374151;
}

.post-content p {
    margin-bottom: 20px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content ul {
    margin: 20px 0 20px 20px;
    color: #4b5563;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.highlight-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Tags and Share */
.post-footer {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #3b82f6;
    color: white;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Comments Section */
.comments-section {
    background: white;
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.comments-header {
    padding: 30px 40px 0;
    background: white;
}

.comments-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.comments-count {
    color: #6b7280;
    margin-bottom: 30px;
}

/* Comment Form */
.comment-form {
    padding: 0 40px 30px;
    background: #f8fafc;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

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

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Comments List */
.comments-list {
    padding: 0 40px 40px;
}

.comment {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.comment-info h5 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.comment-action:hover {
    color: #3b82f6;
}

.comment-content {
    color: #4b5563;
    line-height: 1.6;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.widget h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    position: relative;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-thumb {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recent-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
}

.recent-info span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Categories Widget */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
}

/* Archive Widget */
.archive-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.show {
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 237, 78, 0.3);
    border-top: 3px solid #ffed4e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Read All Button */
.read-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 32px;
}

.read-all-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 32px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination-btn.current {
    background: #007bff;
    color: #ffffff;
}

.pagination .prev,
.pagination .next {
    padding: 10px 20px;
    background: #007bff;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pagination .prev.disabled,
.pagination .next.disabled {
    background: #e9ecef;
    color: #666666;
    cursor: not-allowed;
}

/* RESPONSIVE DESIGN */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }

    .logo-section {
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 5px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-features li {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .student-photo {
        height: 500px;
    }

    .features-section,
    .stats-section,
    .programs-section,
    .news-section,
    .contact-section {
        padding: 80px 0;
    }

    .features-container,
    .stats-container,
    .programs-container,
    .news-container,
    .contact-container,
    .section-header,
    .categories-container,
    .breadcrumb-container,
    .page-header-container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .features-grid,
    .programs-grid,
    .news-grid,
    .stats-grid,
    .contact-grid {
        gap: 30px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px;
    }

    .sidebar {
        position: static;
    }

    .featured-image {
        height: 300px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-news-title {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 30px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comments-header,
    .comment-form,
    .comments-list {
        padding: 0 30px;
    }

    .comment-form {
        padding-bottom: 30px;
    }

    .comments-header {
        padding-top: 30px;
    }
}

/* Mobile & Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 10px;
    }

    .logo-section {
        gap: 6px;
    }

    .logo {
        width: auto;
        height: auto;
        padding: 6px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .school-name {
        padding: 6px 10px;
        border-radius: 8px;
        background: #3b82f6;
    }

    .school-title {
        font-size: 1rem;
        margin-bottom: 0;
        line-height: normal;
        font-weight: 800;
        color: #fff;
    }

    .nav-menu {
        display: block;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #ffffff;
        padding: 85px 24px 40px;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 5px;
        z-index: 999;
        overflow-y: auto;
        font-family: 'Inter', sans-serif;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(3px);
        z-index: 990;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        padding: 14px 20px;
        text-align: left;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4px;
        text-decoration: none;
    }

    .nav-link:hover {
        background: rgba(59, 130, 246, 0.05);
        color: #3b82f6;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 12px;
        margin: 5px 0 10px;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-out;
        display: block;
        min-width: auto;
        border: none;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-menu a {
        padding: 12px 25px;
        margin: 0;
        font-size: 1rem;
        color: #4b5563;
        border-radius: 0;
    }

    .dropdown-menu a:hover {
        background: #eef2ff;
        color: #3b82f6;
        padding-left: 30px;
        margin: 0;
    }

    .dropdown .arrow {
        transition: transform 0.3s ease;
        display: inline-block;
        font-size: 0.8rem;
    }

    .dropdown.active>.nav-link .arrow {
        transform: rotate(180deg);
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #1e293b;
        padding: 5px;
        line-height: 1;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        color: #3b82f6;
        transform: scale(1.1);
    }

    .menu-toggle.active {
        background: #f3f4f6;
        color: #ef4444;
    }

    .hero {
        padding-top: 30px;
        min-height: auto;
        padding-bottom: 50px;
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.22rem;
        margin-top: 10px;
        line-height: 1.2;
    }

    .hero-buttons {
        margin-bottom: 30px;
    }

    .student-photo {
        height: 420px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 24px;
        background: transparent;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
    }

    .student-photo::before {
        display: none;
    }

    .student-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .hero-features li {
        font-size: 1rem;
        gap: 10px;
        justify-content: center;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .student-photo {
        height: 350px;
        border-radius: 15px;
    }

    .features-section,
    .stats-section,
    .programs-section,
    .news-section,
    .contact-section {
        padding: 50px 0;
    }

    .features-container,
    .stats-container,
    .programs-container,
    .news-container,
    .contact-container,
    .section-header {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .programs-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .stats-grid {
        gap: 25px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .program-header {
        height: 150px;
        font-size: 3rem;
    }

    .program-content {
        padding: 20px;
    }

    .news-image {
        height: 180px;
    }

    .news-emoji {
        font-size: 3rem;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card-icon {
        font-size: 2rem;
    }

    .read-all-btn {
        padding: 12px 25px;
        font-size: 1rem;
        display: block;
        text-align: center;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        min-width: auto;
        text-align: center;
    }

    .breadcrumb {
        margin-top: 80px;
        padding: 15px 0;
    }

    .breadcrumb-container {
        padding: 0 15px;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .news-categories {
        padding: 20px 0;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .main-content {
        padding: 40px 15px;
        gap: 30px;
    }

    .featured-news {
        margin-bottom: 40px;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-news-title {
        font-size: 1.4rem;
    }

    .news-grid {
        gap: 20px;
    }

    .news-content {
        padding: 15px;
    }

    .sidebar-section,
    .widget {
        padding: 20px;
    }

    .sidebar-title,
    .widget h3 {
        font-size: 1.2rem;
    }

    .pagination {
        margin-top: 40px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .post-meta {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .post-stats {
        margin-left: 0;
        gap: 10px;
    }

    .post-content {
        padding: 25px;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-footer {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .comments-header,
    .comment-form,
    .comments-list {
        padding: 0 20px;
    }

    .comment-form {
        padding-bottom: 20px;
    }

    .comments-header {
        padding-top: 20px;
    }

    .comment {
        padding: 20px;
    }

    .comment-header {
        flex-direction: column;
        gap: 10px;
    }

    .recent-post {
        gap: 10px;
    }

    .recent-thumb {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .recent-info h5 {
        font-size: 0.9rem;
    }

    .search-input {
        padding: 10px 12px 10px 40px;
    }

    .search-icon {
        left: 12px;
        font-size: 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0 5px;
    }

    .logo {
        width: auto;
        height: auto;
        font-size: 0.75rem;
        padding: 4px 8px;
        color: #ffffff !important;
    }

    .school-name {
        padding: 6px 10px;
    }

    .school-title {
        font-size: 1rem;
    }

    .school-subtitle {
        font-size: 0.7rem;
    }

    .menu-toggle {
        padding: 4px 6px;
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-features li {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .student-photo {
        height: 280px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .program-header {
        height: 120px;
        font-size: 2.5rem;
    }

    .news-image {
        height: 150px;
    }

    .news-emoji {
        font-size: 2.5rem;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .footer-bottom .footer-developer {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-bottom .footer-developer::before {
        display: none;
    }

    .footer-section {
        padding: 10px;
    }

    .page-title {
        font-size: 2rem;
    }

    .featured-image {
        height: 200px;
    }

    .featured-news-title {
        font-size: 1.2rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .post-content {
        padding: 20px;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .comment {
        padding: 15px;
    }

    .widget {
        padding: 15px;
    }

    .recent-thumb {
        width: 45px;
        height: 45px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}


/* Premium Single Post Design */
.single-post-container {
    max-width: 1080px;
    margin: 30px auto 60px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.single-post-wrapper {
    background: #ffffff;
}

.single-post-header {
    text-align: left;
    margin-bottom: 50px;
    padding: 0;
    position: relative;
}

.single-post-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text-heading);
    margin-bottom: 35px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 2.5rem;
    }
}

.post-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 50px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-block img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1rem;
}

.post-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.views-count:hover {
    background: #e2e8f0;
    transform: scale(1.05);
    color: var(--primary);
}

/* Featured Image - Ultra Premium */
.single-post-image {
    width: 100%;
    margin: 0 0 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2);
    position: relative;
}

@media (max-width: 1024px) {
    .single-post-image {
        width: 100%;
        margin: 0 0 40px;
        border-radius: 16px;
    }
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.single-post-image:hover img {
    transform: scale(1);
}

/* Post Content Typography */
.single-post-content {
    padding: 0;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-body);
}

.single-post-content p {
    margin-bottom: 1.8em;
}

.single-post-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 2.5em 0 1em;
    letter-spacing: -0.01em;
}

.single-post-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 2em 0 0.8em;
}

.single-post-content blockquote {
    border-left: 6px solid var(--primary);
    padding: 20px 40px;
    margin: 40px 0;
    background: #f8fafc;
    font-style: italic;
    font-size: 1.4rem;
    border-radius: 0 16px 16px 0;
}

.single-post-content ul {
    margin: 1.5em 0;
    padding-left: 1.5em;
    list-style: none;
}

.single-post-content li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.single-post-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* WordPress File Block - Premium Modern Style */
.wp-block-file {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin: 40px 0;
    transition: all 0.4s ease;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.wp-block-file::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.wp-block-file:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08);
    border-color: #bfdbfe;
}

.wp-block-file:hover::after {
    opacity: 0.05;
}

/* Embedded Document Fixes */
.wp-block-file__embed,
.wp-block-file object,
.wp-block-file embed {
    width: 100% !important;
    height: 75vh !important;
    min-height: 500px;
    max-height: 900px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    flex-basis: 100%;
    order: -1;
    margin-bottom: 5px;
}

/* File Name / Title Link */
.wp-block-file > a:not(.wp-block-file__button) {
    font-weight: 800;
    color: var(--text-heading);
    text-decoration: none !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    transition: color 0.3s ease;
}

.wp-block-file > a:not(.wp-block-file__button):hover {
    color: var(--primary);
    text-decoration: none !important;
}

/* Hide WordPress default tiny icon */
.wp-block-file .wp-block-file__icon {
    display: none !important;
}

/* My custom premium icon */
.wp-block-file > a:not(.wp-block-file__button)::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    background-color: #eff6ff;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease;
}

.wp-block-file:hover > a:not(.wp-block-file__button)::before {
    transform: scale(1.05) rotate(-2deg);
}

/* Download Button */
.wp-block-file__button {
    background: var(--primary) !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25) !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.wp-block-file__button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35) !important;
}

@media (max-width: 640px) {
    .wp-block-file {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .wp-block-file__button {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Post Footer - Cleanup */
.single-post-footer {
    padding: 60px 0 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
}

.share-label {
    font-weight: 800;
    color: var(--text-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Image */
.single-post-image {
    width: 100%;
    margin-bottom: 40px;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.single-post-content {
    padding: 0 40px 40px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2em 0 1em;
}

.single-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5em 0 0.75em;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.single-post-content li {
    margin-bottom: 0.5em;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.single-post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #1d4ed8;
}

/* Post Footer */
.single-post-footer {
    padding: 30px 40px 40px;
    border-top: 1px solid #e5e7eb;
}

.post-tags-section {
    margin-bottom: 30px;
}

.tags-label {
    font-weight: 600;
    color: #374151;
    margin-right: 12px;
    font-size: 0.95rem;
}

.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #0c5fcd;
    transform: translateY(-2px);
}

.share-twitter {
    background: #000;
    color: white;
}

.share-twitter:hover {
    background: #333;
    transform: translateY(-2px);
}

.share-telegram {
    background: #0088cc;
    color: white;
}

.share-telegram:hover {
    background: #006ba8;
    transform: translateY(-2px);
}

/* Breadcrumb adjustments */
.breadcrumb {
    background: #f9fafb;
    padding: 15px 0;
}

.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-nav {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-nav a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {

    .single-post-header,
    .single-post-content,
    .single-post-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-post-title {
        font-size: 1.875rem;
    }

    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .single-post-content {
        font-size: 1rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* News List Section */
.news-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* News Image */
.news-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-emoji {
    font-size: 80px;
    opacity: 0.9;
}

/* News Content */
.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date::before {
    content: none;
}

.news-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    padding: 4px 12px;
    border-radius: 12px;
}

.news-category a {
    color: #fff !important;
    text-decoration: none !important;
}

/* News Title */
.news-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #2563eb;
}

.news-title a:visited {
    color: #1a1a1a;
}

/* News Excerpt */
.news-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    flex-grow: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.pagination a {
    background: #f3f4f6;
    color: #374151;
}

.pagination a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

.pagination a:visited {
    color: #374151;
}

.pagination a:visited:hover {
    color: #fff;
}

.pagination .current {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.pagination .dots {
    background: transparent;
    color: #9ca3af;
    cursor: default;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #6b7280;
    font-size: 1rem;
}

/* Empty State */
.news-grid>p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-list {
        padding: 40px 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-title {
        font-size: 1.25rem;
    }

    .news-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 20px;
    }

    .news-image {
        height: 180px;
    }
}