/* ========================================
   GPTC Pala-Inspired Theme for GPTC Purapuzha
   Based on: https://gptcpala.org
   Created: October 2025
   ======================================== */

/* Root Variables */
:root {
    --primary-navy: #1a1a40;
    --secondary-blue: #2563eb;
    --accent-orange: #ea580c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-grey: #f3f4f6;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --success-green: #10b981;
}

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

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-grey);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header Section */
.site-header {
    background: var(--primary-navy);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.college-logo {
    width: 80px;
    height: auto;
}

.college-info h1 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.college-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation Menu */
.main-navigation {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 18px 25px;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
    background: var(--secondary-blue);
    color: white;
}

/* Dropdown Menu */
.main-nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: none;
    list-style: none;
    padding: 10px 0;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav li ul li a {
    padding: 12px 20px;
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.main-nav li ul li a:hover {
    background: var(--bg-grey);
    color: var(--secondary-blue);
    padding-left: 25px;
}

/* Hero/Banner Section */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-banner h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-banner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Page Banner (Internal Pages) */
.page-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: white;
}

.breadcrumbs a:hover {
    color: var(--accent-orange);
}

/* Section Styles */
.section {
    padding: 60px 0;
    background: var(--bg-white);
}

.section-alternate {
    background: var(--bg-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-orange);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-blue);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content {
    color: var(--text-light);
    line-height: 1.8;
}

/* Principal's Desk / Featured Card */
.featured-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    margin-bottom: 40px;
}

.featured-card-image {
    flex: 0 0 300px;
    background: var(--bg-grey);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    flex: 1;
    padding: 40px;
}

.featured-card-content h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.featured-card-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Vision & Mission Cards */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vm-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.vm-card h3 {
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.vm-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Department Cards */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dept-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dept-card-header {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.dept-card-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.dept-card-body {
    padding: 30px;
}

.dept-card-body p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Faculty Section */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.faculty-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary-blue);
    overflow: hidden;
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faculty-designation {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.faculty-department {
    color: var(--secondary-blue);
    font-size: 0.85rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-navy));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-orange), #dc2626);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
}

.btn-outline:hover {
    background: var(--secondary-blue);
    color: white;
}

/* Info Boxes */
.info-box {
    background: white;
    padding: 25px;
    border-left: 5px solid var(--secondary-blue);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.info-box-orange {
    border-left-color: var(--accent-orange);
}

.info-box-green {
    border-left-color: var(--success-green);
}

.info-box h4 {
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Statistics Counter */
.stats-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-card-image {
        flex: 0 0 300px;
    }

    .hero-banner h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .section-title h2 {
        font-size: 2rem;
    }

    .dept-grid,
    .faculty-grid,
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
