/* Global Styles */
:root {
    --primary-color: #4169E1; /* Sky blue */
    --secondary-color: #DAA520; /* Gold */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

/* Header & Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    /* Background styling is now handled via inline styles on index.php */
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-logo {
    max-width: 250px;
    max-height: 150px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
}

/* Magazine Cards */
.magazine-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.magazine-card:hover {
    transform: translateY(-5px);
}

.magazine-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Magazine Description Responsive */
.magazine-description {
    display: block;
}

@media (max-width: 767px) {
    .magazine-description {
        display: none;
    }
}

/* Audio Player */
.audio-player {
    width: 100%;
    margin: 20px 0;
}

/* Live Stream */
.live-stream-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.live-stream-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Blog Posts */
.blog-card {
    margin-bottom: 30px;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #212529 !important; /* Dark background color to match bg-dark class */
    color: var(--white);
    padding: 25px 0;
}

footer h6 {
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    color: var(--white);
}

footer h6::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 8px;
}

footer .list-unstyled li {
    margin-bottom: 4px;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a.text-muted {
    text-decoration: none;
    transition: color 0.2s;
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a.text-muted:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

footer p.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer address {
    color: rgba(255, 255, 255, 0.8) !important;
}

.social-icons a {
    color: var(--blue);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: transform 0.2s;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .magazine-cover {
        height: 200px;
    }
    
    .blog-image {
        height: 150px;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Admin Styles */
.admin-panel {
    background-color: var(--light-bg);
    min-height: 100vh;
    padding: 20px;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Ebook Grid Mobile Styles */
@media (max-width: 767px) {
    .ebook-grid .col-6 {
        width: 50% !important;
        float: left !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .ebook-grid .card {
        margin-bottom: 10px;
    }
    
    .ebook-grid .card-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .ebook-grid .card-img-top {
        height: 120px;
        object-fit: cover;
    }
    
    .ebook-grid .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Search Form */
.navbar .input-group {
    max-width: 300px;
}

.navbar .input-group .form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.navbar .input-group .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.navbar .input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.navbar .input-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 991.98px) {
    .navbar .input-group {
        max-width: 100%;
        margin-bottom: 1rem;
    }
} 