/* GT Academy Custom Styles */

/* Header Styles */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    padding: 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 32, 38, 0.2);
    white-space: nowrap;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 32, 38, 0.3);
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
    color: var(--white) !important;
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 32, 38, 0.2);
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-image {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-image {
        height: 56px;
        max-width: 200px;
    }
}

.site-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.site-slogan {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.logo-link:hover .site-title {
    color: var(--brand-primary);
}

.logo-link:hover .site-slogan {
    color: var(--brand-primary-hover);
}

.logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 56px;
    width: auto;
}

@media (min-width: 768px) {
    .custom-logo {
        height: 64px;
    }
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* CTA Button in Header */
.btn-cta {
    background-color: var(--brand-primary);
    color: var(--white);
    padding: var(--space-5) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-brand);
    display: inline-block;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-4);
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-12);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--gray-600);
    font-weight: 500;
    padding: var(--space-4) var(--space-6);
    display: block;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    color: var(--brand-primary);
}

/* Submenu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: var(--space-4) 0;
    display: none;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    display: block;
}

.nav-menu .sub-menu a {
    padding: var(--space-4) var(--space-8);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .site-text {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: var(--space-8);
        min-width: 250px;
        display: none;
        margin-top: var(--space-8);
    }
    
    .nav-menu.toggled {
        display: flex;
    }
    
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--space-8);
        display: none;
    }
    
    .nav-menu li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 0.75rem;
    }
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-24);
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Card */
.post-card {
    margin-bottom: 0;
}

.post-thumbnail {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.entry-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--brand-primary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.entry-meta a {
    color: var(--gray-600);
}

.entry-meta a:hover {
    color: var(--brand-primary);
}

.entry-content {
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.entry-footer {
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

/* Sidebar */
.sidebar {
    padding: var(--space-12);
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
}

.widget {
    margin-bottom: var(--space-12);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    color: var(--gray-900);
}

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

.widget li {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-200);
}

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

/* Footer */
.site-footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    margin-top: var(--space-40);
}

.footer-widgets {
    padding: var(--space-32) 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-16);
}

.footer-widget-area .widget-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
}

.footer-widget-area a {
    color: var(--gray-300);
}

.footer-widget-area a:hover {
    color: var(--white);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-12) 0;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.footer-navigation .footer-nav {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-12);
    right: var(--space-12);
    width: 48px;
    height: 48px;
    background-color: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    display: flex;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-24) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    background-color: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
}

.pagination a:hover {
    background-color: var(--brand-primary-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.pagination .current {
    background-color: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

/* Comments */
.comments-area {
    margin-top: var(--space-32);
    padding-top: var(--space-32);
    border-top: 2px solid var(--gray-200);
}

.comments-title {
    margin-bottom: var(--space-12);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: var(--space-12);
}

.comment-body {
    background-color: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-4);
}

.comment-author img {
    border-radius: var(--radius-full);
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.comment-content {
    margin-bottom: var(--space-6);
}

.comment-reply-link {
    font-size: 0.875rem;
    color: var(--brand-primary);
    text-decoration: none;
}

.comment-reply-link:hover {
    color: var(--brand-primary-hover);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: var(--space-6);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

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

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-24);
    padding-bottom: var(--space-12);
    border-bottom: 2px solid var(--gray-200);
}

.page-title {
    margin-bottom: var(--space-4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-32) 0;
}

.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding-top: var(--space-32);
}

.footer-widgets {
    padding-bottom: var(--space-24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-16);
}

@media (min-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widget-area .widget {
    margin-bottom: 0;
}

.footer-widget-area .widget-title {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-8);
}

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

.footer-widget-area ul li {
    margin-bottom: var(--space-4);
}

.footer-widget-area a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget-area a:hover {
    color: var(--white);
}

.site-info {
    padding: var(--space-12) 0;
}

.site-info-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .site-info-inner {
        flex-direction: row;
    }
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-navigation {
    display: flex;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: var(--space-12);
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

/* Map Section */
.map-section {
    width: 100%;
    background-color: var(--gray-50);
}

.map-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Floating Chat Button */
.floating-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 132, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
    border: none;
}

.floating-chat:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 132, 255, 0.5);
}

.floating-chat.chat-open {
    display: none;
}

.floating-chat svg {
    width: 32px;
    height: 32px;
}

