/*
Theme Name: StudentHub
Theme URI: https://example.com
Author: Your Name
Description: Student Tools & Education WordPress Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: studenthub
*/


/* =========================
   HEADER SECTION 
========================= */

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

body {
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #0f172a;
    width: 100%;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu li a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.3s;
}

.menu li a:hover {
    background: #2563eb;
    color: #ffffff;
}



/* =========================
   HERO SECTION
========================= */

.hero {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #ffffff;
    padding: 100px 0 80px;
    text-align: center;
}

.hero-inner {
    max-width: 750px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 17px;
    margin-bottom: 25px;
    color: #e0e7ff;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background: #ffffff;
    color: #1e3a8a;
    padding: 11px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #e0e7ff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #1e3a8a;
}



/* =========================
   GPA CALCULATOR
========================= */

.gpa-calculator {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

/* Title */
.gpa-title {
    text-align: center;
    margin-bottom: 20px;
}

/* GPA System */
.gpa-system {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Row Layout */
.gpa-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

/* Header */
.gpa-header {
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.gpa-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gpa-total div:last-child {
    text-align: right;
}

/* Inputs */
.gpa-row input,
.gpa-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Add Button */
#add-subject {
    margin: 15px 0;
    padding: 10px;
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#add-subject:hover {
    background: #005f8d;
}

/* Totals */
.gpa-total {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
    font-weight: bold;
}

/* Calculate Button */
#calculate-gpa {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#calculate-gpa:hover {
    background: #000;
} 

#gpa-calculator button,
#calculate-gpa {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 0.5px;
}

#calculate-gpa:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-1px);
}

.gpa-result {
    transition: 0.3s ease;
    border-radius: 10px;
}

.result-a { background: #e8f5e9; color: #2e7d32; }
.result-b { background: #fff8e1; color: #f9a825; }
.result-c { background: #fff3e0; color: #ef6c00; }
.result-f { background: #ffebee; color: #c62828; }

/* RESULT BOX (FULL WIDTH BIG) */
.gpa-result {
    margin-top: 25px;
    padding: 20px;
    background: #e6f4ea;
    border-radius: 8px;
    text-align: center;
}

.gpa-result h3 {
    margin-bottom: 10px;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 240px;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;

    position: relative;
    top: 80px;
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

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

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background: #0073aa;
    color: #fff;
}

.sidebar ul li a.active {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

/* =========================
   SINGLE TOOLS LAYOUT
========================= */

.tools-layout {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}

.tools-layout main {
    flex: 1;
}

/* =========================
   PERCENTAGE BUTTON
========================= */

#calculate-percentage {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
/* =========================
   TOOLS SECTION
========================= */

.tools {
    padding: 70px 0;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 45px;
    color: #111827;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tool-card {
    display: block;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;

    cursor: pointer;

    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Hover effect (strong visual) */
.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border: 1px solid #2563eb;
}

/* Title */
.tool-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Description */
.tool-card p {
    font-size: 14px;
    color: #6b7280;
}


/* =========================
   FEATURES SECTION
========================= */

.features {
    padding: 70px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   SINGLE TOOL
========================= */

.tool-single {
    padding: 80px 0;
    background: #f9fafb;
}

.tool-box {
    max-width: 450px;
    margin: 30px auto 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.tool-box:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Inputs */
.tool-input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: 0.2s;
}

.tool-input:focus {
    border-color: #3b5cff;
    box-shadow: 0 0 0 2px rgba(59,92,255,0.1);
    outline: none;
}

/* Button */
.tool-box .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
}

.tool-box .btn-primary:hover {
    background: #2f49d1;
    color: #fff;
}

/* Result */
#result {
    margin-top: 20px;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    display: none;
}

/* Result States */
#result.success {
    background: #d1fae5;
    color: #065f46;
}

#result.error {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================
   FOOTER SECTION
========================= */

.site-footer {
    background: #0f172a;
    color: #cbd5f5;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}


