/*
Theme Name: Tainacan Child
Theme URI: https://tainacan.org/
Description: Child theme for Tainacan with ELAC customizations
Author: ELAC
Author URI: https://elac.uls.or.ug/
Template: tainacan-interface
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tainacan-child
*/

/* ELAC Custom Styles */

/* Footer - Dark Blue */
footer.tainacan-footer.tainacan-footer-dark,
footer#colophon.tainacan-footer.tainacan-footer-dark,
.container-fluid.tainacan-footer.tainacan-footer-dark {
    background-color: #1a237e !important;
    background-image: none !important;
}

.site-footer,
.tainacan-footer,
footer#colophon,
footer.site-footer,
.tainacan-footer-dark {
    background-color: #1a237e !important;
}

.site-footer .widget-area,
.site-footer .site-info,
.tainacan-footer__area,
.tainacan-footer__info,
.tainacan-footer-info,
.tainacan-footer-widgets-area {
    background-color: #1a237e !important;
    color: #ffffff !important;
}

.site-footer a,
.tainacan-footer a,
.tainacan-footer-info a {
    color: #ffffff !important;
}

.site-footer a:hover,
.tainacan-footer a:hover,
.tainacan-footer-info a:hover {
    color: #cccccc !important;
}

.tainacan-footer-info--blog,
.tainacan-footer-info p,
.tainacan-footer p {
    color: #ffffff !important;
}

.tainacan-footer-area-separator {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Logo sizing */
.custom-logo-link img,
.site-logo img {
    max-height: 80px;
    width: auto;
}

.tainacan-footer-info--logo {
    max-height: 60px;
    width: auto;
}

/* Dropdown menu styling */
.main-navigation ul ul,
.nav-menu ul.sub-menu {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-navigation ul ul li a,
.nav-menu ul.sub-menu li a {
    color: #333333;
    padding: 12px 20px;
}

.main-navigation ul ul li a:hover,
.nav-menu ul.sub-menu li a:hover {
    background-color: #f5f5f5;
}

.main-navigation .menu-item-has-children > a::after,
.page_item_has_children > a::after {
    content: " \25BE";
    margin-left: 5px;
}

/* ========================================
   ELAC Home Page Styling V2 - With Icons
   ======================================== */

.elac-home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.elac-home-hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #ffffff;
    padding: 80px 60px;
    border-radius: 16px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(26, 35, 126, 0.3);
}

.elac-home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.elac-hero-icon {
    font-size: 72px;
    margin-bottom: 25px;
    color: #ffd700;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.elac-home-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.elac-home-hero .lead {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 25px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.elac-home-hero .hero-note {
    background: rgba(255,255,255,0.15);
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.elac-home-hero .hero-note i {
    margin-right: 10px;
    color: #ffd700;
}

/* Section Headers */
.elac-section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.elac-section-header i {
    font-size: 48px;
    color: #1a237e;
    margin-bottom: 15px;
    display: block;
}

.elac-section-header h2 {
    color: #1a237e;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Features Section */
.elac-home-features {
    margin-bottom: 60px;
}

.elac-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.elac-feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.elac-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.2);
    border-color: #1a237e;
}

.elac-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}

.elac-feature-icon i {
    font-size: 36px;
    color: #ffffff;
}

.elac-feature-card h3 {
    color: #1a237e;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.elac-feature-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* FAQ Section */
.elac-home-faq {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.elac-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.elac-faq-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.elac-faq-item:hover {
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.15);
    transform: translateX(5px);
}

.elac-faq-item:last-child {
    margin-bottom: 0;
}

.elac-faq-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.elac-faq-header i {
    font-size: 28px;
    color: #1a237e;
    width: 40px;
    text-align: center;
}

.elac-faq-header h3 {
    color: #1a237e;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.elac-faq-item p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    padding-left: 55px;
}

/* About Section */
.elac-home-about {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(26, 35, 126, 0.2);
}

.elac-home-about .elac-section-header i,
.elac-home-about .elac-section-header h2 {
    color: #ffffff;
}

.elac-about-content {
    max-width: 900px;
    margin: 0 auto;
}

.elac-about-content p {
    color: rgba(255,255,255,0.9);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .elac-home-hero {
        padding: 60px 30px;
    }
    
    .elac-home-hero h1 {
        font-size: 2.2rem;
    }
    
    .elac-home-hero .lead {
        font-size: 1.2rem;
    }
    
    .elac-hero-icon {
        font-size: 56px;
    }
    
    .elac-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .elac-feature-card {
        padding: 30px 20px;
    }
    
    .elac-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .elac-home-hero {
        padding: 40px 20px;
    }

    .elac-home-hero h1 {
        font-size: 1.8rem;
    }

    .elac-home-hero .lead {
        font-size: 1.05rem;
    }

    .elac-home-hero .hero-note {
        padding: 15px 20px;
    }

    .elac-features-grid {
        grid-template-columns: 1fr;
    }

    .elac-home-faq,
    .elac-home-about {
        padding: 30px 20px;
    }

    .elac-faq-item {
        padding: 20px;
    }

    .elac-faq-header h3 {
        font-size: 1.1rem;
    }

    .elac-faq-item p {
        padding-left: 0;
        margin-top: 10px;
    }

    .elac-section-header i {
        font-size: 36px;
    }

    .elac-section-header h2 {
        font-size: 1.6rem;
    }
}

/* ========================================
   ELAC Page Content Styling - Global
   ======================================== */

/* Blue Info Box - like About ELAC section */
.elac-blue-info-box {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 40px 50px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.2);
}

