/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ADD8E6; /* Light blue */
    --secondary-color: #E0F2FF; /* Softer sky blue */
    --accent-color: #FFFFFF; /* Pure white */
    --success-color: #4CAF50;
    --warning-color: #FFCC00;
    --error-color: #f44336;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FBFF; /* very light bluish white */
    --bg-dark: #2d3748;
    --border-color: #D6EFFF; /* pale blue border */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    /* Mostly light blue, fade to white near right edge */
    --gradient-primary: linear-gradient(to right, #ADD8E6 0%, #ADD8E6 85%, #ADD8E6 100%);
    --gradient-accent: linear-gradient(135deg, #E0F2FF, #ADD8E6);
    --navbar-height: 75px;
}

.container h2,
.container h3,
.container h4,
.container h5 {
    color: var(--text-secondary) !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-primary);
    height: 100vh;
    overflow-x: hidden;

     padding-top: var(--navbar-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo img.logo-img {
    height: 75px; 
    width: auto;
    object-fit: contain; 
}

.nav-title h2 {
    font-size: 1.5rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 142, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.logout-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease 0.2s both;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease 0.4s both;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    animation: slideInRight 1s ease;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

/* Sections */
.about-hero {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--gradient-primary); /* same as homepage */
    color: white;
    text-align: center;
}

.about-preview {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.about-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-preview p {
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-card.reverse .feature-text {
    order: 2;
}

.feature-card.reverse .feature-image {
    order: 1;
}

.feature-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-text p {
    font-size: 1.125rem;
    line-height: 1.7;
}

.feature-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Feedback Form */
.feedback-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
}

.feedback-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* About Page Styles */
.about-hero {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.who-we-are,
.mission {
    padding: 5rem 0;
}

.who-we-are {
    background: var(--bg-primary);
}

.mission {
    background: var(--bg-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse .content-text {
    order: 2;
}

.content-grid.reverse .content-image {
    order: 1;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.content-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.mission-points {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.point i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.point h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.point p {
    margin: 0;
    font-size: 0.95rem;
}

.values {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.values h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Posts Page Styles */
.posts-header {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.posts-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.posts-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.posts-feed {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.posts-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-content {
    padding: 1.5rem;
}

.post-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
}

.post-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.loading-small {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.spinner,
.spinner-small {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.no-posts {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Admin Styles */
.admin-login {
    margin-top: 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.login-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.login-card h2 i {
    margin-right: 0.5rem;
}

.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-dashboard {
    margin-top: 5rem;
    padding: 3rem 0;
    background: var(--bg-secondary);
    min-height: 80vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    height: fit-content;
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.dashboard-card h3 i {
    margin-right: 0.5rem;
}

.feedback-container,
.posts-list-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.feedback-item,
.post-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.feedback-item:last-child,
.post-item:last-child {
    border-bottom: none;
}

.feedback-content,
.post-info {
    flex: 1;
}

.feedback-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feedback-email {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feedback-message {
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-title-small {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.post-date-small {
    font-size: 0.875rem;
    color: var(--text-light);
}

.delete-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

.create-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-message {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.success-message {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-title {
        order: -1;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid.reverse .content-text {
        order: 1;
    }

    .content-grid.reverse .content-image {
        order: 2;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .feature-card.reverse .feature-text {
        order: 1;
    }

    .feature-card.reverse .feature-image {
        order: 2;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .posts-header h1 {
        font-size: 2.25rem;
    }

}
