/* Homepage Specific Styles */
/* Common styles are loaded from pages.css */
/* Button styles imported from membership.css */

/* ==========================================================================
   Animation System
   ========================================================================== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Delay Classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */

.hero-banner {
    background: #f8f9fa;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #002245;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: #F37039;
}

.hero-subtitle {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.hero-feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hero-feature-item:hover {
    border-color: #F37039;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(243, 112, 57, 0.2);
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.hero-feature-icon i {
    color: #fff;
    font-size: 28px;
}

.hero-feature-item h4 {
    color: #002245;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    height: 650px;
    margin: 0;
    padding: 0;
}

.hero-slider-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slider-image-item.active {
    opacity: 1;
}

.slider-image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 69, 0.85) 0%, rgba(0, 51, 102, 0.75) 100%);
}

.slider-content-overlay {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.slider-content-inner {
    width: 100%;
}

.slider-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    color: #fff;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(243, 112, 57, 0.3);
}

.slider-main-title {
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-main-title span {
    color: #F37039;
}

.slider-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 700px;
}

.slider-tagline {
    color: #F37039;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 30px;
}

.slider-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-slider-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 112, 57, 0.3);
}

.btn-slider-primary:hover {
    background: linear-gradient(135deg, #ff8c5a, #F37039);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 57, 0.4);
    color: #fff;
}

.btn-slider-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-slider-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: #F37039;
    border-color: #fff;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: 40px 0;
    background: #fff;
    margin: 0;
}

/* ==========================================================================
   Journal Search Section
   ========================================================================== */

.journal-search-section {
    padding: 40px 0;
    background: #f8f9fa;
    margin: 0;
}

.search-wrapper {
    max-width: 700px;
    margin: 40px auto;
    position: relative;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 8px 40px rgba(243, 112, 57, 0.2);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #ff8c5a, #F37039);
}

/* Journal Grid */
.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.journal-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-top-color: #F37039;
}

.journal-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journal-card:hover .journal-image img {
    transform: scale(1.1);
}

.journal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(243, 112, 57, 0.3);
}

.journal-body {
    padding: 25px;
}

.journal-title {
    margin-bottom: 15px;
}

.journal-title h4 {
    color: #002245;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-title h4 a {
    color: #002245;
    text-decoration: none;
    transition: color 0.3s ease;
}

.journal-title h4 a:hover {
    color: #F37039;
}

.journal-subject {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
}

.journal-subject strong {
    color: #002245;
    font-size: 13px;
}

.journal-subject span {
    color: #F37039;
    font-size: 13px;
    font-weight: 600;
}

.journal-meta {
    margin-bottom: 20px;
}

.journal-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journal-meta li {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.journal-meta li .icon {
    position: absolute;
    left: 0;
    color: #F37039;
    width: 18px;
}

.journal-meta li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.journal-meta li a:hover {
    color: #F37039;
}

.journal-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ==========================================================================
   Why Choose Us Section  
   ========================================================================== */

.why-choose-section {
    padding: 40px 0;
    background: #fff;
    margin: 0;
}

/* Custom styling for icons in Why Choose section */
.why-choose-section .highlight-section h4 i {
    color: #F37039;
    margin-right: 10px;
    font-size: 20px;
}

/* ==========================================================================
   Quick Links Section
   ========================================================================== */

.quick-links-section {
    padding: 40px 0;
    background: #f8f9fa;
    margin: 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quick-link-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 112, 57, 0.05), rgba(0, 34, 69, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-top-color: #F37039;
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #F37039, #ff8c5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: rotateY(360deg);
}

.quick-link-icon i {
    color: #fff;
    font-size: 36px;
}

.quick-link-card h3 {
    color: #002245;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.quick-link-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   No Results Message
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #002245;
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
    font-size: 16px;
}

/* ==========================================================================
   Journals By Title Page
   ========================================================================== */

.page_starting {
    background: #f8f9fa;
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    color: #002245;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #F37039, #ff8c5a);
    border-radius: 2px;
}

.page_starting p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Letter Navigation (if needed later) */
.alpha-title {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.alpha-title a {
    color: #002245;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.alpha-title a:hover {
    background: #F37039;
    color: #fff;
}

.alpha-title a.text-mutted {
    color: #ccc;
    cursor: not-allowed;
}

.alpha-title a.text-mutted:hover {
    background: transparent;
    color: #ccc;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-slider-wrapper {
        height: 550px;
    }
    
    .slider-main-title {
        font-size: 42px;
    }
    
    .slider-description {
        font-size: 18px;
    }
    
    .slider-cta-buttons {
        flex-wrap: wrap;
    }
    
    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-slider-wrapper {
        height: 600px;
    }
    
    .slider-content-overlay {
        padding: 40px 0;
    }
    
    .slider-main-title {
        font-size: 32px;
    }
    
    .slider-description {
        font-size: 16px;
    }
    
    .slider-tagline {
        font-size: 16px;
    }
    
    .slider-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-slider-primary,
    .btn-slider-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .about-section,
    .journal-search-section,
    .why-choose-section,
    .quick-links-section {
        padding: 60px 0;
    }
    
    .search-wrapper {
        margin: 30px auto;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-box button {
        border-radius: 0 0 15px 15px;
    }
    
    .journals-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Journals By Title Responsive */
    .page_starting {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .journal-letter-section {
        padding: 20px;
    }
    
    .letter-heading {
        font-size: 24px;
        padding: 12px 20px;
    }
    
    .journal-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .journal-info {
        margin-bottom: 10px;
    }
    
    .journal-submit-btn {
        width: 100%;
    }
    
    .journal-submit-btn .btn {
        width: 100%;
        text-align: center;
    }
}