.elac-blue-info-box h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.elac-blue-info-box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    font-size: 1.05rem;
    margin: 0 0 15px 0;
}

.elac-blue-info-box p:last-child {
    margin-bottom: 0;
}

/* Numbered headings - good numbering */
article.page .entry-content h2 {
    color: #1a237e;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a237e;
}

article.page .entry-content h3 {
    color: #283593;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

article.page .entry-content h4 {
    color: #3949ab;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

/* Ordered lists with custom styling */
article.page .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

article.page .entry-content ol li {
    margin-bottom: 12px;
    padding-left: 10px;
    line-height: 1.7;
}

article.page .entry-content ol li::marker {
    color: #1a237e;
    font-weight: 700;
}

/* Unordered lists */
article.page .entry-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

article.page .entry-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

article.page .entry-content ul li::marker {
    color: #1a237e;
}

/* Footer info - vertical spacing */
.tainacan-footer-info--blog {
    line-height: 2.2 !important;
}

.tainacan-footer-info--blog br {
    content: "";
    display: block;
    margin: 8px 0;
}

/* ========================================
   HIDE COMMENTS SECTION & META INFO
   ======================================== */

/* Hide comments section on pages */
.comments-area,
.comments-section,
#comments,
.comment-respond,
.comments-title,
.comments-closed {
    display: none !important;
}

/* Hide "Comments: None" text */
.entry-meta .comments-link,
.single .entry-meta .comments-link,
.page .entry-meta .comments-link {
    display: none !important;
}

/* Hide entire meta info line (author, date, comments) - MORE AGGRESSIVE */
.entry-meta,
.entry-meta *,
.post-meta,
.post-meta *,
.meta-info,
.meta-info *,
.tainacan-item-metadata,
.tainacan-item-metadata *,
.single-post-meta,
.single-post-meta *,
.page-meta,
.page-meta *,
.byline,
.posted-on,
.cat-links,
.tags-links,
.author,
.date,
.comments-link {
    display: none !important;
    visibility: hidden !important;
}

/* Hide from Tainacan theme specifically */
.tainacan-item-section--metadata,
.tainacan-metadata,
.tainacan-item__metadata,
.tainacan-list-item--metadata {
    display: none !important;
}

/* ========================================
   GLOBAL ANIMATIONS - Auto-play on page load
   ======================================== */

/* Fade in animation for page content */
article.page .entry-content > *,
.single .entry-content > *,
.page .entry-content > *,
body .entry-content > *,
body .site-content > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger animations for child elements */
body .site-content > *:nth-child(1) { animation-delay: 0.1s; }
body .site-content > *:nth-child(2) { animation-delay: 0.2s; }
body .site-content > *:nth-child(3) { animation-delay: 0.3s; }
body .site-content > *:nth-child(4) { animation-delay: 0.4s; }
body .site-content > *:nth-child(5) { animation-delay: 0.5s; }
body .site-content > *:nth-child(6) { animation-delay: 0.6s; }
body .site-content > *:nth-child(7) { animation-delay: 0.7s; }
body .site-content > *:nth-child(8) { animation-delay: 0.8s; }

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

/* Hover animations for links */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #283593 !important;
}

/* Pulse animation for buttons */
a.elac-branches-btn,
a.elac-branches-link,
input[type="submit"],
button[type="submit"],
.elac-branches-link,
.elac-branches-btn {
    transition: all 0.3s ease;
    display: inline-block;
}

a.elac-branches-btn:hover,
a.elac-branches-link:hover,
.elac-branches-btn:hover,
.elac-branches-link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

/* Shimmer effect on cards */
.elac-clinic-card,
.elac-clinic-card-2,
.elac-branch-card,
.elac-feature-card,
.elac-service-card,
.elac-service-item,
.elac-step-box,
.elac-section {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elac-clinic-card:hover,
.elac-clinic-card-2:hover,
.elac-branch-card:hover,
.elac-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.2);
}

/* Icon bounce on hover */
.elac-feature-icon,
.elac-service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elac-feature-card:hover .elac-feature-icon,
.elac-service-card:hover .elac-service-icon {
    transform: scale(1.15) rotate(10deg);
}

/* ========================================
   ELAC Footer Columns - Force 2 Column Layout
   ======================================== */

.elac-footer-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    justify-content: center !important;
    padding: 30px 20px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.elac-footer-col {
    flex: 1 1 400px !important;
    max-width: 450px !important;
    min-width: 300px !important;
    display: block !important;
    visibility: visible !important;
}

.elac-footer-col h4 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.elac-footer-col p {
    color: rgba(255,255,255,0.9) !important;
    margin: 8px 0 !important;
    line-height: 1.6 !important;
}

.elac-footer-col a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.elac-footer-col a:hover {
    color: #90caf9 !important;
    text-decoration: underline !important;
}

/* Force 2 columns on desktop */
@media (min-width: 768px) {
    .elac-footer-columns {
        flex-wrap: nowrap !important;
    }

    .elac-footer-col {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }
}
