@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Source Sans Pro', sans-serif;
}

.hero-bg {
    background: linear-gradient(to right, #0A2540 0%, #1e3a8a 100%);
}

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

/* Sticky navigation wrapper */
#nav-placeholder {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Custom scrollbar for a polished look */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0A2540;
}

::-webkit-scrollbar-thumb {
    background: #C5A059;
    border-radius: 5px;
    border: 2px solid #0A2540;
}

::-webkit-scrollbar-thumb:hover {
    background: #b08d45;
}

/* Animation for FAQ accordion */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-hero-text {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.animate-shimmer-text {
    background-size: 200% auto;
    animation: shimmer 6s linear infinite;
}

@keyframes pulse-glow {

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

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-glow 8s ease-in-out infinite;
}

/* Hexagon Photo Style */
.hexagon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hexagon-container {
    position: relative;
    width: 300px;
    height: 340px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) {
    .hexagon-container {
        width: 360px;
        height: 400px;
    }
}

/* Outer decorative frame - top right corner accent */
.hexagon-frame-accent {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border-top: 2px solid rgba(197, 160, 89, 0.6);
    border-right: 2px solid rgba(197, 160, 89, 0.6);
    pointer-events: none;
    transition: all 0.5s ease;
}

.hexagon-container:hover .hexagon-frame-accent {
    top: -20px;
    right: -20px;
    border-color: rgba(197, 160, 89, 0.9);
}

/* Bottom left corner accent */
.hexagon-frame-accent-bl {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.6);
    border-left: 2px solid rgba(197, 160, 89, 0.6);
    pointer-events: none;
    transition: all 0.5s ease;
}

.hexagon-container:hover .hexagon-frame-accent-bl {
    bottom: -20px;
    left: -20px;
    border-color: rgba(197, 160, 89, 0.9);
}

/* Main hexagon border */
.hexagon-border {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.7) 0%, rgba(197, 160, 89, 0.3) 50%, rgba(197, 160, 89, 0.7) 100%);
    transition: all 0.5s ease;
}

.hexagon-container:hover .hexagon-border {
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.9) 0%, rgba(197, 160, 89, 0.5) 50%, rgba(197, 160, 89, 0.9) 100%);
}

/* Inner dark border for depth */
.hexagon-border-inner {
    position: absolute;
    inset: 4px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #051626;
}

/* The actual image container */
.hexagon-image {
    position: absolute;
    inset: 8px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.hexagon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.7s ease;
}

.hexagon-container:hover .hexagon-image img {
    transform: scale(1.05);
}

/* Subtle glow effect */
.hexagon-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.hexagon-container:hover .hexagon-glow {
    opacity: 1;
}

/* Procedure Emoji Scroll Animation */
.procedure-emoji {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.6s ease,
        opacity 0.6s ease;
    opacity: 0.5;
    filter: grayscale(50%);
}

.procedure-emoji.animate-in {
    animation: emojiPop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes emojiPop {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0.3;
        filter: grayscale(80%);
    }

    50% {
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
        filter: grayscale(0%);
    }

    70% {
        transform: scale(0.9) rotate(-3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* Gavel shake animation */
.procedure-emoji[data-emoji="gavel"].animate-in {
    animation: gavelShake 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes gavelShake {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0.3;
        filter: grayscale(80%);
    }

    25% {
        transform: scale(1.1) rotate(-20deg);
    }

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
        filter: grayscale(0%);
    }

    75% {
        transform: scale(1.05) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* Celebration animation with confetti effect */
.procedure-emoji[data-emoji="celebration"].animate-in {
    animation: celebrationBurst 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes celebrationBurst {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0.3;
        filter: grayscale(80%);
    }

    40% {
        transform: scale(1.4) rotate(10deg);
        opacity: 1;
        filter: grayscale(0%);
    }

    60% {
        transform: scale(0.95) rotate(-5deg);
    }

    80% {
        transform: scale(1.1) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* =============================================
   Blog & Admin Styling
   ============================================= */

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Category filter button active state */
.category-btn.active {
    background-color: #C5A059;
    color: #0A2540;
}

/* Status badges */
.status-published {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-draft {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Admin toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #10B981;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Quill editor dark theme overrides */
.ql-toolbar.ql-snow {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: #051626;
    border-radius: 0.5rem 0.5rem 0 0;
}

.ql-container.ql-snow {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: #0A2540;
    color: #FFFFFF;
    min-height: 300px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    border-radius: 0 0 0.5rem 0.5rem;
}

.ql-editor.ql-blank::before {
    color: #6B7280;
    font-style: italic;
}

.ql-snow .ql-stroke {
    stroke: #9CA3AF;
}

.ql-snow .ql-fill {
    fill: #9CA3AF;
}

.ql-snow .ql-picker-label {
    color: #9CA3AF;
}

.ql-snow .ql-picker-options {
    background: #051626;
    border-color: rgba(255, 255, 255, 0.1);
}

.ql-snow .ql-picker-item {
    color: #9CA3AF;
}

.ql-snow .ql-picker-item:hover {
    color: #C5A059;
}

.ql-snow button:hover .ql-stroke {
    stroke: #C5A059;
}

.ql-snow button:hover .ql-fill {
    fill: #C5A059;
}

.ql-snow button.ql-active .ql-stroke {
    stroke: #C5A059;
}

.ql-snow button.ql-active .ql-fill {
    fill: #C5A059;
}

.ql-snow .ql-picker-label:hover {
    color: #C5A059;
}

.ql-snow .ql-active .ql-picker-label {
    color: #C5A059;
}

/* Admin section tabs */
.admin-tab {
    border-bottom-width: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover:not(.active) {
    color: #E5C585;
    border-color: rgba(197, 160, 89, 0.3);
}