/* Custom styles for Debate House */

/* Font Override - Roboto with full Greek support and optimized fallback */
body {
    font-family: "Roboto", "Roboto Fallback", sans-serif !important;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
.inspiration-area .single-inspiration a {
    font-family: "Roboto", "Roboto Fallback", sans-serif !important;
}

/* Override all button fonts */
.custom-btn,
.btn,
button,
input[type="button"],
input[type="submit"] {
    font-family: "Roboto", "Roboto Fallback", sans-serif !important;
}

/* Logo sizing */
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.offcanvas-header img {
    max-height: 50px;
    width: auto;
}

.f-logo img {
    max-height: 80px;
    width: auto;
}

/* Newsletter Widget Alerts */
.newsletter-entry .alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-entry .alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.newsletter-entry .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.newsletter-entry .alert ul {
    margin: 0;
    padding-left: 20px;
}

.newsletter-entry .alert ul li {
    margin: 5px 0;
}

.newsletter-entry .form-group input.is-invalid {
    border-color: #dc3545;
}

/* Video Library Styles */
.video-library-area {
    padding: 80px 0;
}

.single-video {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.single-video:hover {
    transform: translateY(-5px);
}

.single-video figure.video-thumb {
    position: relative;
    margin: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.single-video figure.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-video .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 183, 18, 0.9); /* Primary yellow with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.single-video:hover .play-overlay {
    background: rgba(255, 183, 18, 1);
    width: 80px;
    height: 80px;
}

.single-video .play-overlay i {
    color: #fff;
    font-size: 24px;
    margin-left: 4px; /* Optical centering for play icon */
}

.single-video .video-details {
    overflow: hidden;
    border-width: 0 1px 1px;
    border-style: solid;
    border-radius: 0px 0px 5px 5px;
    padding: 25px;
    border-color: #e5e5e5;
    background: #fdfaf5; /* Light background */
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.single-video .video-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
}

.single-video .video-details h3 a {
    color: #031550;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-video .video-details h3 a:hover {
    color: #ffb712; /* Primary yellow */
}

.single-video .video-details p {
    color: #505050;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.single-video .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #505050;
}

.single-video .video-meta i {
    margin-right: 6px;
    color: #ffb712;
}

.single-video .video-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-video .video-category .badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
}

.single-video .video-date {
    display: flex;
    align-items: center;
}

.single-video .custom-btn {
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Pagination styles for video library */
.video-library-area .pager {
    margin-top: 40px;
}

.video-library-area .pager span,
.video-library-area .pager a {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.video-library-area .pager span {
    background: #ffb712;
    color: #fff;
    font-weight: 600;
}

.video-library-area .pager a {
    background: #fff;
    color: #031550;
    border: 1px solid #e5e5e5;
    text-decoration: none;
}

.video-library-area .pager a:hover {
    background: #ffb712;
    color: #fff;
    border-color: #ffb712;
}

/* Social Counter - No Background Variant */
.counter-area--no-bg {
    background: var(--primary) !important;
}

.counter-area--no-bg::before {
    display: none !important;
}

/* Partner Area - Grid layout */
.partner-area .partner-grid {
    justify-content: center;
}

.partner-area .partner-name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 30px;
}

.partner-area .partner-name a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.partner-area .partner-name img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.partner-area .partner-name img:hover {
    opacity: 1;
}

/* Legal Page Styles */
.legal-page {
    background: #fff;
}

.legal-page .section-title {
    margin-bottom: 40px;
}

.legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #505050;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--heading);
}

.legal-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--heading);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--heading);
}

/* Language Selector Dropdown */
.lang-dropdown .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

.lang-dropdown .dropdown-menu {
    min-width: 120px;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lang-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #505050;
    transition: all 0.2s ease;
}

.lang-dropdown .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}

.lang-dropdown .dropdown-item.active {
    background: var(--primary);
    color: #fff;
}

/* Bank Details Area */
.bank-details-area {
    background: var(--bg-white-alt);
}

.bank-details-area .section-intro h2 {
    color: var(--headings-color);
    margin-bottom: 15px;
}

.bank-details-area .section-intro .lead {
    color: var(--secondary);
    font-size: 18px;
}

.bank-details-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.bank-detail-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.bank-detail-item .detail-label {
    min-width: 180px;
    font-weight: 600;
    color: var(--headings-color);
    font-size: 15px;
}

