/* Gilroy Font Definitions */
@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-Regular.31ff7c1a62a3.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-RegularItalic.b564aec808c4.ttf") format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-Light.4b236c6cb4c5.ttf") format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-LightItalic.a0904c2ad11d.ttf") format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-Medium.c83281ae1ca7.ttf") format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-MediumItalic.5d08cc9fffd5.ttf") format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-SemiBold.a5cf732b1507.ttf") format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-SemiBoldItalic.e2389bf40e36.ttf") format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-Bold.b381c2abd297.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-BoldItalic.920fb5d3a984.ttf") format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-ExtraBold.b487bfc69e2a.ttf") format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url("../fonts/Gilroy-Black.b8a3b3a91be2.ttf") format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Global font application */
* {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* Prevent zoom issues on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Ensure consistent rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure Gilroy is applied to all text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Debug: Test if fonts are loading */
.font-test {
    font-family: 'Gilroy' !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: red !important;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #14b8a6;
}

/* Share menu styles */
.share-menu.active {
    display: block !important;
}

.carousel-dot:hover {
    background-color: #0d9488;
}

/* Story Card Animation */
.story-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.story-card.hidden {
    opacity: 0;
    transform: translateX(100%);
}

.story-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* White pagination dots */
.swiper-pagination-white .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-white .swiper-pagination-bullet-active {
    background-color: white !important;
    opacity: 1 !important;
}

/* Ensure hover effects work in production */
.swiper-slide img {
    transition: transform 0.3s ease !important;
}

.swiper-slide:hover img {
    transform: scale(1.1) !important;
}

/* Fix for education section hover effects */
.eduSwiper .swiper-slide .bg-white {
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.eduSwiper .swiper-slide:hover .bg-white {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.eduSwiper .swiper-slide figure {
    overflow: hidden !important;
}

.eduSwiper .swiper-slide img {
    transition: transform 0.3s ease !important;
}

.eduSwiper .swiper-slide:hover img {
    transform: scale(1.1) !important;
}

/* Toast Notification */
#toast.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Prevent zoom and scaling issues */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Ensure consistent viewport behavior */
@viewport {
    width: device-width;
    initial-scale: 1.0;
}

/* Fix for mobile zoom issues */
input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Ensure consistent container behavior */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for header spacing consistency */
main {
    position: relative;
    z-index: 1;
}

/* Ensure sections don't have conflicting margins */
section:first-child,
div:first-child {
    margin-top: 0 !important;
}

/* Fix for sticky header positioning */
.sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
}

/* Blog Detail Page Enhancements */
.article-content {
    line-height: 1.8;
    color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
}

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

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

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}

.article-content img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.article-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.article-content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #e11d48;
}

.article-content pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
}

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

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.article-content tr:hover {
    background: #f9fafb;
}

/* Social sharing button animations */
.social-share-btn {
    position: relative;
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-share-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: black;
    }
    
    .article-content h1 {
        font-size: 20pt;
        page-break-after: avoid;
    }
    
    .article-content h2 {
        font-size: 16pt;
        page-break-after: avoid;
    }
    
    .article-content h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }
    
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    .article-content blockquote {
        border-left: 2pt solid #000;
        background: #f5f5f5;
        page-break-inside: avoid;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.75rem 0.5rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.article-content a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading animation for images */
.article-content img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Enhanced typography for better readability */
.article-content {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection colors */
.article-content ::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e293b;
}

.article-content ::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e293b;
}
/* Social sharing button improvements */
.social-share-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.social-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.social-share-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    flex-shrink: 0;
}

/* Ensure SVG icons are visible */
.social-share-button svg path {
    fill: currentColor;
}

/* Fallback for when icons don't load */
.social-share-button::after {
    content: attr(data-fallback);
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.social-share-button:not(:has(svg))::after,
.social-share-button svg:not([viewBox])::after {
    opacity: 1;
}

/* Specific social platform colors */
.btn-facebook {
    background-color: #1877f2;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.btn-twitter {
    background-color: #000000;
}

.btn-twitter:hover {
    background-color: #333333;
}

.btn-linkedin {
    background-color: #0a66c2;
}

.btn-linkedin:hover {
    background-color: #004182;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.btn-copy {
    background-color: #6b7280;
}

.btn-copy:hover {
    background-color: #4b5563;
}