/* ========================================
   Accessibility Styles
   ======================================== */

/* Skip to main content link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Theme Styles
   ======================================== */

.tp-caption.title {
	background-color:rgba(255,255,255,.9);
	padding:10px;
}

.sub-title {
	background-color:rgba(255,255,255,.9);
	padding:10px;
}

#header .logo img {
    max-height: 50px;
}

.about-section {
    margin-top: 30px;
	margin-bottom: 30px;
}

.portfolio-section {
    padding-top: 40px;
}

hr {
width: 100%;
height: 3px;
background-color:#000000;
}

/* ========================================
   Cookie Consent Styles
   ======================================== */

/* Cookie Banner */
#cookie-consent-banner {
    display: block;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s ease-in-out;
}

#cookie-consent-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #45a049;
}

.cookie-btn-secondary {
    background-color: #666;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #555;
}

.cookie-btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

#cookie-settings-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #4CAF50;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #4CAF50;
}

.cookie-required-badge {
    font-size: 11px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Cookie Settings Link in Footer */
#cookie-settings-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
}

#cookie-settings-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 15px 20px;
    }

    .cookie-settings-header h2 {
        font-size: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    #cookie-settings-modal {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 16px;
    }

    .cookie-banner-text p {
        font-size: 13px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}