.bank-detail-item .detail-label i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
}

.bank-detail-item .detail-value {
    flex: 1;
    color: var(--secondary);
    font-size: 16px;
    word-break: break-all;
}

.bank-detail-item .detail-value.iban-value {
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 1px;
}

.bank-detail-item .copy-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.bank-detail-item .copy-btn:hover {
    background: var(--headings-color);
    transform: translateY(-2px);
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--headings-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 767px) {
    .bank-details-card {
        padding: 25px;
    }

    .bank-detail-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bank-detail-item .detail-label {
        min-width: 100%;
    }

    .bank-detail-item .detail-value {
        flex: 1;
    }

    .bank-detail-item .copy-btn {
        margin-left: auto;
    }
}

/* Payment Info Area */
.payment-info-area {
    background: #fff;
}

.payment-info-card {
    background: var(--bg-white-alt);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.payment-info-card .payment-icon {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.payment-info-card .payment-icon i {
    font-size: 40px;
    color: #fff;
}

.payment-info-card h2 {
    color: var(--headings-color);
    margin-bottom: 20px;
}

.payment-info-card .lead {
    color: var(--secondary);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .payment-info-card {
        padding: 35px 25px;
    }

    .payment-info-card .payment-icon {
        width: 80px;
        height: 80px;
    }

    .payment-info-card .payment-icon i {
        font-size: 32px;
    }
}

/* Event Schedule Items - Mobile Responsive */
.event-schedule .schedule-item {
    flex: 1;
}

@media (max-width: 767px) {
    .event-schedule .schedule-item {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .single-video .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .video-library-area {
        padding: 50px 0;
    }

    .single-video .video-details {
        min-height: auto;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-content p {
    margin: 0;
    color: #505050;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #e5a510;
}

.cookie-btn-necessary {
    background: #e5e5e5;
    color: #505050;
}

.cookie-btn-necessary:hover {
    background: #d5d5d5;
}

@media (max-width: 767px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        padding: 12px 15px;
    }
}

/* Online Donation Area */
.online-donation-area {
    background: #fff;
}

.online-donation-area .section-intro {
    margin-bottom: 25px;
}

.donation-card {
    background: var(--bg-white-alt, #fdfaf5);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.donation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.donation-icon i {
    font-size: 24px;
    color: #fff;
}

.payment-type-toggle {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.payment-type-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-type-btn:hover {
    color: var(--headings-color);
}

.payment-type-btn.active {
    background: var(--primary);
    color: #fff;
}

.donation-amounts {
    margin-bottom: 20px;
}

.donation-amounts-label,
.custom-amount-label {
    font-size: 14px;
    color: var(--headings-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.amount-btn {
    min-width: 70px;
    padding: 10px 20px;
    border: 2px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--headings-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.02);
}

.custom-amount {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.custom-amount-input {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.custom-amount-input:focus-within {
    border-color: var(--primary);
}

.custom-amount-input .currency-symbol {
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--headings-color);
    background: #f5f5f5;
}

.custom-amount-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--headings-color);
    text-align: center;
    outline: none;
    width: 100%;
}

.custom-amount-input input::placeholder {
    color: #ccc;
}

.custom-amount-input input::-webkit-outer-spin-button,
.custom-amount-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount-input input[type=number] {
    -moz-appearance: textfield;
}

.donation-total {
    background: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.donation-total .total-label {
    font-size: 15px;
    color: var(--secondary);
}

.donation-total .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.donation-total .total-frequency {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

.donate-submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 30px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.donate-submit-btn:disabled:hover {
    background: var(--primary);
}

.payment-security {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.payment-security .viva-logo {
    max-height: 45px;
    margin-bottom: 10px;
}

.payment-security p {
    margin: 0;
    font-size: 13px;
    color: var(--secondary);
}

.payment-security p i {
    color: #28a745;
    margin-right: 6px;
}

.accepted-cards {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.accepted-cards i {
    font-size: 28px;
    color: #999;
    transition: color 0.3s ease;
}

.accepted-cards i:hover {
    color: var(--headings-color);
}

@media (max-width: 767px) {
    .donation-card {
        padding: 25px 20px;
    }

    .donation-icon {
        width: 50px;
        height: 50px;
    }

    .donation-icon i {
        font-size: 20px;
    }

    .amount-btn {
        min-width: 60px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .donation-total .total-amount {
        font-size: 20px;
    }

    .donate-submit-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