.pulse-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #0084ff;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 450px;
    height: 700px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-widget-header {
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
    color: var(--white);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.chat-header-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.chat-header-text p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.chat-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlide 0.3s ease;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-avatar svg {
    width: 20px;
    height: 20px;
    color: #0084ff;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
}

.user-message .message-avatar svg {
    color: var(--white);
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
    color: var(--white);
}

.message-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
    line-height: 1.5;
}

.message-content strong {
    font-weight: 600;
    color: inherit;
}

.message-content em {
    font-style: italic;
}

.message-content a {
    color: #0084ff;
    text-decoration: underline;
}

.message-content a:hover {
    color: #0066cc;
}

.message-content br {
    display: block;
    content: "";
    margin-top: 0.25rem;
}

.chat-input-wrapper {
    padding: 1rem;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #0084ff;
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

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

.chat-typing {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
    margin-left: 0.5rem;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0084ff;
    animation: typing 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top svg {
    width: 32px;
    height: 32px;
}

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.popup-close:hover {
    background-color: var(--gray-200);
    transform: rotate(90deg);
}

.popup-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.popup-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.popup-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--brand-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 32, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Post Styles */
.post-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-900);
    padding: 120px 0 80px;
    margin-top: 80px;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 32, 38, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.post-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item svg {
    flex-shrink: 0;
}

.meta-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-item a:hover {
    color: var(--white);
}

.single-post {
    background-color: transparent;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 0;
}

.post-content-wrapper {
    min-width: 0;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--gray-900);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.875rem;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.entry-content h4 {
    font-size: 1.25rem;
    line-height: 1.5;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: var(--brand-primary-hover);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--gray-50);
    border-left: 4px solid var(--brand-primary);
    font-style: italic;
    color: var(--gray-600);
    border-radius: 0 8px 8px 0;
}

.entry-content code {
    background-color: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}

.entry-content pre {
    background-color: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.post-tags svg {
    flex-shrink: 0;
    color: var(--gray-400);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.post-author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: 12px;
    margin-top: 3rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name a:hover {
    color: var(--brand-primary);
}

.author-bio {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.related-posts {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.related-posts .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.nav-links {
    display: contents;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous .nav-subtitle,
.nav-next .nav-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.nav-previous .nav-title,
.nav-next .nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 60px;
    }
    
    .post-title {
        font-size: 1.875rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-chat {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .chat-widget {
        width: calc(100% - 2rem);
        height: calc(100vh - 2rem);
        bottom: 1rem;
        right: 1rem;
        max-height: 650px;
    }
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 5rem;
    }
    
    .popup-content {
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .popup-header,
    .contact-form {
        padding: 1.5rem;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
}

/* Hero Slideshow Section */
.hero-slideshow-section {
    width: 100%;
    overflow: hidden;
    background-color: var(--white);
    display: none;
}

@media (min-width: 768px) {
    .hero-slideshow-section {
        display: block;
    }
}

.hero-slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    height: 500px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slideshow-wrapper {
        padding: 0 var(--space-12);
    }
}

@media (min-width: 1024px) {
    .hero-slideshow-wrapper {
        padding: 0 var(--space-16);
    }
}

.hero-slideshow {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    background-color: var(--white);
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 0 1.5rem;
}

.hero-slide-caption p {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--gray-900);
}

.hero-slider-nav:hover {
    background-color: var(--brand-primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero-slider-nav:disabled:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
    transform: translateY(-50%);
}

.hero-slider-prev {
    left: 2rem;
}

.hero-slider-next {
    right: 2rem;
}

/* Hero Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-slider-dot.active {
    background-color: var(--white);
    width: 36px;
    border-radius: 6px;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background-color: var(--white);
    overflow: hidden;
}

.reviews-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-slider-wrapper {
    position: relative;
    padding: 0 3rem;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.review-content {
    flex: 1;
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar-placeholder {
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.review-author-position {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--gray-700);
}

.slider-nav:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    background-color: var(--white);
    border-color: var(--gray-300);
    color: var(--gray-700);
    transform: translateY(-50%);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: var(--gray-400);
}

.slider-dot.active {
    background-color: var(--brand-primary);
    width: 32px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .reviews-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-slider-wrapper {
        padding: 0 2.5rem;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}
